Commit Graph

1101 Commits

Author SHA1 Message Date
Paul Adenot
6804e75540 Bug 1000264 - Test for the Promise support of AudioContext.decodeAudioData. r=ehsan
--HG--
extra : rebase_source : 190819460674ff21ef83d64f419cb912e1e9fd22
2014-10-22 11:00:00 +02:00
Paul Adenot
8a9f927823 Bug 1000264 - Make AudioContext.decodeAudioData return a promise. r=ehsan,bz
--HG--
extra : rebase_source : 79e8b89ddc5d08ccdd131f9b827c9110da0238ee
2014-10-23 12:07:48 +02:00
Ralph Giles
070a39e4a1 Bug 1097849 - Enforce sane audio sample rates in MediaEncoder. r=derf
We believe the rate is constrained by the audio driver in practice,
but want to verify this assumption. The valid range 8-192 kHz covers
all sample rates in general use for audio data.

Note we must use an error return instead of an assertion since these
bounds are verified by unit tests, which do not catch MOZ_ASSERT().
2014-11-12 11:03:00 -08:00
Jean-Yves Avenard
29097ace99 Bug 1097260 - Ensure video dimensions are known when loadedmetadata is fired. r=cajbir 2014-11-12 20:19:29 +11:00
Jan-Ivar Bruaroey
2cc60f1dfe Bug 1097224 - Part 3 - test mozCaptureStream over peerConnection. r=jesup, r=drno 2014-11-13 00:59:22 -05:00
Jan-Ivar Bruaroey
523618aae7 Bug 1097224 - Part 2 - correct m-line test in verifySdp in test-harness. r=drno 2014-11-12 23:48:30 -05:00
Jean-Yves Avenard
1afe38d07f Bug 1075332 - Refactor mac audio decoder. Properly calculate timestamps. r=rillian
Also, in order to prevent the MediaDecoderStateMachine to stall waiting for audio data,
feed back as many decoded audio frame as were first submitted to the decoder in one go.
2014-11-12 15:13:02 +11:00
Anthony Jones
0155ca113a Bug 1097449 - Add locking around libav open/close; r=jya 2014-11-13 17:50:26 +13:00
Ryan VanderMeulen
47ac3838de Backed out changeset f8ff4c7a978a (bug 1097449) for leaks on a CLOSED TREE. 2014-11-12 22:03:25 -05:00
Chris Double
0c14e4c79b Back out 462fde31c880 for test failure on Android 2014-11-13 15:39:22 +13:00
Chris Double
20152383cf Back out ea9e204bc97a for test failure on Android. 2014-11-13 15:38:56 +13:00
Anthony Jones
abec529dc9 Bug 1097449 - Add locking around libav open/close; r=jya 2014-11-13 14:48:08 +13:00
Chris Double
6487b132d9 Bug 1065215 - Fix EME test for changes to MediaSource::endOfStream - r=cpearce
--HG--
extra : rebase_source : 95a4bf916ddbb6a11ef66f3700a9ef0ed39d0d25
2014-11-13 10:47:38 +13:00
Chris Double
4fa7b9d355 Bug 1065215 - MSE endOfStream() called within an 'updateend' event can fail with 'object no longer usable' - r=karl
Reopens the MediaSource when SourceBuffer::Remove is called on an Ended
MediaSource.
Only run the Range Removal algorithm when MediaSource duration is changed
instead of calling Remove on SourceBuffers.
Updates tests for the fact that update{start,end} can now be called
more than once due to DurationChange.

--HG--
extra : rebase_source : efe01de2f7c6be09b29e2e19d69d9943c9ab5e52
2014-11-13 10:47:31 +13:00
Ryan VanderMeulen
c74763b5f0 Backed out changeset 3fe4db1f0877 (bug 1097849) for gtest assertions.
CLOSED TREE
2014-11-12 15:15:49 -05:00
Jean-Yves Avenard
98997a65af Bug 1096764: Add Raw AAC sample support to FFmpeg audio decoder. r=edwin 2014-11-11 19:28:33 +11:00
Ralph Giles
b406146c92 Bug 1097849 - Assert sane audio sample rates in MediaEncoder. r=derf
We believe the rate is constrained by the audio driver, but we
should verify this assumption. 8-192 kHz covers all sample rates
in general use for audio data.
2014-11-12 11:03:00 -08:00
Paul Adenot
a07a4a99c6 Bug 1083664 - Disable an assert in cubeb_audiounit.c for investigation.
--HG--
extra : rebase_source : d46b6fb9d3da9a45ea94435a15bfc3bfee85e9d3
2014-11-12 20:05:05 +01:00
Ryan VanderMeulen
c19aaabc0c Bug 1083664- Skip dom/media/tests/mochitest on OSX debug. 2014-11-12 12:25:36 -05:00
Ryan VanderMeulen
b905f70962 Backed out changeset 5a476e673470 (bug 1073615) for causing various intermittent failures. 2014-11-12 11:52:30 -05:00
Ryan VanderMeulen
4688a50ded Bug 1083664 - Disable test_dataChannel_basicAudio.html on OSX debug for frequent assertions.
--HG--
extra : rebase_source : 253249f776e464781588eb62a7b3373faf44243e
2014-11-12 10:06:02 -05:00
Jan-Ivar Bruaroey
03dff8971f Bug 1064674 - mochitest for non-spec set(Local|Remote)Description wo/callbacks. r=jesup, r=drno 2014-09-08 23:36:47 -04:00
Matt Woodrow
d49117d925 Bug 1097375 - Implement MediaSource::setDuration. r=kinetik
--HG--
extra : rebase_source : 7e5f5387de5db3deccc6e74222b32f461359beb2
2014-11-12 17:11:33 +13:00
David Major
e70355d1e5 Bug 1091008 bustage fix - the second parameter was unused and removed by changeset 6907c1cb8bc0 CLOSED TREE
--HG--
extra : amend_source : 70685616cb814de1f0d8fc641b626682905075e3
2014-11-12 18:24:29 +13:00
Bobby Holley
6bb6f36de7 Bug 1093020 - Tests. r=karlt 2014-11-11 20:50:22 -08:00
Bobby Holley
356c46f407 Bug 1093020 - Don't use a buffering wait for MSE. r=cpearce 2014-11-11 20:50:22 -08:00
Bobby Holley
21c29c6312 Bug 1063323 - Tests. r=cajbir 2014-11-11 20:50:22 -08:00
Bobby Holley
dbc96fc572 Bug 1096597 - Switch to buffering mode on WAITING_FOR_DATA. r=cpearce 2014-11-11 20:50:22 -08:00
Bobby Holley
6b0f6dc55f Bug 1091008 - Reimplement HasLowUndecodedData in terms of GetBuffered. r=cpearce
Since GetBuffered now has a sane implementation for MSE, this should
make this function sane for MSE as well.
2014-11-11 20:50:21 -08:00
Bobby Holley
c2ce46072f Bug 1091008 - Remove special handling for MSE in HTMLMediaElement::Buffered. r=cajbir
The same code will now be reached by invoking this method on the decoder.
2014-11-11 20:50:21 -08:00
Bobby Holley
d114248ee6 Bug 1091008 - Implement a sensible GetBuffered override for MediaSourceReader using the existing GetBuffered on MediaSource. r=cajbir 2014-11-11 20:50:21 -08:00
Bobby Holley
a8b29b832b Bug 1091008 - Remove the aStartTime argument from MediaDecoderReader::GetBuffered. r=cpearce
We now have this stashed on the superclass.
2014-11-11 20:50:21 -08:00
Bobby Holley
bb3c4d25f1 Bug 1091008 - Teach MediaDecoderReader about its start time. r=cpearce
Duplicating state is never great, but this lets the reader make calculations
using this immutable state variable without involving the state machine. We
could alternatively punch a hole from MediaDecoderReader to
MediaDecoderStateMachine and access it there, but that would create tighter
coupling, and weird relationships for MSE.
2014-11-11 20:50:20 -08:00
Bobby Holley
36a9fb4e35 Bug 1091008 - Make sure to always set mStartTime via SetStartTime. r=cpearce 2014-11-11 20:50:20 -08:00
Bobby Holley
882a2e8acd Bug 1091008 - Factor out IsDataCachedToEndOfResource() into a higher-level question and answer it sensibly for MSE. r=cpearce 2014-11-11 20:50:20 -08:00
Chris Double
88a86034eb Backout 471009c10ae0 for web platform test failure on CLOSED TREE 2014-11-12 17:13:10 +13:00
Chris Double
ac68c94749 Backout 39fcd286ce68 for web platform test failure 2014-11-12 17:12:16 +13:00
Anthony Jones
20feb4c8fb Bug 1096157 - Add IsMediaSegmentPresent() for MP4; r=mattwoodrow 2014-11-12 16:37:43 +13:00
Chris Double
2fb56f7879 Bug 1065215 - Fix EME test for changes to MediaSource::endOfStream - r=cpearce 2014-11-12 15:53:47 +13:00
Chris Double
1078731c5e Bug 1065215 - MSE endOfStream() called within an 'updateend' event can fail with 'object no longer usable' - r=karl
Reopens the MediaSource when SourceBuffer::Remove is called on an Ended
MediaSource. Only run the Range Removal algorithm when MediaSource
duration is changed instead of calling Remove on SourceBuffers.
Updates tests for the fact that update{start,end} can now be called more than once due to DurationChange.
2014-11-12 15:53:43 +13:00
Chris Double ext:(%20with%20tweaks%20by%20Karl%20Tomlinson%20%3Ckarlt%2B%40karlt.net%3E)
ff5415dbf5 Bug 1089937 Add a fuzz time to end times for MSE reader switching on EOS r=karl,mattwoodrow
mLast{Audio,Video}Time differs from the actual end time because of
Bug 1065207 - the duration of a WebM fragment is an estimate not the
actual duration. In the case of audio time an example of where they
differ would be the actual sample duration being small but the
previous sample being large. The buffered end time uses that last
sample duration as an estimate of the end time duration giving an end
time that is greater than mLastAudioTime, which is the actual sample
end time.

Reader switching is based on the buffered end time though so we can't use
the actual sample end time for switching comparison.

For this reason we use the end time from the buffers to compare if we
should switch readers in this patch. We also add an EOS_FUZZ_US to allow
for the fact that it is an estimate and can differ slightly from actual times.

--HG--
extra : rebase_source : 47149609119c5dcd1ca7374501dd7c1e285469ef
2014-11-12 12:12:21 +13:00
Matthew Gregan
a14a83ab0f Bug 1096750 - use getPlayableVideos in test_video_in_audio_element. 2014-11-12 15:39:46 +13:00
Matthew Gregan
fb84352191 Bug 1096750 - Expect error event in test_video_in_audio_element if used with video-only media. r=cpearce 2014-11-11 15:52:37 +13:00
Seth Fowler
f72fd5c619 Bug 1071217 - Explicitly initialize the image module from gfxPlatform::Init. r=bas
--HG--
extra : rebase_source : c4c96ff051347dd85e053669533bd00d6120c75a
2014-11-11 17:28:50 -08:00
Ryan VanderMeulen
719f9216c7 Backed out 7 changesets (bug 1086693) for Android bustage on a CLOSED TREE. DONTBUILD
Backed out changeset 6eed18d830d2 (bug 1086693)
Backed out changeset b67a2e48f281 (bug 1086693)
Backed out changeset 2b4b439e7e6c (bug 1086693)
Backed out changeset 3adfd767a92f (bug 1086693)
Backed out changeset 6ea8b9247915 (bug 1086693)
Backed out changeset 408af1e3b457 (bug 1086693)
Backed out changeset 4c759b83892a (bug 1086693)
2014-11-11 16:13:15 -05:00
James Willcox
947ae1c3a2 Bug 1086693 - Part 6: Use generated bindings for AndroidMediaCodec and AndroidSurfaceTexture r=blassey,gcp 2014-11-11 14:46:09 -06:00
Ryan VanderMeulen
79ce99d826 Bug 1071217 - Disable test_imagecapture.html on Android due to going permafail.
CLOSED TREE
2014-11-11 14:43:04 -05:00
Andrea Marchesini
c30005c81b Bug 1073615 - One MediaStreamGraph singleton per audioChannel. r=roc 2014-09-29 03:43:00 -04:00
Chris Pearce
0e506710a9 Bug 1096125 - Backout c129289d32d6 as Adobe/EME doesn't actually need those DLLs for OPM handshake. r=backout. 2014-11-11 15:00:02 +13:00
Matthew Gregan
03538a225e Bug 1091704 - Delay buffer frame calculation in WMF audio decoder until after UpdateOutputType to avoid using obsolete rate/channel values. r=cpearce 2014-11-11 14:17:09 +13:00
Matthew Gregan
ee1928513d Bug 1085175 - r=roc
--HG--
extra : rebase_source : 78e0e0b21c6bb049f9112fdb3f25639c69289dd1
2014-11-11 08:58:52 +13:00
Blake
da40c53ff4 Bug 1082545 - Make fastSeek always fast. r=sotaro
--HG--
extra : rebase_source : 4e12b971b2ee18931a54d30d51fc71437e095cdd
2014-11-10 11:54:08 +08:00
Wes Kocher
31684fffbc Backed out changeset 992ad9a82996 (bug 1085175) for bustage on a CLOSED TREE 2014-11-10 13:18:40 -08:00
Matthew Gregan
2648b5a4fe Bug 1085175 - r=roc 2014-11-11 08:58:52 +13:00
Ryan VanderMeulen
d0d1b82c5c Backed out changeset 4d3c5b18b800 (bug 1085175) for Windows bustage.
CLOSED TREE
2014-11-10 14:46:27 -05:00
Matthew Gregan
0c04c04f67 Bug 1085175. r=roc
CLOSED TREE
2014-11-10 13:44:49 -05:00
Chris Pearce
cd84a0e959 Bug 1096125 - Whitelist BCrypt.dll and Crypt32.dll for loading inside GMPs. r=bobowen 2014-11-09 18:17:00 +00:00
Paul Adenot
e16a1eecf2 Bug 1032656 - Allocate the output buffer for OfflineAudioContext off-main-thread. r=ehsan
--HG--
extra : rebase_source : fa22c709a7b2883dd80ca0638fc3e21d3485b39e
2014-10-23 14:57:08 +02:00
JW Wang
6f27af6c73 Bug 1094549 - MediaCacheStream::FlushPartialBlockInternal should notify all readers even when channel offset is zero. r=roc 2014-11-06 06:53:00 +01:00
JW Wang
dc17a9ee86 Bug 1094549 - an error event should fire when decoding a zero-length file. It tests if MediaCacheStream::Read() gets stuck in waiting for data that will never come. r=roc 2014-11-06 06:52:00 +01:00
JW Wang
f9a0cebe06 Bug 758476 - fix test_play_twice.html. r=cabjir 2014-11-03 18:17:00 +01:00
Anthony Jones
7d635003be Bug 1091976 - Process MP4Reader::NotifyDataArrived() immediately; r=edwin 2014-11-10 13:32:09 +13:00
Jan-Ivar Bruaroey
88dcc00295 Bug 1090293 - Fix failure to get audio on first getUserMedia after start r=jesup
fix GetTrackTypesAvailable to not report placeholder tracks
2014-11-07 23:25:22 -05:00
Jan-Ivar Bruaroey
df7fa33d5f Bug 1091290 - Queue addIceCandidate correctly to not overwrite already-queued callbacks. r=bwc 2014-10-29 19:29:21 -04:00
Andrew Osmond
d3f34ea2cf Bug 1094816 - Fix a memory leak in MediaDeviceErrorCallback r=jesup 2014-11-07 11:52:12 -05:00
Andrew Osmond
9e82c5481b Bug 1094436 - Fix broken speech recognition requiring the wrong type of stream and leaking memory. r=jesup 2014-11-06 06:12:00 -05:00
Jed Davis
c0003b43bf Bug 1077057 - Expose Linux sandboxing information to JS via nsSystemInfo. r=kang r=froydnj
This adds "hasSeccompBPF" for seccomp-bpf support; other "has" keys
will be added in the future (e.g., user namespaces).

This also adds "canSandboxContent" and "canSandboxMedia", which are
absent if the corresponding type of sandboxing isn't enabled at build
type (or is disabled with environment variables), and otherwise present
as a boolean indicating whether that type of sandboxing is supported.
Currently this is always the same as hasSeccompBPF, but that could change
in the future.

Some changes have been made to the "mozilla/Sandbox.h" interface to
support this; the idea is that the MOZ_DISABLE_*_SANDBOX environment
variables should be equivalent to disabling MOZ_*_SANDBOX at build time.
2014-11-06 13:11:00 +01:00
Jean-Yves Avenard
a2f79473ba Bug 1093654 - Fix various memory leaks in MediaDecoders. r=jwwang
Change various function prototyping to make object ownership more explicit.
2014-11-06 19:17:05 +11:00
Jean-Yves Avenard
ad2a269a99 Bug 1092979 - Add mochitest to ensure loadedmetada is emitted as early as possible. r=cajbir 2014-11-06 21:03:39 +11:00
Chris Pearce
7803660edd Bug 1065827 - Don't fail EME mochitests if XHR fails, as XHR can fail due to test finishing before XHR completes. r=edwin 2014-11-06 14:38:00 +01:00
Jean-Yves Avenard
19cc46e52d Bug 1065827 - Invalidate video frame container during FirstFrameLoaded. r=jwwang 2014-11-06 20:56:56 +11:00
Jean-Yves Avenard
ed15542a66 Bug 1065827 - Wait for loadeddata event to start test. r=jwwang 2014-11-06 20:54:37 +11:00
Jean-Yves Avenard
832ad94e23 Bug 1065827 - Do not always wait to decode frames to emit loadedmetadata. r=jwwang 2014-11-06 20:52:44 +11:00
Jean-Yves Avenard
87553714b3 Bug 1065827 - Start MediaDecoder playback state in LOADING. r=cpearce 2014-10-28 20:10:08 +11:00
Anthony Jones
4d4119cb1a Bug 1092096 - Separate MSE prefs for MP4 and WebM on a CLOSED TREE. r=cajbir 2014-10-31 23:09:49 +13:00
Carsten "Tomcat" Book
664bf31c14 Backed out changeset aebe859551b3 (bug 1065827) for perma failures in m2 tests on a CLOSED TREE 2014-11-06 14:59:44 +01:00
Carsten "Tomcat" Book
121ca1d0c2 Backed out changeset 44f27b3c35d4 (bug 1065827) 2014-11-06 14:59:04 +01:00
Carsten "Tomcat" Book
0f4abd109e Backed out changeset 9316add97cf2 (bug 1065827) 2014-11-06 14:59:02 +01:00
Carsten "Tomcat" Book
d4d7834b06 Backed out changeset a6540a77d6f7 (bug 1065827) 2014-11-06 14:58:57 +01:00
Carsten "Tomcat" Book
df4b3dd3a6 Backed out changeset 1c969fba2f64 (bug 1092979) 2014-11-06 14:58:56 +01:00
Carsten "Tomcat" Book
4a64f5eae6 Backed out changeset 70a72a19cb4b (bug 1093654) 2014-11-06 14:58:53 +01:00
Carsten "Tomcat" Book
57f12dbfa0 Backed out changeset 1d058cefd04f (bug 1092096) for m2 test failures 2014-11-06 13:19:59 +01:00
Jean-Yves Avenard
c3bd7c5413 Bug 1093654 - Fix various memory leaks in MediaDecoders. r=jwwang
Change various function prototyping to make object ownership more explicit.
2014-11-06 19:17:05 +11:00
Jean-Yves Avenard
24094f6812 Bug 1092979 - Add mochitest to ensure loadedmetada is emitted as early as possible. r=cajbir 2014-11-06 21:03:39 +11:00
Jean-Yves Avenard
aad691649b Bug 1065827 - Invalidate video frame container during FirstFrameLoaded. r=jwwang 2014-11-06 20:56:56 +11:00
Jean-Yves Avenard
d2d552d81a Bug 1065827 - Wait for loadeddata event to start test. r=jwwang 2014-11-06 20:54:37 +11:00
Jean-Yves Avenard
8f6e3e468e Bug 1065827 - Do not always wait to decode frames to emit loadedmetadata. r=jwwang 2014-11-06 20:52:44 +11:00
Jean-Yves Avenard
b30c9d4926 Bug 1065827 - Start MediaDecoder playback state in LOADING. r=cpearce 2014-10-28 20:10:08 +11:00
Carsten "Tomcat" Book
92008ff307 Backed out changeset 04d5a617450f (bug 1092979) for needed checkin of another bug first 2014-11-06 10:27:10 +01:00
Anthony Jones
c95216d4a3 Bug 1092096 - Separate MSE prefs for MP4 and WebM; r=cajbir 2014-10-31 23:09:49 +13:00
Jean-Yves Avenard
40d8fe81fd Bug 1093880 - Delay decoder initialization until data has been appended. r=cajbir 2014-11-06 15:09:19 +11:00
Jean-Yves Avenard
710fec23b0 Bug 1092996 - MSE/WebM: limit size read to what is available. r=kinetik 2014-11-06 19:08:04 +11:00
Jean-Yves Avenard
02942a537e Bug 1092979 - Add mochitest to ensure loadedmetada is emitted as early as possible. r=cajbir 2014-11-04 10:58:56 +11:00
Jean-Yves Avenard
0952d392cf Bug 1079621 - Change non-fatal errors to warnings. r=rillian
This resolves intermittent failures in continuous integration.

NS_ERROR() triggers an assertion in debug builds, which tinderbox
reports as a failure. NS_WARNING calls NS_DebugBreak, but with the
lower severity level it skips invoking the debugger.
2014-11-06 12:29:45 +11:00
Alfredo Yang
d3913604c5 Bug 1094539: Fix getUserMedia video resolution r=jesup
Remove mCapability from sub class
2014-11-05 23:52:24 -05:00
Matt Woodrow
db4069d772 Bug 1056441 - Make MediaSourceReader seeking asynchronous. r=kinetik 2014-11-05 13:32:26 +13:00
Matt Woodrow
ca88a23260 Bug 1062661 - Part 1: Discard decoders that don't have any data in them. r=karlt 2014-11-04 11:16:34 +13:00
Matt Woodrow
35792c7281 Bug 1062661 - Part 1: Fix ResourceQueue::Evict so that it tries to remove enough data to get us under the threshold. r=kinetik 2014-11-04 11:16:31 +13:00
Robert O'Callahan
f35280a8c9 Bug 1085186. Don't readahead more than 30s of media data per resource on mobile/B2G. r=cpearce
--HG--
extra : rebase_source : 6fce6b5390d0eb76463db04f7dd72f79b97d39c5
2014-10-21 10:32:11 +13:00
JW Wang
e3a527b4ce Bug 1021682 - Fix and re-enable test_streams_gc.html on B2G. r=cpearce 2014-11-04 18:11:00 -05:00
Carsten "Tomcat" Book
d3a4dbb05e Backed out 10 changesets (bug 1091008, bug 1093020, bug 1063323) for windows m2 permanent test failures on a CLOSED TREE
Backed out changeset 21ddb8a58fea (bug 1093020)
Backed out changeset fe9e11333c7d (bug 1093020)
Backed out changeset bba774c54652 (bug 1063323)
Backed out changeset 16f58d7e1e17 (bug 1091008)
Backed out changeset 649bfc6dad4d (bug 1091008)
Backed out changeset 6f270b2d90f4 (bug 1091008)
Backed out changeset 966093bbc26a (bug 1091008)
Backed out changeset 9de4746aa59a (bug 1091008)
Backed out changeset 856016c0118a (bug 1091008)
Backed out changeset 8aaa10a8d956 (bug 1091008)
2014-11-05 12:57:43 +01:00
Jacek Caban
8c4b01cc96 Bug 1088130 - Fixed mingw cross compilation. 2014-11-05 11:29:47 +01:00
Bobby Holley
86a6d12070 Bug 1093020 - Tests. r=karlt 2014-11-05 10:09:00 +01:00
Bobby Holley
99250f7b44 Bug 1093020 - Don't use a buffering wait for MSE. r=cpearce 2014-11-05 10:09:00 +01:00
Bobby Holley
c19b9225dd Bug 1063323 - Tests. r=cajbir 2014-11-05 10:08:59 +01:00
Bobby Holley
ac5322f469 Bug 1091008 - Reimplement HasLowUndecodedData in terms of GetBuffered. r=cpearce
Since GetBuffered now has a sane implementation for MSE, this should
make this function sane for MSE as well.
2014-11-05 10:08:59 +01:00
Bobby Holley
b63e786a99 Bug 1091008 - Remove special handling for MSE in HTMLMediaElement::Buffered. r=cajbir
The same code will now be reached by invoking this method on the decoder.
2014-11-05 10:08:59 +01:00
Bobby Holley
0db9b673dd Bug 1091008 - Implement a sensible GetBuffered override for MediaSourceReader using the existing GetBuffered on MediaSource. r=cajbir 2014-11-05 10:08:59 +01:00
Bobby Holley
bc7157ad5e Bug 1091008 - Hoist stream pinning into the MediaDecoderReaders and make MediaDecoderStateMachine::GetBuffered just forward to them. r=cpearce
Whether or not we ping a stream depends a lot on what kind of decoder we're
dealing with. In particular, it doesn't really make sense for MSE.
2014-11-05 10:08:58 +01:00
Bobby Holley
f48f67daff Bug 1091008 - Remove the aStartTime argument from MediaDecoderReader::GetBuffered. r=cpearce
We now have this stashed on the superclass.
2014-11-05 10:08:58 +01:00
Bobby Holley
04865cf14a Bug 1091008 - Teach MediaDecoderReader about its start time. r=cpearce
Duplicating state is never great, but this lets the reader make calculations
using this immutable state variable without involving the state machine. We
could alternatively punch a hole from MediaDecoderReader to
MediaDecoderStateMachine and access it there, but that would create tighter
coupling, and weird relationships for MSE.
2014-11-05 10:08:58 +01:00
Bobby Holley
93eb6d095d Bug 1091008 - Factor out IsDataCachedToEndOfResource() into a higher-level question and answer it sensibly for MSE. r=cpearce 2014-11-05 10:08:57 +01:00
Anthony Jones
6eab679607 Bug 1094049 - Make GonkDecoderModule use currect display height; r=bwu 2014-11-05 16:18:32 +08:00
Chris Pearce
16d46a1e8f Bug 1090523 - Add more logging to help debug infrequent EME/MSE failure. r=edwin 2014-11-05 15:11:44 +13:00
Robert O'Callahan
543509b815 Bug 1093399. Fire UpdateReadyStateForData every time we get new data. r=cpearce
--HG--
extra : rebase_source : e243ecb8a72615cdf697228f30e631144cde129d
2014-11-04 14:19:14 +13:00
Andreas Pehrson
e7b77a1149 Bug 1078017 - Deregister track callbacks before unlinking tracks. r=jesup,jib 2014-11-02 00:56:10 +01:00
Karl Tomlinson
59ea4cd97e bug 1092932 detach MediaSource before initiating MDStateMachine shutdown r=bholley
to avoid races between the detach process and decoder task queue shutdown.

--HG--
extra : rebase_source : 91761d9594c53a7ccb974caf4931bcac90533e5a
2014-11-04 17:24:52 +13:00
Cgg
4e5f297ea9 Bug 966247 - Make MediaElementAudioSourceNode take the HTMLMediaElement volume into account. r=padenot
--HG--
extra : rebase_source : 6ba3d01780be44c4164bd8ed1b69e6171eaa66dd
2014-06-22 14:12:57 +02:00
Peter Van der Beken
192413b6ea Backout 58e2cab9572e, bad patch. 2014-11-04 12:35:02 +01:00
Peter Van der Beken
7cb694feb9 Bug 1089049 - crash in nsContentUtils::CanCallerAccess(nsINode*), Browser crashes if contextNode is null of document.evaluate. r=bz.
--HG--
extra : rebase_source : 00d2454f8de660a6432d30324529df02b52dd618
2014-11-04 10:20:08 +01:00
Carsten "Tomcat" Book
1ac9040f4a Backed out changeset 221ca54f4df0 (bug 1092096) for m2 test failures 2014-11-04 10:32:32 +01:00
Chris Pearce
2f32bb6e5e Bug 1088130 - Change for loop in GMP OP gtest so that it builds with VisualStudio 2010. r=bobowen 2014-11-03 22:40:00 +00:00
Anthony Jones
893119c56d Bug 1092096 - Separate MSE prefs for MP4 and WebM; r=cajbir 2014-11-04 15:22:26 +08:00
Vaibhav Agrawal
1ab18000f4 Bug 1083347 - Removing entries from android23.json and annotating manifests. r=gbrown 2014-11-03 12:01:51 -08:00
Bob Owen
466961d8ac Bug 1088130: Add to TestGMPCrossOrigin.cpp gtest to test that the APIs required for Output Protection on Windows work within the sandbox. r=cpearce 2014-11-03 10:02:30 +00:00
Jacek Caban
4129770618 Bug 1092130 - Fixed build errors found by mingw after bug 1076698 landed (-Werror=missing-braces errors). r=cpearce 2014-11-03 10:28:52 +01:00
Bobby Holley
8e2ed5632f Bug 1090991 - Introduce a new NotDecodedReason WAITING_FOR_DATA and use it for MSE. r=cpearce,r=cajbir 2014-11-03 09:20:15 +01:00
Bobby Holley
8953858191 Bug 1090991 - Unify MediaDecoderStateMachine::On{DecodeError,AudioEOS,VideoEOS} and eliminate duplicated logic. r=cpearce
We take this opportunity to align the behavior of Finish() calls between audio
and video EOS, invoking them unconditionally for both cases. Currently both
cases always call Finish() immediately, with the exception of:

(A) Video in seeking mode, where we may push mFirstVideoFrameAfterSeek before
    doing so, and
(B) Video in the |default:| case.

Push() and Finish() seem like orthogonal operations on MediaQueue, but we
nonetheless preserve the old order just in case. There doesn't seem to be a good
reason for (B).
2014-11-03 09:20:14 +01:00
Bobby Holley
4a2b081603 Bug 1090991 - Refactor RequestSampleCallback to use a single callback for all "not decoded" message. r=cpearce,r=cajbir
I'm going to add another one, and want this API to scale better than it does.
2014-11-03 09:20:14 +01:00
Bobby Holley
3dc6ad728a Bug 1090991 - Modify MediaData::Type so that it may serve as a general-purpose enum for distinguishing audio and video. r=cpearce
We don't seem to have something like this already, and this seemed better than
introducing yet another new enum.
2014-11-03 09:20:14 +01:00
JW Wang
2bdbd3c844 Bug 1079695 - Part 3 - fix const-correctness of MediaDecoderStateMachine. r=kinetik 2014-10-30 21:12:00 +01:00
JW Wang
85fc40ca05 Bug 1079695 - Part 2 - remove audio clock wordaround from MediaDecoderStateMachine. r=kinetik. 2014-11-02 18:06:00 +01:00
JW Wang
35c50eef83 Bug 1079695 - Part 1 - ensure AudioSink::GetPosition() is mono-increasing in spite of AudioStream error. r=kinetik 2014-10-30 21:10:00 +01:00
JW Wang
d993371d68 Bug 1021794 - Fix and re-enable test_played.html. r=cpearce 2014-10-30 20:51:00 +01:00
Ralph Giles
8e136c25aa Bug 1073805 - Apply ADTS header for Gonk. r=cpearce. 2014-10-30 17:01:00 -07:00
Ralph Giles
afeea734aa Bug 1073805 - Add ADTS header for FFmpeg. r=cpearce.
Keep a reference to the AudioDecoderConfig so we can pass the
appropriate values to the Adts method from our Input method.
2014-10-30 16:26:00 -07:00
Ralph Giles
6f582b6a71 Bug 1073805 - Apply ADTS header for Android. r=cpearce. 2014-10-30 17:07:00 -07:00
Ralph Giles
8b03e8db1c Bug 1073805 - Apply ADTS headers to AAC on MacOS. r=cpearce
Our AudioFileStream parser needs the headers to find the sample
boundaries.
2014-10-30 15:47:00 -07:00
Chris Pearce
ab088f172a Bug 1073805 - Pass raw AAC to Windows PlatformDecoder. r=kinetik
This avoids problems creating an ADTS header for newer HE-AAC profiles.
2014-10-30 15:45:00 -07:00
Chris Pearce
1cef9c17df Bug 1092860 - Fix GMPVideoFrameType and GMPSessionType serialization. r=jesup 2014-11-03 13:53:01 +13:00
JW Wang
64bb3100a9 Bug 1091436 - Enable test_chaining.html on B2G. r=cpearce 2014-10-30 06:37:00 +01:00
James Willcox
9fda622507 Bug 1089159 - Correctly use MediaCodec's audio output format r=cpearce
--HG--
extra : rebase_source : 2b3b3a43e54cdcdac87e303a2705e8be7c60d3dd
2014-10-29 18:40:06 -05:00
Jean-Yves Avenard
23af38aa7f Bug 1090900 - Issue SimpleTest.finish() even if test failed. r=padenot 2014-10-30 12:15:58 +11:00
Bobby Holley
3bea4bdef3 Bug 1090983 - Invoke UpdateReadyState() after invoking SetState(). r=cpearce
Otherwise, UpdateReadyState() will think that nothing has changed.
2014-10-30 09:16:02 +01:00
Mike Hommey
d667f4bb59 Bug 1077148 part 4 - Add and use new moz.build templates for Gecko programs and libraries. r=gps
There are, sadly, many combinations of linkage in use throughout the tree.
The main differentiator, though, is between program/libraries related to
Gecko or not. Kind of. Some need mozglue, some don't. Some need dependent
linkage, some standalone.

Anyways, these new templates remove the need to manually define the
right dependencies against xpcomglue, nspr, mozalloc and mozglue
in most cases.

Places that build programs and were resetting MOZ_GLUE_PROGRAM_LDFLAGS
or that build libraries and were resetting MOZ_GLUE_LDFLAGS can now
just not use those Gecko-specific templates.
2014-10-30 13:06:12 +09:00
Chris Pearce
0931dee714 Bug 1071482 - Add more logging to help debug rare intermittent failures. r=edwin 2014-10-30 15:05:49 +13:00
Chris Pearce
cbdd05a69e Bug 1071482 - Break a cycle in TrackBuffer and SourceBufferDecoder's MediaTaskQueue's SharedThreadPool. r=cajbir 2014-10-28 13:21:13 +13:00
Chris Pearce
e264dccc4f Bug 1071482 - Make content encrypted via EME inaccessible from JS APIs. r=roc 2014-10-28 13:21:12 +13:00
Chris Pearce
9557cedfdc Bug 1071482 - Rename test_encryptedMediaExtensions to test_eme_playback to make it easier to run all eme tests with a wildcard. r=edwin
--HG--
rename : dom/media/test/test_encryptedMediaExtensions.html => dom/media/test/test_eme_playback.html
2014-10-28 13:21:12 +13:00
Chris Pearce
fe485d4440 Bug 1071482 - Factor out EME load/setup code, so it can be reused in other tests more easily. r=edwin 2014-10-28 13:21:11 +13:00