Commit Graph

167 Commits

Author SHA1 Message Date
JW Wang
d21e0abb6e Bug 883731 - Progress update should be associated with network state transitions. Also centralize network state transition code. r=cpearce 2014-09-24 19:26:00 +12:00
JW Wang
3714d8b91e Bug 883731 - Remove unnecessary update of readyState and introduce NEXT_FRAME_UNAVAILABLE_SEEKING so that we return HAVE_METADATA while seeking. r=cpearce 2014-09-24 19:25:00 +12:00
JW Wang
7ba932d196 Bug 883731 - Remove ResourceLoaded notifications since they don't make much sense with a media cache. r=cpearce
Based on roc's patch in https://bugzilla.mozilla.org/page.cgi?id=splinter.html&bug=883731&attachment=767505.
2014-09-24 19:25:00 +12:00
Carsten "Tomcat" Book
9bfd94ee23 Backed out changeset 5db9f8fbcaf4 (bug 883731) for webplatform 3 test failures 2014-09-29 10:57:48 +02:00
Carsten "Tomcat" Book
c6b8533277 Backed out changeset ca140e7557d6 (bug 883731) 2014-09-29 10:57:28 +02:00
Carsten "Tomcat" Book
03709534a8 Backed out changeset 43a1f1f79302 (bug 883731) 2014-09-29 10:57:26 +02:00
JW Wang
49e2d85c76 Bug 883731 - Part3 - Progress update should be associated with network state transitions. Also centralize network state transition code. r=cpearce 2014-09-24 19:26:00 +02:00
JW Wang
aeae7c9915 Bug 883731 - Part2 - Remove unnecessary update of readyState and introduce NEXT_FRAME_UNAVAILABLE_SEEKING so that we return HAVE_METADATA while seeking. r=cpearce 2014-09-24 19:25:00 +02:00
JW Wang
76d3882dcc Bug 883731. Part1 - Remove ResourceLoaded notifications since they don't make much sense with a media cache. r=cpearce 2014-09-24 19:25:00 +02:00
Jean-Yves Avenard
67153fa569 Bug 1065397 - Allow playback rate to be reset to normal. r=cpearce 2014-09-16 16:18:04 +10:00
Matthew Gregan
3893f1c156 Bug 1062101 - Compute WebM frame duration from Δt of last frame. r=cajbir 2014-09-03 17:26:19 +12:00
JW Wang
e1edda90ea Bug 1057954 - MediaDecoder::PlaybackEnded() should do nothing in dormant state. r=kinetik. 2014-09-02 20:07:00 +02:00
Jean-Yves Avenard
65d00bd2fd Bug 1055843 - Do not pause when playbackRate = 0. Instead don't play anything. r=padenot 2014-09-01 14:52:39 +10:00
JW Wang
5db5af6491 Bug 1054829 - Add debugging logs to MediaDecoder. r=cpearce 2014-08-20 20:13:00 -04:00
Chris Pearce
f7c6083ca7 Bug 1049107 - Fix build with --disable-eme. r=kentuckyfriedtakahe 2014-08-08 14:44:04 +12:00
Paul Adenot
4494fd3afb Bug 1046814 - Propertly set the MediaDecoderStateMachine parameters after its initialization when using a MediaSourceDecoder. r=kinetik 2014-08-05 16:55:02 +02:00
Chris Pearce
482bbdf76e Bug 1044738 - Decrypt EME content in a PDM, send to a wrapped PDM for decoding. r=edwin 2014-07-30 18:53:34 +12:00
Vasanthakumar Pandurangan
6c4c034979 Bug 1042003 - Convert secs to usecs before passing to SeekTarget. r=roc 2014-07-22 03:54:32 -07:00
JW Wang
5c5222fed3 Bug 1038655 - don't update official playback position when paused. r=cpearce 2014-07-21 23:34:00 +02:00
Bruce Sun
95530384be Bug 904177 - Add media.omx.async.enabled preference. r=sotaro, r=cpearce 2014-07-16 15:40:05 +08:00
Edwin Flores
010a711daa Bug 1038467 - Rename MediaPlugin* classes r=cpearce 2014-07-17 13:32:56 +12:00
Randell Jesup
77ee2e1b15 Bug 1035819: patch 1 - Add notification of DirectListeners and generalize Notification of events r=roc 2014-07-14 01:47:56 -04:00
Shelly Lin
b61766ef85 Bug 744896 - Part 4: Enable track interfaces for media elements that are consuming media-resource. r=roc. 2014-07-04 11:55:06 +08:00
Shelly Lin
019e14767a Bug 744896 - Part 3: Pass MediaInfo to functions MetadataLoaded and QueueMetadata. r=roc. 2014-07-04 11:54:54 +08:00
Carsten "Tomcat" Book
4b81e2a57d Backed out changeset 7691b13459f4 (bug 744896) for B2G ICS Emulator Opt test failures on a CLOSED TREE 2014-07-03 11:51:41 +02:00
Carsten "Tomcat" Book
1e0d323338 Backed out changeset 645a7aeef102 (bug 744896) for B2G ICS Emulator Opt Test failures on a CLOSED TREE 2014-07-03 11:50:27 +02:00
Shelly Lin
81c2062aad Bug 744896 - Part 4: Enable track interfaces for media elements that are consuming media-resource. r=roc. 2014-07-03 14:04:24 +08:00
Shelly Lin
efde2cf300 Bug 744896 - Part 3: Pass MediaInfo to functions MetadataLoaded and QueueMetadata. r=roc. 2014-07-03 14:04:08 +08:00
Benoit Jacob
60fe48da28 Bug 1028588 - Fix dangerous public destructors in content/media/ - r=cpearce,smaug 2014-06-24 12:36:43 -04:00
Eric Phan
297a9b2844 Bug 1015985 - Set decoder seekable members outside of ReadMetadata by StateMachine. r=cpearce 2014-06-23 22:08:34 +12:00
Matthew Gregan
a52ce7775d Bug 1028146 - Remove dangerous public destructor of MediaChannelStatistics. r=cpearce 2014-06-22 16:43:00 +12:00
Nicholas Nethercote
aaf6fb2124 Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg.
--HG--
extra : rebase_source : 5eb756b17a97e751deb0f47e909fdb35533cb23b
2014-05-20 23:06:54 -07:00
Chris Pearce
05136cdace Bug 979104 - MediaDecoderReader/StateMachine asynchronous decoding. r=kinetik 2014-06-18 17:07:02 +12:00
Ehsan Akhgari
9511934161 Backed out changeset 0cdef46c65c1 (bug 979104) for causing bug 1024324 2014-06-13 16:20:37 -04:00
Karl Tomlinson
6d42cde63e b=1023697 change MediaDecoderStateMachine::mSyncPointInMediaStream from StreamTime to µs r=roc
This allows the conversion from StreamTime to be performed while a stream is
available.

--HG--
extra : transplant_source : %3A%AD%5C%1A%84%C3%1BC%8B%04%D5%5B%90%3Cv%BE%A6%D6%C0%9D
2014-06-12 16:44:56 +12:00
Chris Pearce
954b2d1caf Bug 979104 - MediaDecoderReader/StateMachine asynchronous decoding. r=kinetik 2014-06-10 19:31:09 +12:00
JW Wang
32896fdda1 Bug 1000813 - Do nothing in MediaDecoder::NotifyBytesConsumed() when |mShuttingDown| is true. r=cpearce 2014-05-11 19:20:00 -04:00
Birunthan Mohanathas
5f1fde8824 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Matthew Gregan
fcad7b4c85 Bug 881512 - Remove useless static_casts. r=cajbir 2014-04-22 23:58:00 +12:00
JW Wang
ad59de6573 Bug 998168 - add decoder pointer to the log message of MediaDecoderStateMachine/MediaDecoder for debugging. r=cpearce 2014-04-23 05:29:04 -04:00
Eric Rahm
314e9711f0 Bug 967817 - Finish memory reporters for Web Audio. r=roc, njn 2014-04-13 11:08:10 -07:00
Andrea Marchesini
4266c27429 Bug 987064 - Remove AudioChannelType. r=roc, r=mchen, r=bent 2014-04-10 18:39:20 +01:00
Carsten "Tomcat" Book
ae409227bd Backed out changeset ac06eacc2206 (bug 987064) for B2G ICS Emulator Debug Bustage on a CLOSED TREE 2014-04-10 13:18:18 +02:00
Andrea Marchesini
190cf6a2a2 Bug 987064 - Remove AudioChannelType, r=roc, r=mchen, r=bent 2014-04-10 11:49:23 +01:00
Matthew Gregan
69f11197c5 Bug 927245 - Remove deprecated Audio Data API implementation. r=cajbir,smaug 2014-04-03 10:53:39 +13:00
Randy Lin
3a40673d1b Bug 912627 - Remove spurious assertion. r=cpearce 2014-04-02 09:59:31 +08:00
Chris Pearce
fd48fdb8b5 Bug 631058 - Don't preroll as many media samples when loading preload="metadata" media. r=cajbir 2014-04-01 16:43:57 +13:00
Chris Pearce
b12df215bb 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
Fredrik Lanker
45e7b43682 Bug 989284 - Change the infinite flag when duration is updated. r=roc 2014-03-28 11:41:59 -04:00
Ed Morley
7a428f481b Backed out changeset 00fa39c23b44 (bug 778077) for reftest failures 2014-03-28 12:31:29 +00:00