Commit Graph

670 Commits

Author SHA1 Message Date
Benjamin Chen
5fee249d8f Bug 962878: testcase: Modify the testcase since we can not guarantee the last onDataAvailble always has data. r=roc 2014-06-24 13:52:09 +08:00
Ryan VanderMeulen
952d09f1a4 Bug 608634 - Re-disable test_error_in_video_document.html on Android for intermittent failures. 2014-06-23 11:42:40 -04:00
Benjamin Chen
7b9b52ae34 Bug 969372: part3: fix the testcase. r=roc 2014-06-19 10:14:37 +08:00
Birunthan Mohanathas
c910458886 Bug 1016240 - Exterminate CR+LF line endings. r=briansmith,cpearce,ehsan,gavin 2014-06-18 17:56:02 -07:00
Kyle Huey
bd04752f32 Bug 1015662: Drop the edge from <track> to its channel once the load is completed. r=bz 2014-06-18 13:10:24 -07:00
Chris Pearce
763787ecd7 Bug 979104 - MediaDecoderReader/StateMachine asynchronous decoding. r=kinetik 2014-06-18 17:07:02 +12:00
JW Wang
c0315ef667 Bug 1023781 - default preload is 'none' on B2G. It will not create a decoder at all and we will get 'suspend' instead of 'error'. r=cajbir 2014-06-16 20:17:00 +02:00
Chris Pearce
826cba6235 Bug 1022913 - Ensure that fastSeek() doesn't skip behind the current playback position if we're seeking forwards. r=cajbir 2014-06-17 15:27:46 +12:00
Anthony Jones
3020a54ab1 Bug 1020679 - Crash test for timescale /0. r=cpearce 2014-06-17 13:52:01 +12:00
Ehsan Akhgari
3b9861ed6a Backed out changeset 0cdef46c65c1 (bug 979104) for causing bug 1024324 2014-06-13 16:20:37 -04:00
Ryan VanderMeulen
aa9f3b7b03 No bug - Adjust expected assertions for test_playback_rate.html on Linux. 2014-06-12 18:20:16 -04:00
Ryan VanderMeulen
209484c87f Bug 1023351 - Adjust expected assertion range for test_playback_rate_playpause.html on OSX. 2014-06-10 13:19:20 -04:00
Chris Pearce
5f9673dc9d Bug 979104 - MediaDecoderReader/StateMachine asynchronous decoding. r=kinetik 2014-06-10 19:31:09 +12:00
Ryan VanderMeulen
d04c40dc21 No bug - Tweak expected assertions in test_playback_rate_playpause.html. 2014-06-08 13:11:25 -04:00
Ryan VanderMeulen
4be7ee2819 No bug - Re-disable test_mixed_principals.html on all platforms. 2014-06-07 23:34:54 -04:00
Ryan VanderMeulen
2fe5af89bd Bug 567954 - Re-disable test_mixed_principals.html on B2G. a=me 2014-06-07 14:13:34 -04:00
Ryan VanderMeulen
e1fa778375 No bug - Re-enable some media mochitests that no longer fail and disable a couple that fail frequently. 2014-06-07 00:54:02 -04:00
Wes Kocher
b0a1662491 Merge b2g-inbound to m-c a=merge 2014-06-05 18:49:36 -07:00
Dave Hylands
9d2245ec6f Bug 986331 - Enable .3g2 file extension to be recognized as 3gpp video. r=cajbir 2014-06-05 14:22:15 -07:00
Ryan VanderMeulen
1b869dd1bc No bug - Clean up media mochitest manifests.
This doesn't change the enabled/disabled state of any tests. It should be a no-op since the harness runs tests alphabetically anyway regardless of their order in the manifest.
2014-06-05 12:41:53 -04:00
Ryan VanderMeulen
4be6b75af6 Bug 1020538 - Re-enable test_playback_rate.html on Linux, OSX, and Android. r=cpearce 2014-06-05 12:41:52 -04:00
Karl Tomlinson
bae077011c b=994351 re-enable media-element-source-seek-1 on B2G
--HG--
extra : transplant_source : %8E%A7%8A%CA%27%A6%FF%AD%B1S%86%E3u%CAL%C7%F26%D0%11
2014-05-14 16:40:27 +12:00
Karl Tomlinson
42ef85fbfe b=994351 break playing/seeked cycle in test
The seek is also moved to after the timeout to make the assertion failure
more reliable (in broken builds).

--HG--
extra : transplant_source : %CB_q%E3%CF%D9%25%85U%D3%B2X%CA%82%01%0D%91%D9%3C%A5
2014-05-14 12:12:47 +12:00
Blake Wu
83564e5d45 Bug 986381 - Modify test case can_play_webm_type.js r=cpearce 2014-05-07 18:02:20 +08:00
Matthew Gregan
50baa14b08 Bug 1005366 - Tighten up handling of SourceBuffer decoder resets. r=cajbir
--HG--
rename : content/media/test/crashtests/926665.html => content/media/mediasource/test/crashtests/926665.html
2014-05-08 14:22:34 +12:00
Randy Lin
909cb6bf36 Bug 969372 - Move mediaRecorder in global scope to avoid test timeout. r=jsmith 2014-05-07 23:50:57 +08:00
Ryan VanderMeulen
87852bbe4b Bug 758476 and bug 981086 - Disable test_play_twice.html on Android for frequent failures. 2014-05-06 12:20:26 -04:00
Ryan VanderMeulen
d1ea7745a6 Bug 668973 - Disable test_playback.html on Android due to intermittent failures. 2014-05-06 12:20:26 -04:00
Ryan VanderMeulen
d14a06d8be Bug 982100 - Disable test_play_twice.html on B2G emulator builds due to intermittent failures. 2014-05-05 10:26:53 -04:00
JW Wang
759f973d2d Bug 995090 - test if cloned media element should be able to play till the end even after the src attribute of the original is changed. r=cpearce 2014-04-29 18:59:00 +02:00
JW Wang
ed8bcc1248 Bug 916399 - autoplay fails to activate due to Bug 1001317, call play() instead, r=cpearce 2014-04-28 00:59:00 -07:00
JW Wang
6af09e55b3 Bug 843265 - Remove the check for 'canplaythrough' since the purpose of this test is test the 3 ways to register an event handler. r=kinetik 2014-04-24 23:49:00 -04:00
JW Wang
47401db519 Bug 969392 - remove the check for 'canplaythrough' in 'ended' event handler r=kinetik 2014-04-26 00:46:32 -04:00
JW Wang
b4adac8b06 Bug 981153 - Fix and re-enable test_seek.html. r=cpearce
* Enable test on Windows.
* Longer timeout for it could take over 10 mins on B2G.
* Release decoder to avoid timeout on waiting for decoding resource.
2014-04-24 20:45:00 -04:00
Robert O'Callahan
a4997e4704 Bug 998282. Ensure cancellable_request.sjs massively overfills the default 100K media cache size.
This ensures a test can make such a request, receive the event that the
load has been suspended, and cancel the request, all before the load has
completed.

--HG--
extra : rebase_source : c7ea934a1745004872d8529bb99241e2e376759c
2014-03-11 17:30:27 +08:00
Paul Adenot
f661a2d2b1 Bug 818822: disable media-element-source-seek-1 for B2G due to bug 994351 r=drno 2014-04-09 16:31:41 +02:00
Michael Pruett
a1e74e7208 Bug 847827 - Update libsoundtouch to allow changing playback rate with multichannel audio. r=padenot
--HG--
extra : rebase_source : ebf10737b048ae3280b9a7706f701337211b2880
2014-04-10 10:37:07 +02:00
Chris Pearce
2cd12e2cdd Bug 986947 - Make MP3 contained in MP4 playback again on Windows with WMF backend. r=padenot
Report that we can play MP3 inside MP4 on Windows Vista and later in
HTMLMediaElement.canPlayType. Chrome and IE on Windows match this behaviour.

Add a test file with MP3 contained inside MP4. Note the B2G emulator can't play
this file, so I added a codecs parameter to the file's mime type so that
decoder backends have to opt-in to testing with it.

Enable playback of MP3 inside MP4 in WMFReader.

Change from reporting the IMFSourceReader's duration inside WMFReader, to
instead report the IMFSourceReader's duration as the media "end time". This is
needed because the MP3-contained-in-MP4 file's first sample output by the
IMFSourceReader has a non-zero timestamp, and the MediaDecoderStateMachine
assumes that the media samples will be in the range
[$firstSampleStartTime, $firstSampleStartTime+$reportedDuration]. But that's
not the case here, the IMFSourceReader seems to output samples in the range
[0,$reportedDuration]. This assumption mismatch means on the
MP3-contained-in-MP4 file we end up trying to seek after what the
IMFSourceReader assumes is the end of the file, which fails and causes
test failures.
2014-04-04 10:39:42 +13:00
Chris Pearce
de9186fb13 Bug 991448 - Skip Theora decode to next keyframe after seek, so that we don't get visual artifacts after a fastSeek. r=cajbir 2014-04-04 10:39:15 +13:00
Rick Eyre
41a90c6dc2 Bug 879431 - Set VTTCue's TextTrack from TextTrack::AddCue r=rillian
We were having an issue where the cue's track property was undefined
because it was never set when adding the cue to a text track's list
of cues.
2014-04-02 18:16:00 +02:00
Matthew Gregan
ced956736c Bug 927245 - Remove deprecated Audio Data API implementation. r=cajbir,smaug 2014-04-03 10:53:39 +13:00
Rick Eyre
abed62d562 Bug 882677 - Part 5: Add track element tests. r=cpearce 2014-03-17 15:11:41 -04:00
Ryan VanderMeulen
52484dbcb0 Merge inbound to m-c. 2014-04-01 16:45:00 -04:00
JW Wang
3729e45eb8 Bug 980868 - Don't skip video frame when |clock time| is less than |mVideoFrameEndTime| for we are still in the safe range without underruning video frames. r=cpearce 2014-04-01 08:58:55 -04:00
Rick Eyre
e2c769ed44 Bug 903030 - Add tests for TextTrackCue validation code. r=cpearce 2014-03-31 12:48:00 +02:00
Chris Pearce
a8e52798ff Bug 778077 - Implement HTMLMediaElement.fastSeek(time). r=cajbir
Implement HTMLMediaElement.fastSeek(), basically by changing all the
MediaDecoderReader::Seek() overrides to not call
MediaDecoderReader::DecodeToTarget(), and have MediaDecoderReader::DecodeSeek()
call DecodeToTarget() if we're doing an accurate (non-fast) seek.

Update gizmo.mp4 to have a keyframe every second, instead of only 1 keyframe at
the start of stream. This makes the unit test I added more useful for mp4...

I pushed most of the seek target clamping logic in MediaDecoder up into
HTMLMediaElement, so that we're clamping in fewer places. Note
MediaDecoderStateMachine::Seek() still sanity checks the seek target.

We have to update the currentTime/MediaDecoder playback position after a seek
completes now, rather than assuming the seek always got it exactly right.

Removed those pesky assertions about seek target lying in the first frame after
seek, since actually sometimes the media doesn't have samples for all streams
after a seek (either due to the media being encoded like that, or because of a
bug in the platform's decoder, not entirely sure).

Green: https://tbpl.mozilla.org/?tree=Try&rev=b028258565e2
* * *
Bug 778077 - Fix up MediaOMXReader fastseek to ensure audio stream stays in sync with video stream. r=cajbir
2014-04-01 16:39:04 +13:00
Karl Tomlinson
4280e20d4d crashtest for bug 986901
Derived from testcase by Jesse Ruderman <jruderman@gmail.com>

--HG--
extra : transplant_source : %AE%CEf%29%F9%C4%25%82%B5%17%24%3C%0ErA%90.%7C%09%0C
2014-03-31 18:32:33 +13:00
Karl Tomlinson
9f9c4e885f b=983066 pad out resampler input past track end only to the end of the block r=padenot
The extra null samples were mostly harmless, and may have even helped avoid
bug 983062 sometimes, but caused the "Samples missing" assertion to fail.

--HG--
extra : transplant_source : M%D6%B4ra2%AE%DA%EC%82%E1%D8_%83%9F%FBw%F2%ECh
2014-03-31 18:32:32 +13:00
Ed Morley
9d7a5cff30 Backed out changeset 00fa39c23b44 (bug 778077) for reftest failures 2014-03-28 12:31:29 +00:00
Chris Pearce
c9cd61eb5d Bug 778077 - Implement HTMLMediaElement.fastSeek(time). r=cajbir
Implement HTMLMediaElement.fastSeek(), basically by changing all the
MediaDecoderReader::Seek() overrides to not call
MediaDecoderReader::DecodeToTarget(), and have MediaDecoderReader::DecodeSeek()
call DecodeToTarget() if we're doing an accurate (non-fast) seek.

Update gizmo.mp4 to have a keyframe every second, instead of only 1 keyframe at
the start of stream. This makes the unit test I added more useful for mp4...

I pushed most of the seek target clamping logic in MediaDecoder up into
HTMLMediaElement, so that we're clamping in fewer places. Note
MediaDecoderStateMachine::Seek() still sanity checks the seek target.

We have to update the currentTime/MediaDecoder playback position after a seek
completes now, rather than assuming the seek always got it exactly right.

Removed those pesky assertions about seek target lying in the first frame after
seek, since actually sometimes the media doesn't have samples for all streams
after a seek (either due to the media being encoded like that, or because of a
bug in the platform's decoder, not entirely sure).

Green: https://tbpl.mozilla.org/?tree=Try&rev=b028258565e2
2014-03-28 22:36:10 +13:00