Commit Graph

3575 Commits

Author SHA1 Message Date
Rick Eyre
0610cbd281 Bug 865407 - Part 8: Update vtt.js to latest version. r=rillian
This completes the initial implementation of the processing algorithm.
The algorithm doesn't support vertical text yet, but that's not a
big issue since Firefox doesn't support it.
2014-02-21 22:11:06 -05:00
Karl Tomlinson
00a40671d5 remove debugging dump() accidentally added in bug 923301
--HG--
extra : transplant_source : %9Bg%E0%7F%CEH%60%E8%23%06%5B%28kMa%BF%A2%84%0A%DC
2014-02-19 17:39:38 +13:00
Karl Tomlinson
206a14129a remove debugging dump() accidentally added in bug 931311
--HG--
extra : transplant_source : %A9%3B%3C%18%D1%5Dh%12%9A%7F%9BB%98S%F1%8F%92%5E%60%3A
2014-02-19 17:37:34 +13:00
Karl Tomlinson
277ffadee0 b=966322 use dump instead of ok to work around bug 974073
--HG--
extra : transplant_source : %40%C5f%FCr%C5%1F%82%15%0C%AE%FB%2B%5Bs%EB%EE%D02%FF
2014-02-19 17:34:11 +13:00
Karl Tomlinson
97d61fb9a8 b=966322 remove unnecessary webaudio.js script include
--HG--
extra : transplant_source : %C7%9E%14%A0%DD%D5%AE%23%F2.-%DAT6%D4%0D%95c%0B%B6
2014-02-19 17:28:59 +13:00
Bobby Holley
f1cdaa0e45 Bug 976105 - Remove test-suite dependency on unprivileged calls to constructor-as-function. r=bz 2014-02-24 14:40:21 -08:00
Ryan VanderMeulen
5a85356db5 Merge m-c to inbound. 2014-02-24 16:18:45 -05:00
Edwin Flores
6f4a557e27 Bug 970076 - Set preferred video colour format for OMX on Android 4.2 and 4.3 r=doublec
Android 4.2 introduced some relatively major changes in the way that Android
negotiates its output colour format. This was fixed on 4.4 KitKat in bug 953394.
This patch just lets Android versions 4.2 and 4.3 use the same fix.
2014-02-19 17:11:42 +13:00
Ryan VanderMeulen
bb75ebbe6a Merge inbound to m-c. 2014-02-18 15:18:19 -05:00
Sotaro Ikeda
2e29803c25 Bug 965440 - Try GRALLOC_PLANAR_YCBCR in VideoData::Create on gonk r=nical,doublec 2014-02-18 06:50:20 -08:00
John Lin
c571b8f73a Bug 972246 - Keep sending EOS signal unitl OMXVideoEncoder actually receive it. r=roc 2014-02-18 08:50:15 -05:00
John Lin
6b91d77106 Bug 963458 - Change AVC/H.264 encoder configuration for B2G emulator. r=roc 2014-02-18 08:50:08 -05:00
Karl Tomlinson
f1e2b4844c b=973782 revert 8e574d7a951a, failing test from bug 938022 DONTBUILD 2014-02-18 21:31:55 +13:00
Karl Tomlinson
ebd3154b99 debug logging for bug 966322
--HG--
extra : transplant_source : %F1%F9%BF%04%A3%10W%E1%22%E21%05%92%B9%5B%FCd%13%D4%BA
2014-02-18 17:40:58 +13:00
Tony Young
7d51ca8e91 test for bug 938022
--HG--
extra : transplant_source : %FE%A1%93%10%AE%86C%F7G%00%9B%E3Y%F7%08%DF%A26%1A%5B
2014-02-18 10:17:29 +13:00
Chris Pearce
f9e134fdb9 Bug 968016 - Wait until decode has finished before releasing resources when decoder becomes dormant. r=kinetik 2014-02-18 11:53:53 +13:00
Chris Pearce
0400ec187a Bug 968016 - Call MediaDecoderReader::OnDecodeThreadStart/Finish() in DecodeLoop(). r=kinetik 2014-02-18 11:53:53 +13:00
Chris Pearce
5ac658b5a5 Bug 968016 - Ensure all threads in media SharedThreadPools are joined in MediaShutdownManager's xpcom shutdown listener. r=kinetik 2014-02-18 11:53:53 +13:00
Chris Pearce
5209886eff Bug 968016 - Add threadStackSize attribute to nsIThreadPool. r=bsmedberg 2014-02-18 11:53:53 +13:00
Chris Pearce
2d67a1b332 Bug 968016 - Use a SharedThreadPool of size 1 for the Media State Machine thread. r=kinetik
This makes it easy to share the state machine thread, and for it to shut down
automatically when the last reference is dropped to it.
2014-02-18 11:53:53 +13:00
Chris Pearce
6dda7a817e Bug 968016 - Use SharedThreadPool instead of manually managed threads for the media decoding. r=kinetik 2014-02-18 11:53:52 +13:00
Chris Pearce
5f29834470 Bug 968016 - Add methods to SharedThreadPools and MediaTaskQueues to report whether we're running on one of their threads. r=kinetik 2014-02-18 11:53:52 +13:00
Chris Pearce
898150675c Bug 968016 - Add a parameter to SharedThreadPool to control the number of threads in the pool. r=kinteik 2014-02-18 11:53:52 +13:00
Chris Pearce
1459cdff3d Bug 968016 - Call MediaDecoderStateMachine::Init() in MediaSourceDecoder::Load(), like MediaDecoder. r=kinetik
Load() is called by the media load algorithm, and this behaviour matches the
existing MediaDecoder. Calling MediaDecoderStateMachine::Init() ensures that
we'll be able to init the state machine properly (i.e. its soon to be added
shared thread pools) before we decode.
2014-02-18 11:53:51 +13:00
Masatoshi Kimura
9f0004eb6e Bug 969918 - Use decltype to declare pointers for dynamic-loaded functions. r=jimm sr=roc 2014-02-18 07:32:52 +09:00
Alessandro Decina
a3e576a887 Bug 973379 - GStreamerReader::ReadMetadata()'s element config loop should break on error to avoid timeout. r=edwin 2014-02-18 11:28:04 +13:00
Paul Adenot
ff2b4ee7e8 Bug 960057 - When an HTMLMediaElement outputs to a MediaStream, make sure to install the refill callback in any case. r=roc DONTBUILD 2014-02-14 10:38:58 -08:00
Paul Adenot
2cbaed0d76 Backed out changeset 4d0197840932 (bug 960057) for invalid bug number in the commit message. 2014-02-17 13:54:17 +01:00
Paul Adenot
38770e3cf4 Bug 960059 - When an HTMLMediaElement outputs to a MediaStream, make sure to install the refill callback in any case. r=roc
--HG--
extra : rebase_source : a690159d6395ed7bab2a053bbb1cc65e11bb8be6
2014-02-14 10:38:58 -08:00
Tony Young
1633c5717b test for bug 956489
--HG--
extra : transplant_source : D%29%7CvI%1D%BC%B4%A8%10%02%F5%BF%ECV%D2%7C%1C%27%B8
2014-02-17 09:47:39 +13:00
Karl Tomlinson
df9498d5ab b=972678 round double times to ticks consistently and round to nearest r=padenot
--HG--
extra : transplant_source : Q%B5%155%81%7C%8BQ4%EB%BD%E9h%A7%8E%94%C9%EC%A2q
2014-02-17 09:47:19 +13:00
Karl Tomlinson
f7531c3dfa b=972678 move stream time methods from WebAudioUtils to AudioNodeStream r=padenot
Trying to clear up which stream parameter is which.

--HG--
extra : transplant_source : D%94%23%60M%82%7E%D8%FF%8A%D3%C8%9F%25%D6%7E%EA%19%80%E9
2014-02-17 09:46:56 +13:00
Tony Young
65877530ba test for bug 964376
--HG--
extra : transplant_source : %5D%1C%AD%A5%8D%BCT%11%CAR%1F%A3O%1B3%E33%E7%81%DE
2014-02-14 17:48:34 +13:00
Phil Ringnalda
c36c6ce913 Merge b-i to m-c 2014-02-15 10:01:36 -08:00
Vaibhav Agarwal
81f1ea0a18 Bug 970925 - convert testing/mochitest/android.json into skip-if statements in mochitest.ini files; r=jmaher 2014-02-15 04:53:02 -05:00
Chris Pearce
ccc0faa54a Bug 973139 - Don't treat EOS of one stream as EOS of all streams when decoding with GStreamer. r=alessandro.d 2014-02-15 22:32:12 +13:00
Mike Habicher
cb7b7f75e6 Bug 909542 - refactor CameraControl API, r=dhylands,jst,jesup,onecyrenus 2014-02-14 17:41:07 -05:00
Ryan VanderMeulen
d6e9eaf736 Merge m-c to inbound. 2014-02-14 15:32:02 -05:00
Rick Eyre
37de22ae7f Bug 941701 - Fix crash in TextTrackCue::GetCueAsHTML r=rillian
TextTrackCue::GetCueAsHTML gets called when the HTMLMediaElement
shutsdown which means that TextTrackCue's mDocument sometimes no longer
exists based on when the cycle collector freed it. I've added a null
check to make sure that it exists before we start doing anything.
2014-02-14 10:00:00 -08:00
Rick Eyre
c5db634a0c Bug 972479 - TextTracks added to a TextTrackList through an HTMLTrackElement should dispatch 'onaddtrack' event. r=rillian
The problem was that the HTMLTrackElement calls a different
AddTextTrack method then the HTMLMediaElement does when
addTextTrack is called on it. This patch has the method
that the HTMLTrackElement calls dispatch the onaddtrackevent
as well.
2014-02-13 13:28:21 -05:00
Wes Johnston
b86214b50f Bug 946344 - Remove GeckoEventResponder. r=mfinkle,blassey,kats
--HG--
rename : mobile/android/base/util/EventDispatcher.java => mobile/android/base/EventDispatcher.java
2014-02-11 09:16:00 -08:00
Ted Mielczarek
06e04ce1b2 Bug 968837 - Move more Mochitests into manifests. r=jmaher
--HG--
rename : toolkit/components/places/tests/browser/bug_399606/399606-history.go-0.html => toolkit/components/places/tests/browser/399606-history.go-0.html
rename : toolkit/components/places/tests/browser/bug_399606/399606-httprefresh.html => toolkit/components/places/tests/browser/399606-httprefresh.html
rename : toolkit/components/places/tests/browser/bug_399606/399606-location.reload.html => toolkit/components/places/tests/browser/399606-location.reload.html
rename : toolkit/components/places/tests/browser/bug_399606/399606-location.replace.html => toolkit/components/places/tests/browser/399606-location.replace.html
rename : toolkit/components/places/tests/browser/bug_399606/399606-window.location.href.html => toolkit/components/places/tests/browser/399606-window.location.href.html
rename : toolkit/components/places/tests/browser/bug_399606/399606-window.location.html => toolkit/components/places/tests/browser/399606-window.location.html
rename : toolkit/components/places/tests/browser/visituri/begin.html => toolkit/components/places/tests/browser/begin.html
rename : toolkit/components/places/tests/browser/visituri/final.html => toolkit/components/places/tests/browser/final.html
rename : toolkit/components/places/tests/browser/visituri/redirect_once.sjs => toolkit/components/places/tests/browser/redirect_once.sjs
rename : toolkit/components/places/tests/browser/visituri/redirect_twice.sjs => toolkit/components/places/tests/browser/redirect_twice.sjs
rename : toolkit/components/places/tests/browser/settitle/title1.html => toolkit/components/places/tests/browser/title1.html
rename : toolkit/components/places/tests/browser/settitle/title2.html => toolkit/components/places/tests/browser/title2.html
rename : toolkit/components/places/tests/mochitest/bug94514-postpage.html => toolkit/components/places/tests/bug94514-postpage.html
rename : toolkit/components/places/tests/mochitest/test_bug_411966.html => toolkit/components/places/tests/test_bug_411966.html
rename : toolkit/components/places/tests/mochitest/test_bug_461710_perwindowpb.html => toolkit/components/places/tests/test_bug_461710_perwindowpb.html
rename : toolkit/components/places/tests/mochitest/test_bug_94514.html => toolkit/components/places/tests/test_bug_94514.html
2014-02-06 15:37:30 -05:00
Alessandro Decina
3ffa20733a Bug 874806 - GStreamerReader::PlayBinSourceSetupCb() doesn't need to do a bogus read anymore. r=cpearce 2014-02-18 08:59:32 -05:00
Chris Pearce
3e6e5e4364 Bug 903051 - Prevent aborted loads from messing with ChannelMediaResource state. r=roc 2014-02-13 17:08:55 +13:00
Ryan VanderMeulen
37a64da0e4 Merge inbound to m-c. 2014-02-12 15:48:01 -05:00
Alfredo Yang
dacf731ba9 Bug 970793 - Update correct base_data_offset. r=cpearce 2014-02-12 09:54:56 -05:00
JW Wang
caef91087a Bug 969583 - Remove the canplaythrough listener inside the canplaythrough listener, so that the listener only runs once. r=cpearce 2014-02-12 10:44:17 +08:00
Ryan VanderMeulen
8fd74397bf Bug 966804 - Disable webspeech/recognition/test/test_timeout.html on Windows due to frequent failures. 2014-02-12 09:50:10 -05:00
Jacek Caban
d58401494a Bug 970429 - Don't allow using INITGUID in unified sources. r=Ehsan 2014-02-12 10:59:05 +01:00
Ryan VanderMeulen
90b89ca7c1 Merge m-c to inbound. 2014-02-11 14:58:40 -05:00
Ryan VanderMeulen
558028f7f0 Merge b2g-inbound to m-c. 2014-02-11 14:57:31 -05:00
Randy Lin
a79b3e7504 Bug 957452 - Test case for capture use-after-free on MediaRecorder::Session::GetEncodedData. r=jsmith 2014-02-10 16:55:22 +08:00
Birunthan Mohanathas
409ea82a5e Bug 963056 - Part 1: Name unnamed struct in IRC_Composite_C_R0195-incl.cpp. r=ehsan 2014-02-11 13:31:57 -05:00
Randy Lin
5f8760deb9 Bug 957452 - MediaRecorder: Fix use-after-free crash [@mozilla::dom::MediaRecorder::Session::GetEncodedData]. r=roc 2014-01-13 16:11:22 +08:00
Ryan VanderMeulen
a53c82a5a7 Merge m-c to b2g-inbound. 2014-02-11 08:43:09 -05:00
Ben Kelly
5a502136a6 Bug 969114: Avoid allocation slop in MediaCacheStream. r=cpearce DONTBUILD 2014-02-10 22:43:52 -08:00
Ben Kelly
5d2bb06600 Revert bug 969114 (76e72417a9d7) for incorrect commit message. DONTBUILD 2014-02-10 22:43:52 -08:00
Ben Kelly
d0e24dd6aa Bug 969114: Avoid allocation slop in MediaCacheStream. 2014-02-10 22:31:40 -08:00
Phil Ringnalda
608d5cbbe0 Back out f03664765359 (bug 909542) for unexpected assertions and lack of expected assertions 2014-02-10 19:09:23 -08:00
Mike Habicher
f2e6cb2def Bug 909542 - refactor CameraControl API, r=dhylands,jst,jesup,onecyrenus
* * *
Debugging the rotation issue with new camera.js
* * *
Fix the occasionally-invalid MOZ_ASSERT on GonkCameraControl.cpp:844
2014-02-10 17:53:19 -05:00
Ryan VanderMeulen
c608b2f60f Merge inbound to m-c. 2014-02-10 15:42:58 -05:00
Rick Eyre
8207a58580 Bug 969506 - TextTrack's ActiveCues should return null of TextTrack's mode is set to 'disabled'. r=rillian 2014-02-07 13:59:26 -05:00
Benjamin Chen
e9e37f323e Bug 964209 - [RTSP] Implement flags() function and set mExtractor to fix content process crash. r=sworkman 2014-02-07 15:46:26 +08:00
JW Wang
5b0fafef7e Bug 951100 - a.setAttribute("autoplay", false) doesn't work as expected as a.autoplay = false. r=cpearce 2014-02-10 10:27:47 +08:00
Alfredo Yang
4ed8628dbb Bug 853356 - gUM video permisson prompt. r=fabrice, felipc, wjohnston, mrbkap, jimm, jesup, khuey, jsmith 2014-02-09 15:34:40 -05:00
Ms2ger
63c5bd405a Merge m-i to m-c. 2014-02-09 10:31:55 +01:00
Ms2ger
31c7d64437 Bug 952033 - Part e: Use IntSize in VideoSegment; r=roc 2014-02-09 09:04:38 +01:00
Ms2ger
0ae39bb1aa Bug 952033 - Part d: Use IntSize in MediaDecoder; r=roc 2014-02-09 09:04:38 +01:00
Ms2ger
176399514a Bug 952033 - Part c: Use IntSize and IntRect in VideoData; r=roc 2014-02-09 09:04:38 +01:00
Ronny Perinke
81276d5ab0 Bug 967731 - Fix import and type conversion error from bug 963621. r=doublec 2014-02-08 20:58:14 -05:00
Ben Kelly
e3b94f8fc2 Bug 969826: Correctly track number of samples copied in DirectShowCopy. r=cpearce 2014-02-08 16:43:49 -08:00
Karl Tomlinson
6ce60700bf b=969089 allow an offline graph to shutdown before it's AudioDestinationNode is unlinked r=roc
A non-realtime graph does not start up again after finished processing, so it
can safely enter LIFECYCLE_WAITING_FOR_STREAM_DESTRUCTION.

--HG--
extra : transplant_source : %AF%98D%D5%EE%CA7zfv.%B4%F4%D8%05Q7%C2%8D%A7
2014-02-11 13:04:58 +13:00
Karl Tomlinson
ef330e24cd b=967972 avoid overflow in buffer position when looping r=padenot
As a side-effect, the buffer playback will now continue from the same buffer
sample number (even when looping), where possible, in the following situations:

* Changing the loop start or end parameters.

* Changing the buffer to one of a different sample rate.

--HG--
extra : transplant_source : 2%11%7Dm%92pu%60%E3G%D4%D4%DB0%2B%20%9A%1Bd%FA
2014-02-11 11:19:26 +13:00
Rick Eyre
477050afba Bug 967157 - Setting TextTrackCue::DisplayState should set TextTrackCue::HasBeenReset to false. r=rillian 2014-02-03 15:27:51 -05:00
Honza Bambas
0dd5998dd2 Bug 962949 - disable v.networkState checks in test_preload_actions.html because those are not reliable, r=roc 2014-02-07 22:15:22 +01:00
Ryan VanderMeulen
4635913456 Merge inbound to m-c. 2014-02-07 14:22:17 -05:00
Jacek Caban
1530fe38f2 Bug 962385 - Minor GCC compilation fix. 2014-02-07 12:51:34 +01:00
Rick Eyre
bbede675f5 Bug 881976 - Part 3: Refactor TextTrack classes. r=rillian
Change the way they store references to eachother to make more sense.
A Track will never belong to a MediaElement directly. It will always
belong to one through a TextTrackList.
2014-01-27 15:17:20 -05:00
Rick Eyre
3c33886b48 Bug 881976 - Part 2: Expose TextTrackList's MediaElement to chrome JS. r=rillian, r=bz
Our JS WebVTT implementation (vtt.js) needs access to a TextTrackList's
MediaElement in order to compute a TextTrackCue's line position. Therefore,
we need to expose it to chrome JS.
2014-01-27 14:51:28 -05:00
Ben Kelly
a8fbf8f6c7 Bug 960873: Part 8: Use AudioCompactor in android PluginMediaReader.cpp. r=cpearce (DONTBUILD for re-land) 2014-02-06 16:59:06 -05:00
Ben Kelly
dee7f1097d Revert Bug 960873 Part 8 (de00c8bfc9b9) due to missing r= in commit message 2014-02-06 16:55:00 -05:00
Ben Kelly
d1627d5b5a Bug 960873: Part 8: Use AudioCompactor in android PluginMediaReader.cpp. 2014-02-06 16:49:53 -05:00
Ryan VanderMeulen
9bf72037e1 Merge m-c to inbound on a CLOSED TREE. 2014-02-06 16:29:41 -05:00
Ryan VanderMeulen
c4a74612a7 Merge b2g-inbound to m-c. 2014-02-06 16:28:14 -05:00
Ehsan Akhgari
289dcad87c Bug 968879 - Use [Pref] annotations to enable web speech interfaces; r=smaug 2014-02-06 15:00:37 -05:00
JW Wang
f8f435b6ba Bug 964674 - Use SpecialPowers.pushPrefEnv to ensure "media.video_stats.enabled" is turned on/off before proceeding test. r=padenot 2014-02-06 16:27:35 +08:00
Alfredo Yang
2b0b71d127 Bug 968144 - Stop sending frame when camera stopping. r=jesup 2014-02-06 10:12:07 -05:00
Daniel Holbert
43b9beb480 Bug 968634: Fix broken inequality comparison in SpeechRecognition.cpp. r=ggp 2014-02-06 10:56:50 -08:00
Ehsan Akhgari
87c1762284 Bug 968643 - Part 1: Stop using [PrefControlled]; r=bzbarsky 2014-02-06 13:28:14 -05:00
Ehsan Akhgari
826fbbc616 Bug 968479 - Remove the media.webaudio.enabled pref; r=roc
--HG--
extra : rebase_source : 3618cb3097aa99a79a06af016bf6b3a3c6f77208
2014-02-06 08:36:46 -05:00
Ralph Giles
75b75bea7a Bug 966311 - Calculate frame size for stereo wave. r=doublec
We were assuming 8-bit WAVE files were mono-only, but this is
not necessarily the case.
2014-01-31 13:50:45 -08:00
JW Wang
bf3cd4d7fc Bug 962883 - Use SpecialPowers.pushPrefEnv to ensure "media.ogg.enabled" is turned off before testing media recorder. r=jsmith 2014-01-28 12:03:59 +08:00
Karl Tomlinson
6e6e27d488 b=967992 collect unreferenced AudioBufferSourceNodes with no buffer r=padenot
The playing ref now only exists while there is a buffer.
We don't currently dispatch ended events when there is no buffer.

--HG--
extra : transplant_source : Ba%0BRD%89%96%99%F14%B6%40%3D%B2%C1%D5%28%D6%15%12
2014-02-06 08:33:16 +13:00
Karl Tomlinson
0c2d8af55d b=967992 dispatch ended event, remove playing ref when source buffer is replaced with one shorter than offset r=padenot
Sending an updated BUFFEREND will stop playback appropriately.

--HG--
extra : transplant_source : %17%81%5D%B5%CD%F1%7F%EC%23%28%F5D%E4oh%DB%9F%E7%210
2014-02-06 08:30:49 +13:00
Karl Tomlinson
c58fe4a68a b=967992 test to check for ended event when source buffer is replaced with another shorter than offset
--HG--
extra : transplant_source : -HA%5D%8E%10%1B%14%E8%E2A%9Al%CF%A5d%7D%A3%9B%A1
2014-02-06 08:29:12 +13:00
Karl Tomlinson
515b015dfb b=967972 include offset in buffer position r=padenot
There is a change in behaviour re the offset parameter when changing the
buffer while playing to one with a different sample rate, but I'm not clear
that what we current do with mPosition in that situation is best anyway.  I
think the main thing is to ensure playback from the same place if the buffer
is changed to one with the same sample rate.

--HG--
extra : transplant_source : %17%40%15%12L%9E%05et%C2o%BE%15%D7%C7%F4%ED%5E%24q
2014-02-06 08:28:42 +13:00
Karl Tomlinson
9a841021d0 b=967972 change DURATION engine parameter to BUFFEREND r=padenot
--HG--
extra : transplant_source : %B4%F3i%7FV%A95F%D0%BD%C4%E6u%03%F7%04%7Di%7C%A9
2014-02-06 08:27:45 +13:00
Atte Kettunen
88947e92b0 test for bug 952756
--HG--
extra : transplant_source : %7E%B4%3C%8B%F6m%B3%CD%12%F4%93%FB%A1%D3%21%D5%F6Q%AFz
2014-02-06 08:18:39 +13:00
Karl Tomlinson
49da1959b6 b=967924 correct resampler input buffer sample count estimate math r=padenot
--HG--
extra : transplant_source : %15%90%0C%22_%99%BFK%14%93%28L%23hZ1%FE%B7NB
2014-02-06 08:15:31 +13:00
Ben Kelly
315987bce8 Bug 960873: Part 7: Reduce apple mp3 MAX_AUDIO_FRAMES to minimize alloc slop. r=cpearce 2014-02-05 18:11:25 -05:00