Commit Graph

5401 Commits

Author SHA1 Message Date
Andreas Pehrson
0d252a007a Bug 1223655 - Also don't check time of data end if track has ended. r=jesup
--HG--
extra : commitid : KlYCWXNrQht
extra : histedit_source : 6b8c70d6af8855f8a7c4259a73f8a6f24045a2e0
2015-12-23 10:04:33 +08:00
Eitan Isaacson
0721a940e3 Bug 1227848 - Separate construction from off-main-thread setup in SpeechDispatcherService. r=smaug 2015-12-22 15:23:48 -08:00
Randell Jesup
f955d91200 Bug 1226200: Don't assume a TCPSocket has only one managee (and rename LoneManagedOrNull) r=jdm 2015-12-22 10:14:23 -05:00
James Willcox
81f323775e Bug 1230784 - Don't copy SurfaceTexture contents when presenting video on Android r=esawin,jya 2015-12-22 08:44:46 -06:00
Jean-Yves Avenard
de7c0385a1 Bug 1230054: Remove unused WebMReader. r=kinetik 2015-12-23 01:15:46 +11:00
Jean-Yves Avenard
8f79430f0e Bug 1234092: P1. Remove GStreamer support. r=kentuckyfriedtakahe
It was now unused by default.
2015-12-23 01:14:22 +11:00
JW Wang
bcd91fefed Bug 1231091. Part 6 - fix test_streams_element_capture.html timeout. r=roc. 2015-12-22 08:42:38 +08:00
JW Wang
a03dc1e4e1 Bug 1231091. Part 5 - Remove DecodedStream::IsFinished() and unused code. r=roc. 2015-12-22 08:42:38 +08:00
JW Wang
43c45372af Bug 1231091. Part 4 - ensure the end promise is resolved in the special case where video duration is 0. r=roc. 2015-12-22 08:42:38 +08:00
JW Wang
2bdedb0118 Bug 1231091. Part 3 - resolve the end promise when all frames are rendered. r=roc. 2015-12-22 08:42:38 +08:00
JW Wang
5cf3e3bfa5 Bug 1231091. Part 2 - return correct promises when audio/video track is asked. r=roc. 2015-12-22 08:42:38 +08:00
JW Wang
38684677a2 Bug 1231091. Part 1 - Add mVideoCompleted so MDSM can check when audio/video is done rendering. This removes the only caller of DecodedStream::IsFinished(). r=roc. 2015-12-22 08:42:38 +08:00
Randell Jesup
73cd5786cf Bug 1234363: Re-enable a few disabled-on-e10s WebRTC tests r=drno 2015-12-21 19:53:31 -05:00
Alfredo Yang
3360b91b6f Bug 1231257 - Flush individual port instead of flush OMX_ALL ports. r=sotaro 2015-12-16 21:56:00 +01:00
Alfredo Yang
d3a2880ccb Bug 1231939 - change Shutdown() as a block API. r=cpearce 2015-12-17 04:03:00 +01:00
Gerald Squelart
5354b4cb60 Bug 1228673 - Clean-up 'Then' before ~MediaTimer. r=jya
Destroying an unlapsed timer will trigger an assertion in its 'Then' request.
So in case the Fuzzing Wrapper is flushed or errors when there are pending
delayed frames, the 'Then' request attached to the MediaTimer is now
disconnected before being let go.
This also needs to be done when shutting down.
2015-12-19 02:06:00 +01:00
Chris Peterson
7634434873 Bug 1232223 - Part 5: Run wave tests unconditionally. r=jya 2015-12-18 00:27:56 -08:00
Chris Peterson
fbf756d382 Bug 1232223 - Part 4: Run webm tests unconditionally. r=jya 2015-12-12 13:49:07 -05:00
Chris Peterson
90c0e0da61 Bug 1232223 - Part 3: Remove MOZ_WAVE #ifdefs because Wave is always supported. r=jya 2015-12-18 00:51:16 -08:00
Chris Peterson
88051371a9 Bug 1232223 - Part 1: Remove MOZ_WEBM #ifdefs because WebM is always supported, though not necessarily enabled. r=jya r=glandium 2015-12-12 13:49:07 -05:00
Jesse Ruderman
554d619f84 crashtest for bug 1228484 r=karlt
--HG--
extra : rebase_source : 0721ac827d904e07d1c64145eaf7c36f545c54da
2015-12-04 12:45:47 +13:00
Jean-Yves Avenard
52c16ccf40 Bug 1233340: [ffmpeg] Support YUV420J pixel format. r=kentuckyfriedtakahe
YUV420J is 12bpp YUV420P.
2015-12-21 13:20:23 +11:00
Paul Adenot
8ea628a72b Bug 1203585 - Remove some dead code in GraphDriver.cpp. r=jesup
--HG--
extra : commitid : LDSLPjpJdAz
2015-12-01 11:48:08 +01:00
Paul Adenot
fa96e4558d Bug 1203585 - Add comments about threading and locking on GraphDriver's members. r=jesup
--HG--
extra : commitid : DLgo3xduShJ
2015-12-01 11:48:06 +01:00
Paul Adenot
507c38edb6 Bug 1203585 - Update the MediaStreamGraph code to lock properly. r=jesup
--HG--
extra : commitid : 1Z2bwSfIbnB
2015-12-01 11:48:02 +01:00
Paul Adenot
2a78933e79 Bug 1203585 - Add threading assertions to GraphDriver switching methods. r=jesup
--HG--
extra : commitid : 6stjXK4ET1x
2015-12-01 11:47:59 +01:00
Paul Adenot
50fb895637 Bug 1203585 - Add new methods to GraphDriver to assert that locks are held. r=jesup
--HG--
extra : commitid : E8XmcSExg9V
2015-12-01 11:47:31 +01:00
Paul Adenot
b5c707b433 Bug 1203585 - Add a comment block on how MediaStreamGraph switch GraphDrivers. r=jesup
--HG--
extra : commitid : CVaELpK3iU1
2015-12-01 11:36:28 +01:00
JW Wang
45b81db1ac Bug 1233648 - Fix some insufficient includes. r=kinetik. 2015-12-18 15:12:45 +08:00
Jean-Yves Avenard
5597dadd65 Bug 1229987: P5. Drop frames during internal seeking early. r=cpearce
We would only start to drop frames once we had a request for data. On platforms such as windows WMF, following a drain we would typically hold over 33 decoded frames which would have been held resulting in unnecessarily high memory usage.
This also results in a simplified logic for the following steps.
2015-12-18 19:26:54 +11:00
Jean-Yves Avenard
08597229bb Bug 1229987: P4. Stop pre-rolling when encountering WAITING_FOR_DATA. r=cpearce
This allows to start displaying frames even when we have less than 5 frames.
2015-12-18 19:26:54 +11:00
Jean-Yves Avenard
1e7e9a8d7c Bug 1229987: P3. Update mochitests and add new one verifying behavior. r=cpearce 2015-12-18 19:26:53 +11:00
Jean-Yves Avenard
af9786e6b0 Bug 1229987: P2. Drain decoder when encountering gap. r=cpearce
This allows for all buffered frames to be playable.
2015-12-18 19:26:52 +11:00
Jean-Yves Avenard
7e9fd3bcf4 Bug 1229987: [MSE] P1. Ensure next random access point properly calculated after seek. r=gerald
When seeking, the next keyframe time would always be set to the seek time (as the next sample to be retrieved would be a keyframe). This could lead to the next key frame logic to be activated too aggressively.
2015-12-18 19:26:52 +11:00
Morris Tseng
ef261c0b38 Bug 1215438 - Part 4: Rename CairoImage to SourceSurfaceImage. r=roc
--HG--
extra : commitid : H9H2n8GsBOK
2015-12-18 14:52:16 +08:00
JW Wang
480823b5c6 Bug 1232520 - dont' invoke AbstractThread::MainThread()->Dispatch() to avoid reentrant of AutoTaskDispatcher during tail dispatching phase. r=jya. 2015-12-18 11:50:32 +08:00
Alfredo Yang
514b142f92 Bug 1231353 - Release buffers at IDLE state. r=sotaro 2015-12-16 16:38:00 +01:00
JW Wang
f79563a6b5 Bug 1231075. Respect the timestamp of video frames and don't pop frames as fast as we can in real-time mode. r=roc. 2015-12-17 10:53:49 +08:00
Francois Marier
d63cc41a00 Bug 1231557 - Use the URL Classifier in Media elements. r=cpearce,r=gcp
--HG--
rename : dom/media/test/vp9.webm => toolkit/components/url-classifier/tests/mochitest/vp9.webm
2015-12-16 13:24:40 -08:00
Julian Seward
7f3e3b8977 Bug 1232326 - Uninitialised value use in AudioBufferInPlaceScale. r=dminor.
--HG--
extra : rebase_source : 608cb061bb6da051dd781ff6fdbbdb5ec8e1cc6d
2015-12-16 17:36:21 +01:00
Louis Christie
159adb84ce Bug 864780 - Changed handling of the format chunk to skip any extension. r=cpearce
--HG--
extra : rebase_source : 113092d12941509682b551811ccb51b7f9fc2c32
2015-12-16 13:26:21 +13:00
Louis Christie
68dbc629d4 Bug 524109 - Added support for 24 bit wav files. r=cpearce
--HG--
extra : rebase_source : 3467db40f95e7fefee9852e0d5c34c420b88c1a6
2015-12-14 15:07:10 +13:00
Bogdan Postelnicu
76c1720d24 Bug 1232646 - initialize 3 variables: mCurve, mTimeConstant, mDuration. r=cpearce
--HG--
extra : rebase_source : 3a0899948c5bddfab76af0de03e85484156f416b
2015-12-15 05:21:00 +01:00
Chris Pearce
f212540c95 Bug 1232527 - Remove GMPVideoDecoderTrialCreator and friends. r=jwwang
Remove GMPVideoDecoderTrialCreator, and the tests and IPC/IDL supporting it.

--HG--
extra : commitid : HlbJPl2gPAl
extra : rebase_source : fe1773014e5d09da264f85d464e408aca46a60c4
2015-12-15 15:17:22 +13:00
Chris Pearce
966cf53003 Bug 1232527 - Call into WMF PDM to determine if WMF can decode instead of using GMPVideoDecoderTrialCreator. r=jwwang
Resurrect WMFDecoderModule::HasAAC() and HasH264(), and use those in
MediaKeySystemAccess.cpp to figure out whether we gmp-clearkey can decode,
rather than assuming Vista and later is always able to decode, as that's not
a valid assumption; Vista may not have the required Platfor Update installed,
or we may be on Windows N or KN without the Media Feature Pack.

--HG--
extra : commitid : 2QrVAGQ5OJa
extra : rebase_source : 8ad6e5c5f87cf2b2489f049543c021723927901a
2015-12-15 14:50:59 +13:00
Chris Pearce
7529a96ada Bug 1232514 - Make GMPDecryptsAndDecodesH264() actually check for H.264 rather than AAC. r=jwwang
--HG--
extra : commitid : 1Gg4YjcvZXp
extra : rebase_source : 47153d7c9d865947f86845891d83a774ee41884b
2015-12-15 14:07:01 +13:00
Carsten "Tomcat" Book
5d5bb29645 Backed out changeset 7b7521d752a2 (bug 524109) for test regressions 2015-12-14 10:57:19 +01:00
Carsten "Tomcat" Book
4e46689636 Backed out changeset 2dba896ba45b (bug 864780) 2015-12-14 10:56:35 +01:00
JW Wang
9477651c83 Bug 1230882. Part 2 - remove DecodedStream::BeginShutdown() and other unused code. r=roc. 2015-12-14 11:32:19 +08:00
JW Wang
f8c0036f90 Bug 1230882. Part 1 - destroy DecodedStreamData properly when dispatch fails. r=roc. 2015-12-14 11:32:18 +08:00
Gerald Squelart
840a670aa1 Bug 1183972 - No sync-dispatch of new GMPParent - r=cpearce
Thanks to bug 1121676, GMPParent does not need to be created and destroyed
on the main thread. Main-thread constraints have been removed.

Also, this means that GeckoMediaPluginServiceParent::ClonePlugin() and
AddOnGMPThread (running on the GMP thread) do not need to sync-dispatch the
creation on the main thread.
This should remove the deadlock that prevents
GeckoMediaPluginServiceParent::UnloadPlugins() from running on the GMP thread.
2015-12-13 14:26:00 +01:00
Louis Christie
005c16d197 Bug 864780 - Changed the format chunk reader to skip any extention. r=cpearce 2015-12-14 15:30:57 +13:00
Louis Christie
1b5c5943f2 Bug 524109 - Added support for 24 bit wav files. r=cpearce 2015-12-14 15:07:10 +13:00
Jan-Ivar Bruaroey
fad5e24ed1 Bug 1229413 - remove MediaManager's xpcom-will-shutdown observer. r=jesup
--HG--
extra : transplant_source : %AF%E4%80id%2B%23%CD%9D%B1%DF%1F%B4%0B%F5%7Di%DCz%15
2015-12-01 12:13:47 -05:00
Phil Ringnalda
45242f7699 Back out 4 changesets (bug 1229987) for ASan e10s timeout in test_playback.html, Mac timeouts in test_BufferingWait_mp4.html, and Win8 failures in test_WaitingToEndedTransition_mp4.html
Backed out changeset 707a87454058 (bug 1229987)
Backed out changeset 37003d495f20 (bug 1229987)
Backed out changeset c8f4e1eaf884 (bug 1229987)
Backed out changeset 42ca05d8546d (bug 1229987)
2015-12-10 23:10:20 -08:00
Phil Ringnalda
ef25b0a2b7 Back out 5a889d2cc25b (bug 1230428) for Windows 7 failures in 1230428.html
CLOSED TREE
2015-12-10 18:45:07 -08:00
Bob Owen
cb3fdf73ba Bug 1217185: To allow for sandboxing, use null HWNDs when creating the D3D device for video decoding. r=mattwoodrow 2015-12-11 01:23:00 +00:00
Jean-Yves Avenard
ad5e2f804f Bug 1230527: P2. Add mochitest. r=jwwang
It's also another way to check for 1130237: we make sure that seeking starts after playback when we have a gap at the beginning of the data
2015-12-10 14:08:06 -05:00
Jean-Yves Avenard
9621f06057 Bug 1230527: P1. Ensure seeked event is fired prior loadeddata. r=jwwang 2015-12-10 14:08:05 -05:00
Makoto Kato
6580374e9a Bug 1230428 - Part 2. Add crashtest. r=eeejay 2015-12-10 13:46:46 -05:00
Makoto Kato
2f8f4466aa Bug 1230428 - Part 1. Check mTask since end event is posted asynchronized. r=eeejay 2015-12-10 13:45:26 -05:00
Jean-Yves Avenard
b8bef7f3f2 Bug 1229987: P4. Stop pre-rolling when encountering WAITING_FOR_DATA. r=cpearce
This allows to start displaying frames even when we have less than 5 frames.
2015-12-10 12:17:29 -05:00
Jean-Yves Avenard
ce54507b17 Bug 1229987: P3. Update mochitests and add new one verifying behavior. r=cpearce 2015-12-10 12:17:26 -05:00
Jean-Yves Avenard
085e65d064 Bug 1229987: P2. Drain decoder when encountering gap. r=cpearce
This allows for all buffered frames to be playable.
2015-12-10 12:17:25 -05:00
Jean-Yves Avenard
18c2b9cb12 Bug 1229987: [MSE] P1. Ensure next random access point properly calculated after seek. r=gerald
When seeking, the next keyframe time would always be set to the seek time (as the next sample to be retrieved would be a keyframe). This could lead to the next key frame logic to be activated too aggressively.
2015-12-10 12:17:25 -05:00
Chris Pearce
f51937602c Bug 1230295 - Add telemetry to report when Ogg chaining is used. r=rillian,r=vladan 2015-12-10 12:10:41 -05:00
Jean-Yves Avenard
e786add25c Bug 1130237: [MSE] P3. Add mochitest testing behavior. r=gerald
We load data from [2ish, 4] and ensure that playback didn't start before data [0, 2ish] is loaded.
2015-12-09 09:55:37 -05:00
Bogdan Postelnicu
ac6c0718c7 Bug 1231124 - addded mCurve to constructor. r=smaug 2015-12-09 00:00:00 +01:00
Alfredo Yang
92abcfb61c Bug 1224887: new PlatformDecoderModule based on OpenMax IL. r=jya, sotaro 2015-12-08 15:57:58 +05:30
Bogdan Postelnicu
ae22c83be6 Bug 1230902 - initialize mSampleRate and mMicrophoneActive. r=cpearce 2015-12-07 02:17:00 +01:00
Boris Zbarsky
602de001f4 Bug 1230692. Fix WebAudioDecodeJob to properly suppress exceptions from its callbacks. r=ehsan 2015-12-07 18:42:11 -05:00
Carsten "Tomcat" Book
2257530fee Backed out changeset b8a9e34748f1 (bug 1130237) for m2 test failures 2015-12-07 11:20:35 +01:00
Dan Glastonbury
856e41412c Bug 1169212 - Part 2: Advertise support for ADTS via DecoderTraits. r=jya
for mimetype audio/aacp
2015-12-07 15:48:59 +10:00
Dan Glastonbury
5a8ca1d0d5 Bug 1169212 - Part 1: Implemented ADTS Decoder & Demuxer. r=jya
Implemented based upon MP3 Demuxer & Decoder.
2015-12-07 15:48:59 +10:00
Jean-Yves Avenard
7084f9ab9c Bug 1130237: [MSE] P3. Add mochitest testing behavior. r=gerald
We load data from [2ish, 4] and ensure that playback didn't start before data [0, 2ish] is loaded.
2015-12-05 17:28:38 +11:00
Jean-Yves Avenard
9ae0949e75 Bug 1130237: P2. Reset decoder state even if no decoder has been created yet. r=gerald 2015-12-05 17:28:37 +11:00
Jean-Yves Avenard
a080f16503 Bug 1130237: [MSE] P1. Only ever return a frame if we have data. r=gerald
After a Reset() the definition is that the resource was seeked to 0. As such we should only return a frame if there's data at time==0.
2015-12-05 17:28:37 +11:00
Jan-Ivar Bruaroey
e23061aecc Bug 1229926 - only fake cams and mics. r=jesup
--HG--
extra : transplant_source : %0F%90%21%94%14X%EC%83%03M%068p%D3%F9%0D%84%F29J
2015-12-02 22:51:03 -05:00
Jan-Ivar Bruaroey
3d86334afb Bug 1229926 - don't throw OverConstrainedError(deviceId) on fake devices. r=jesup
--HG--
extra : transplant_source : .R%BF%F3%93qV/%DB%A0%3C%F5m%10.%FB2%8F%1ES
2015-12-02 21:35:56 -05:00
Gerald Squelart
a21b53a078 Bug 1229965 - Use MakeUniqueFallible in blank decoder - r=jya 2015-12-03 20:10:00 +01:00
Sotaro Ikeda
29ad0bee26 Bug 1219210 - Add ITextureClientAllocationHelper and VENUS color handling r=nical,jolin 2015-12-04 02:13:49 -08:00
Phil Ringnalda
a54f2a1eda Back out ce4623289f7f (bug 1230054) for crashtest bustage in 789075-1.html/795892-1.html, Android mochitest-chrome bustage in test_texttrack_chrome.html, and probably Gij video_list_test.js
CLOSED TREE
2015-12-03 22:12:01 -08:00
Jean-Yves Avenard
7b1c9931c6 Bug 1230054: Add missing headers ON A CLOSED TREE. r=me 2015-12-04 15:56:46 +11:00
Chris Pearce
0840e7ba6a Bug 1230272 - Remove version suffix from keySystem string reported by MediaKey*.keySystem attribute. r=gerald 2015-12-04 17:35:40 +13:00
Jean-Yves Avenard
b2545f9af0 Bug 1230054: Remove unused WebMReader. r=kinetik 2015-12-04 15:23:43 +11:00
Jean-Yves Avenard
d6b653ae10 Bug 1229605: [MSE] Allow webm/audio independently of video. r=kentuckyfriedtakahe
This adds a media.mediasource.webm.audio.enabled preference (true by default) to disable opus or vorbis audio in webm mediasource.
2015-12-04 14:43:47 +11:00
Jean-Yves Avenard
72d555ab40 Bug 1191833: P1. Properly check webm mimetype against codec type. r=cpearce
Also move the logic inside WebMDecoder, this continue on with the logic used by MP4Decoder
2015-12-04 14:43:46 +11:00
Chris Peterson
46bb7c80dd Bug 1228947 - Replace mfbt/Constants.h with math.h. r=roc
--HG--
extra : rebase_source : 4ab2c4a917ea90055e48bd6adcb53904f2266ee0
2015-11-27 20:49:55 -08:00
JW Wang
84171dfe8c Bug 1230004. Part 2 - have MDSM::BeginShutdown return a promise and remove MDSM::mDecoder. r=cpearce. 2015-12-03 15:59:44 +08:00
JW Wang
a62c25461b Bug 1230004. Part 1 - cache data in MDSM so it won't need to ask MediaDecoder. r=cpearce. 2015-12-03 15:59:30 +08:00
Matt Woodrow
6ef854d267 Bug 1230338 - Record video frames dropped by the compositor, or while flushing during skip-to-keyframe. r=jya 2015-12-04 13:33:21 +13:00
Ralph Giles
7723ca9104 Bug 1228721 - Conditionalize other webvtt navigator access. r=kinetik
Missed this in the previous commit.
2015-12-03 09:32:00 -08:00
Chris Pearce
ff1b756ddd Bug 1230026 - Add test for 'webm' initDataType for ClearKey initData. r=gerald
--HG--
rename : dom/media/test/test_eme_key_ids_initdata.html => dom/media/test/test_eme_initDataTypes.html
2015-12-04 07:24:32 +13:00
Chris Pearce
9654972991 Bug 1230026 - Support 'webm' initDataType format for MP4 ClearKey initData. r=gerald 2015-12-04 07:24:11 +13:00
Gian-Carlo Pascutto
cb4e1a83eb Bug 1228788 - Force QT device release to happen on the main thread. r=jesup 2015-12-03 15:11:15 +01:00
Gian-Carlo Pascutto
2e171e6a85 Bug 1227407 - Ensure Cameras is alive before calling through it. r=jesup 2015-12-03 15:11:07 +01:00
Nathan Froyd
ffeb7c7fe3 Bug 1229963 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in dom/media/; r=cpearce 2015-12-02 18:07:59 -05:00
Dan Minor
57ace7e27d Bug 1222405 - (part 3) Build band limited tables lazily r=padenot
This builds the band limited tables for each range index individually as
required.

--HG--
extra : rebase_source : 022665e3b83b82bcdcec3cabf3ddda9c2dce2ebf
2015-11-27 15:01:28 -05:00
Dan Minor
5c9b087388 Bug 1222405 - (part 2) Build band limited tables after fundamental frequency is known r=padenot
If we build the band limited tables after the fundamental frequency is known,
we can exclude partials that are above the nyquist frequency for the sampling
frequency being used.

We rebuild the band limited tables each time we see a request for data for a
lower fundamental frequency so we have the required partials.

--HG--
extra : rebase_source : 067075c7c8a90580650bf850c50ca7d8fc1eb6ff
2015-11-13 11:17:39 -05:00
Dan Minor
eec8d40aad Bug 1222405 - (part 1) Store PeriodicWave components for later use r=padenot
We need to store the components used to create the PeriodicWave for later use
if we want to be able to build the band limited tables lazily.

--HG--
extra : rebase_source : d760433e6fe5490a60da761be7e2148a6504d20d
2015-11-12 10:40:45 -05:00
Jean-Yves Avenard
99d86bb64e Bug 1194624: [MSE] P4. Add mochitest testing new behaviour. r=jwwang
Ensure that the canplay/canplaythrough and readyState is properly updated according to buffering condition.
2015-12-03 19:22:07 +11:00
Jean-Yves Avenard
d77e4129ea Bug 1194624: [MSE] P3. Determine when canplaythrough can be fired. r=jwwang
We assume that if we have 30s of data buffered ahead of the current position or up to the element's duration that we can play ahead without interruption.
2015-12-03 19:22:06 +11:00
Jean-Yves Avenard
8e5e1f7311 Bug 1194624: [MSE] P2. Enable NextFrameBufferedStatus() for MediaSourceDecoder. r=jwwang
We require a slightly variation on the default implementation as mediasource allows for gaps of up to 125ms between samples and often videos do not start with a time of 0.
2015-12-03 19:22:05 +11:00
Jean-Yves Avenard
b43e4839aa Bug 1194624: [MSE] P1. Move definition of EOS_FUZZ to be public. r=gerald 2015-12-03 19:22:05 +11:00
Gerald Squelart
11f4bfc291 Bug 1224361 - Added vp8/ivf test case - r=rillian 2015-12-03 14:14:46 +11:00
Gerald Squelart
47c3a5245c Bug 1224369 - p2: Added vp8/ivf test case - r=rillian 2015-12-03 14:14:46 +11:00
Gerald Squelart
5000716d11 Bug 1224369 - p1: Test cases given as list - r=rillian
No actual test changes from before. This will help with this bug and future
ones, to easily add more test cases.
2015-12-03 14:14:46 +11:00
Gerald Squelart
090cd0d548 Bug 1224363 - Added vp8/ivf test case - r=rillian 2015-12-03 14:14:45 +11:00
Jean-Yves Avenard
664205b25d Bug 1229256: [MSE] P3. Prevent crash should buffered range be read while shutting down. r=gerald 2015-12-03 12:38:11 +11:00
Jean-Yves Avenard
dc75044746 Bug 1229256: P2. Use buffered range to determine next frame availability. r=jwwang
To avoid potential regression with some of our tests expecting our old particular behaviour, we only use the buffered range to determine the next frame status if the old method determined that the next frame was unavailable due to the MediaDecodeStateMachine not having decoded the next frame yet.
2015-12-03 12:38:10 +11:00
Jean-Yves Avenard
b968a258a5 Bug 1229256: P1. Only check readyState update upon buffered range completion. r=jwwang
When MediaDecoder::NotifyDataArrived is called, the buffered range hasn't been updated as of yet, causing unnecessary calls to UpdateReadyState().
Delay the readyState update until the buffered range is modified.
2015-12-03 12:38:10 +11:00
Jean-Yves Avenard
aa942325d2 Bug 1229657: [MSE] Returns NotSupportedError if mimetype is invalid or not supported. r=gerald
InvalidStateError is only to be returned if the readyState attribute is not in the "open" state.
2015-12-03 12:38:09 +11:00
Nathan Froyd
c381a6b86c Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
Lars T Hansen
b62493634b Bug 1176214 - Part 11: Changes to DOM, except for WebGL. r=bz, r=clb
--HG--
extra : rebase_source : 9c9d3f493822d68be20597d9974292ed5ec4ab70
2015-11-25 19:04:50 +01:00
Nigel Babu
cc17273b85 Backed out changeset 1e400c0266e5 (bug 1224887) for build bustage
ON A CLOSED TREE
2015-12-02 14:51:30 +05:30
JW Wang
e4cbe0c128 Bug 1228939 - 1. add mSeekable to MediaInfo. 2. use MediaEventSource to notify the decoder when the media is not seekable. 3. remove unused code. r=jya. 2015-12-02 15:42:32 +08:00
Alfredo Yang
d0c13c6363 Bug 1224887 - new PlatformDecoderModule based on OpenMax IL. r=jya, sotaro 2015-12-01 06:12:00 +01:00
Robert O'Callahan
6f11ea45c0 Bug 1223696. Don't destroy VideoFrameContainer when we reach MetadataLoaded without a video track. r=jwwang
--HG--
extra : commitid : 9SdyuwXVlRD
extra : rebase_source : 7143bc6c346bf1c1259a83321d26a653adb70705
2015-11-17 16:34:28 +13:00
Nicholas Nethercote
ddc78c3b0c Bug 1229458 - Remove SizeOfIncludingThisMustBeUnshared() from string classes. r=mccr8.
The patch changes all uses of SizeOfIncludingThisMustBeUnshared() to
SizeOfIncludingThisIfUnshared(). This incurs the (tiny) cost of an unnecessary
IsReadonly() check for guaranteed-unshared strings, but avoids the possible
assertion failures that would occur when MustBeUnshared() was used incorrectly
on shared strings, which is an easy mistake to make.

--HG--
extra : rebase_source : b1e91f1c19bcbe0521b0ce461d6c90512ca938ef
2015-12-01 15:36:26 -08:00
Makoto Kato
9e188a4569 Bug 1228134 - Should check media.webspeech.synth.enabled on Windows SAPI backend. r=eeejay 2015-12-02 13:42:23 +09:00
Chris Pearce
373cfa1365 Bug 1229508 - Support current and previous GMP_API_DECRYPTORs. r=gerald
To allow GMPs time to update to new GMPDecryptor versions, we support the
latest GMPDecryptor version, and the previous.

In order to support a consistent interface to Gecko, we adapt the previous
GMPDecryptor version to the latest in the GMP child process.  So Gecko always
thinks it's talking to the latest version.

We also make gmp-fake deliberately support the previous GMPDecryptor version,
to ensure this code path remains tested.
2015-12-02 15:37:09 +13:00
Mike Hommey
58b657359f Bug 1225682 - Don't use nsAuto{,C}String as class member variables in dom/media/. r=cpearce 2015-12-02 11:04:37 +09:00
Ralph Giles
76976eadbb Bug 1228721 - Conditionalize webvtt navigator access. r=kinetik
This is the fix for the "navigator is not defined" issue
rebased around upstream's changes from bug 1167492 which
caused timeouts in gecko tests.
2015-12-01 14:49:33 -08:00
Benjamin Chen
7034fa9aff Bug 1225327 - fix |mEncoder| null-dereference. r=jwwang
--HG--
extra : transplant_source : S4%08%B8%EF%B7%C72%D9%CDh%15%96M%21Z%CE%BC%F9%84
2015-11-30 14:29:17 +08:00
Chris Pearce
d81e2a9cf2 Bug 1186406 - Log why GMPVideoDecoderParent::Decode() fails. r=gerald
This helps us to identify the cause of such failures.
2015-12-01 18:13:52 +13:00
Eitan Isaacson
9f7f51dcaa Bug 1225928 - Fix hang on linux when sending an empty string to speech synth. r=smaug 2015-11-30 18:59:01 -08:00
Eitan Isaacson
f010e62608 Bug 1226015 - Have child send __delete__ in speech synth request protocol, fixes race. r=smaug 2015-11-30 18:59:01 -08:00
JW Wang
f304127126 Bug 1228923 - Merge some MediaEventSource for MDSM. r=jya. 2015-12-01 09:34:02 +08:00
Jan-Ivar Bruaroey
df112e416d Bug 1227708 - Differentiate ICE_SUCCESS_RATE telemetry for loop vs webrtc r=jesup 2015-11-30 18:15:20 -05:00
Eugen Sawin
516b650d7d Bug 1048628 - [2.1] Enabled autoplay in 0-timescale test to enforce metadata load on Android. r=snorp 2015-11-30 23:13:59 +01:00
Eugen Sawin
3238dbd87f Bug 1048628 - [1.2] Enabled 0-timescale test on Android and B2G. r=snorp 2015-11-30 23:13:59 +01:00
Eugen Sawin
4c2c5eac19 Bug 1153803 - Enable canPlayType test on Android 4.1+. r=snorp 2015-11-30 22:39:56 +01:00
EKR
764814bceb Bug 1227781 - Fix crash with bogus STUN parameters. r=bwc 2015-11-30 12:15:19 -08:00
Nicolas Silva
48c889335e Bug 1200595 - Gralloc TextureData implementation. r=sotaro 2015-10-15 17:53:37 +02:00
JW Wang
6e21f29356 Bug 1227797 - Use MediaEventSource to publish playback events for MDSM. r=jya. 2015-11-30 13:06:19 +08:00
Jean-Yves Avenard
bb0aacbf79 Bug 1227396: P13. Refactor how MP4 buffered range is calculated. r=cpearce
We now use an index of samples made of block of samples delimited by keyframes. The search is performed using a binary search. This allows to quickly find which blocks are found within the media cache.
On a 8 core mac pro, this leads to a 67% improvement on CPU time spent playing a long MP4 video (from 112s CPU to 45s CPU)

The optimisation is only possible if all mp4 data chunks are continuous (which they almost always are)
2015-11-30 11:29:37 +11:00
Jean-Yves Avenard
ead53cc75e Bug 1227396: P12. Use MediaByteRangeSet capabilities to filter already processed data. r=cpearce 2015-11-30 11:29:36 +11:00
Jean-Yves Avenard
5c7a8901c8 Bug 1227396: P11. Add IntervalSet::operator- operand. r=gerald
Also fix constness.
2015-11-30 11:29:36 +11:00
Jean-Yves Avenard
fdf27ff498 Bug 1227396: P9. Remove unnecessary monitor. r=cpearce
The Index and MoofParser are now only used via the MP4Demuxer which is guaranteed to always be called on the same taskqueue.
2015-11-30 11:29:35 +11:00
Jean-Yves Avenard
a7975b198f Bug 1227396: P8. Replace MediaByteRange with Interval<int64_t> typedef. r=cpearce
It's now okay to simplify.
2015-11-30 11:29:34 +11:00
Jean-Yves Avenard
c8c275cee2 Bug 1227396: P7. Replace nsTArray<MediaByteRange> with dedicated MediaByteRangeSet object. r=cpearce 2015-11-30 11:29:34 +11:00
Jean-Yves Avenard
98b7b59261 Bug 1227396: P6. Replace MediaByteBuffer with Interval<int64_t>. r=cpearce 2015-11-30 11:29:33 +11:00
Jean-Yves Avenard
dd73df2954 Bug 1227396: P5. Make Interval::Span ignore empty interval. r=gerald
An interval with a length of 0 doesn't really exist and will be removed when used in an IntervalSet. As such, calculating a Span with an empty intervals didn't really make sense
2015-11-30 11:29:33 +11:00
Jean-Yves Avenard
f84dc2e04c Bug 1227396: P4. Add IntervalSet::Clear method. r=gerald 2015-11-30 11:29:31 +11:00
Jean-Yves Avenard
5499ac5293 Bug 1227396: P3. Add IntervalSet::LastInterval method. r=gerald 2015-11-30 11:29:30 +11:00
Jean-Yves Avenard
70f2124283 Bug 1227396: P2. Rename some MediaByteRange methods. r=cpearce
Will facilitate the replacement of MediaByteRange by Interval<int64_t>
2015-11-30 11:29:30 +11:00
Jean-Yves Avenard
c92e468354 Bug 1227396: P1. Remove TimestampedMediaByteRange object. r=cpearce 2015-11-30 11:29:29 +11:00
Phil Ringnalda
339dc8d962 Backed out 4 changesets (bug 1167492) for a variety of timeouts
CLOSED TREE

Backed out changeset e35dba35a6ad (bug 1167492)
Backed out changeset 19ded68eecfb (bug 1167492)
Backed out changeset d02a1e8ea53d (bug 1167492)
Backed out changeset 0a800bbb09f3 (bug 1167492)
2015-11-27 11:24:57 -08:00
Ralph Giles
e0f44942f6 Bug 1167492 - Part 3: Apply patch from update script. r=me
This is the result of running 'npm install; node update-webvtt.js'
against upstream vtt.js master with the patch from Part 2 merged
there.

[US Regulation] To Create Settings for Configuring Attributes of WebVTT.
2015-11-27 10:11:06 -08:00
7b80fe3c50 Bug 1167492 - Part 2: vtt.js changes. r=giles
[US Regulation] To Create Settings for Configuring Default Attributes of WebVTT.
2015-11-08 16:46:00 -08:00
11425fc75b Bug 1167492 - Part 1: Update script and patches. r=giles
[US Regulation] To Create Settings for Configuring Default Attributes of WebVTT.
2015-11-01 23:46:00 -08:00
Benjamin Chen
9008199c76 Bug 1198576 - Remove MediaCodecReader. r=bwu 2015-11-25 16:18:01 +08:00
Gerald Squelart
83be56e479 Bug 1181718 - Fallible allocation of blank audio data - r=jya
This is mostly to guard against allocating crazy amounts of memory due to
invalid data -- in this case a sample with an excessive number of frames.
2015-11-26 18:01:00 +01:00
Chris Pearce
efc8956d13 Bug 1228461 - Implement keyids initData type for ClearKey. r=gerald 2015-11-27 17:13:40 +13:00
Chris Pearce
39cfd1238f Bug 1228215 - Migrate existing GMP storage from post-42 pre-45 location to 45 location. r=jwwang 2015-11-27 10:53:32 +13:00
Chris Pearce
537e205dfc Bug 1228215 - Store each GMP's storage and nodeId salt in separate directories. r=jwwang 2015-11-27 10:53:32 +13:00
Chris Pearce
3da2dc5dd2 Bug 1228215 - Expose the GMP name on each GMPParent. r=jwwang 2015-11-27 10:53:32 +13:00
Chris Pearce
6818d3ec67 Bug 1228215 - Add a 'gmpName' parameter to GMPService::GetNodeId(), so each GMP can see a different nodeId for the same origin. r=jwwang 2015-11-27 10:53:31 +13:00
Chris Pearce
8ed9d0fcbd Bug 1228215 - Add helper to do dir enumeration in GMPServiceParent. r=jwwang 2015-11-27 10:53:17 +13:00
Carsten "Tomcat" Book
358e4575c4 merge mozilla-inbound to mozilla-central a=merge 2015-11-26 16:54:27 +01:00
Carsten "Tomcat" Book
a1980896be merge fx-team to mozilla-central a=merge 2015-11-26 11:57:05 +01:00
Eugen Sawin
61cdb4a6cd Bug 1219178 - [9.1] Make SeekPosition available with tests disabled. a=me for fixing build problems 2015-11-25 06:44:00 +01:00
Carsten "Tomcat" Book
7fc565c303 Merge mozilla-central to fx-team 2015-11-25 13:59:23 +01:00
David Rajchenbach-Teller
0da8936844 Bug 1216972 - MediaManager AsyncShutdown for content processes. r=jesup
--HG--
extra : transplant_source : %D9%A4%C4%95%EB%F9%0Fh%83z%21%91A5cu7%B4%DF%DE
2015-11-18 21:42:16 +01:00
Chris Pearce
f14cc10a3d Bug 1227790 - Update GMP API to include new MediaKeyStatus types. r=jwwang 2015-11-26 13:51:05 +13:00
Karl Tomlinson
b0b63d25cd bug 1227411 add logging of AudioParam API use r=padenot
--HG--
extra : rebase_source : 5399d15dc0e81c5745c2952e39d3d74ba6ce08c4
2015-11-24 18:08:13 +13:00
Karl Tomlinson
3e2ffb81fd bug 1227411 add some initial logging of AudioNode API use r=padenot
--HG--
extra : rebase_source : 9ffb6c3da3468b305d31f7d907a674671674611f
2015-11-24 15:55:10 +13:00
Karl Tomlinson
c95ab76c6c bug 1227411 add WEB_AUDIO_API_LOG r=padenot
--HG--
extra : rebase_source : c27e117a0a6af5fe8913dabb656842281643ecc4
2015-11-24 12:48:17 +13:00
Wes Kocher
72261b4523 Backed out 12 changesets (bug 1200595) for b2g mochitest crashes in SharedBufferManagerParent CLOSED TREE
Backed out changeset cf8cf1a039dd (bug 1200595)
Backed out changeset 65da564f952c (bug 1200595)
Backed out changeset 7663208f1582 (bug 1200595)
Backed out changeset fc1fbb97c8eb (bug 1200595)
Backed out changeset 3ad5a4c457fe (bug 1200595)
Backed out changeset add3fe9afc0c (bug 1200595)
Backed out changeset 68aba6b39588 (bug 1200595)
Backed out changeset ab326c34f1cf (bug 1200595)
Backed out changeset ed34bc528a1b (bug 1200595)
Backed out changeset 0dc93424546c (bug 1200595)
Backed out changeset 8cc12f12f3d1 (bug 1200595)
Backed out changeset bb84403701b7 (bug 1200595)

--HG--
extra : commitid : AMC6i05xyTh
2015-11-24 10:07:02 -08:00
Eugen Sawin
607c52ca89 Bug 1219178 - [8.1] Constrain seek position getter to max duration. r=jya 2015-11-24 15:02:35 +01:00
Eugen Sawin
334574ba77 Bug 1219178 - [7.1] Add out-of-bounds seeking test. r=jya 2015-11-24 15:02:34 +01:00
Eugen Sawin
1d6552cfbe Bug 1219178 - [6.1] Add small test file case. r=jya 2015-11-24 15:02:34 +01:00
Eugen Sawin
3cb42afa72 Bug 1219178 - [5.1] Return invalid resource length when mock resource is uninitialized instead of crashing. r=jya 2015-11-24 15:02:34 +01:00
Eugen Sawin
4356ebc299 Bug 1219178 - [4.1] Accept only layer III frames. r=jya 2015-11-24 15:02:34 +01:00
Eugen Sawin
c389d0fb93 Bug 1219178 - [3.1] Clamp seeking offsets to estimated frame boundaries. r=jya 2015-11-24 15:02:33 +01:00
Eugen Sawin
3bc9e20c06 Bug 1219178 - [2.1] Add frame consistency verification to reduce chance for false positive detection. r=jya 2015-11-24 15:02:33 +01:00
Eugen Sawin
f4295dd666 Bug 1219178 - [1.1] Prevent ScanUntil from overshooting the target time frame. r=jya 2015-11-24 15:02:32 +01:00
Nicolas Silva
318de9bd3b Bug 1200595 - Gralloc TextureData implementation. r=sotaro 2015-10-15 17:53:37 +02:00
Chris Pearce
220ccc0478 Bug 1223980 - Add iterable<ArrayBuffer,MediaKeyStatus> to MediaKeyStatusMap. r=bz 2015-11-24 13:13:21 +13:00
Chris Pearce
2e8e9b44e1 Bug 1223980 - Move CopyArrayBufferViewOrArrayBufferData to EMEUtis and add GetArrayBufferViewOrArrayBufferData. r=bz 2015-11-24 13:13:11 +13:00
Eugen Sawin
121337c4af Bug 1217802 - [2.1] Return 0 for incomplete ID3 header size. r=jya 2015-11-23 22:30:34 +01:00
Eugen Sawin
1ffefee100 Bug 1217802 - [1.1] Decrease buffer size when scanning for next frame. r=jya 2015-11-23 22:30:34 +01:00
Nils Ohlmeier [:drno]
acfbf2c00d Bug 1188391 - separate immediate ICE failures from failures after checking. r=bwc, r=vladan
--HG--
extra : transplant_source : %12%C3%A1%DD%B2X%13gA%20%F0%F4l8%BA%40S%B0Q%D5
2015-11-16 13:01:46 -08:00
JW Wang
22151cf459 Bug 1218311 - Port the fix of bug 1193614 to VideoSink. r=cpearce. 2015-11-25 15:15:05 +08:00
Sotaro Ikeda
84b12d8d2c Bug 1227415 - Fix copy buffer size r=jolin 2015-11-24 21:05:35 -08:00
Chris Pearce
cea22429d5 Bug 1226450 - Report audio/video codecs used in HTMLMediaElement and WebAudio via telemetry. r=jya 2015-11-25 12:52:48 +13:00
Ehsan Akhgari
2bc6fae605 Add a missing include to GMPLoader.cpp to fix local OSX builds, no bug 2015-11-23 10:10:44 -05:00
Andrea Marchesini
f44bf80ff9 Bug 1213154 - tab-sound-icon should be supported by bfcache, r=roc 2015-11-23 11:35:14 +00:00
Carsten "Tomcat" Book
694a81aba1 Backed out changeset 162ded2e49c8 (bug 1223696) for failing on own test on a CLOSED TREE 2015-11-23 09:48:56 +01:00
JW Wang
fb3cd6a536 Bug 1226569. Part 2 - assert functions that should never be called after shutdown. r=jya. 2015-11-23 10:35:56 +08:00
JW Wang
328ebd72a1 Bug 1226569. Part 1 - Use MediaEventSource to publish MetadataLoaded and FirstFrameLoaded events. r=jya. 2015-11-23 10:35:18 +08:00
JW Wang
b194bb0f80 Bug 1219163. Part 2 - Move some functions that are never called from the interface of AbstractMediaDecoder down the class hierarchy. r=jya. 2015-11-23 10:26:49 +08:00
JW Wang
a7be18a6e3 Bug 1219163. Part 1 - Remove unused functions from AbstractMediaDecoder. r=jya. 2015-11-23 10:19:04 +08:00
Jean-Yves Avenard
321718db5f Bug 1226707: P3. Only create the type of decoder we will need. r=cpearce 2015-11-23 16:30:49 +11:00
Jean-Yves Avenard
1deba9f634 Bug 1226707: P2 Ensure we won't operate on a decoder that failed to initialize. r=cpearce 2015-11-23 16:30:48 +11:00
Jean-Yves Avenard
ef21ca8081 Bug 1226707: [ffmpeg] P1. Delete codec context upon initialization failure. r=gerald 2015-11-23 16:30:47 +11:00
Robert O'Callahan
f537754554 Bug 1223696. Don't destroy VideoFrameContainer when we reach MetadataLoaded without a video track. r=jwwang
--HG--
extra : commitid : 1b7GXS454NK
extra : rebase_source : cd2e35e1dc3be39945d00bfd2648f104258955c8
2015-11-17 16:34:28 +13:00
Jean-Yves Avenard
835f022d65 Bug 1226931: [MSE] Restrict leeway to append window start. r=gerald.
We only allow a leeway if the append window start is set to its default value (0)
2015-11-23 09:08:26 +11:00
Chris Pearce
f74bb6b010 Bug 1226430 - Remove alg from ClearKey license parser. r=gerald 2015-11-23 09:58:51 +13:00
Boris Zbarsky
1fec018fcb Bug 1224007 part 4. Fix some cases in which ErrorResult instances are destroyed without doing anything useful with exceptions on them. r=peterv 2015-11-20 16:29:41 -05:00