Commit Graph
479 Commits
Author SHA1 Message Date
JW Wang 870ab859c9 Bug 1209864. Part 1 - make all methods run on the main thread and remove usage of the decoder monitor. r=roc. 2015-09-27 21:37:48 +08:00
JW Wang c4ae729fcf Bug 1208933 - Remove AbstractMediaDecoder::NotifyWaitingForResourcesStatusChanged(). r=jya. 2015-09-27 21:02:18 +08:00
JW Wang 41d590b03d Bug 1208932 - Remove ReadMetadataFailureReason::WAITING_FOR_RESOURCES. r=jya. 2015-09-27 20:48:09 +08:00
JW Wang c70cfb59fb Bug 1208922. Part 3 - forward the CDMProxy from MediaDecoder to MediaDecoderReader via MDSM. r=cpearce. 2015-09-27 18:48:59 +08:00
JW Wang 956174bf1b Bug 1188643. Buffer more audio in audio capture mode to avoid glitches. r=cpearce. 2015-09-30 10:32:49 +08:00
Nigel Babu 3bfb9f3efe Backed out changeset dcbabf6ce153 (bug 1188643) for linux crashtest bustage 2015-09-24 12:31:20 +05:30
Jean-Yves Avenard 885f59e253 Bug 1159343: Interrupt seek early when possible. r=jwwang 2015-09-24 16:46:14 +10:00
Jean-Yves Avenard c3ac8c62f6 Bug 1207478: P4: Make it impossible for the MDSM frame calculation to overflow. r=jwwang
This should make P3 unnecessary as far as the MDSM is concerned.
2015-09-24 16:42:53 +10:00
JW Wang 6c11227c09 Bug 1188643. Buffer more audio in audio capture mode to avoid glitches. r=cpearce. 2015-09-24 14:20:38 +08:00
JW Wang 103983020c Bug 1206607 - Remove some dead code from MDSM. r=kinetik. 2015-09-22 13:55:55 +08:00
JW Wang 5e18f53546 Bug 1206576 - Dispatch some MDSM functions to hide its internal thread model. r=jya. 2015-09-21 14:01:45 +08:00
JW Wang d05c452aaf Bug 1204430. Part 2 - mirror MediaDecoder::mMediaSeekable. r=kinetik. 2015-09-21 13:49:01 +08:00
JW Wang d0109b84dd Bug 1204430. Part 1 - dispatch AbstractMediaDecoder::SetMediaSeekable() to the main thread. r=kinetik. 2015-09-21 13:48:39 +08:00
Kilik Kuo 5f15c0212c Bug 1204882 - Move MediaDecoder::FrameStatistics out of MediaDecoder for easier use in other classes. r=jwwang 2015-09-15 22:57:20 +08:00
JW Wang 07e9255c83 Bug 1204413 - Make MediaDecoder::IsTransportSeekable run on the main thread. r=kinetik. 2015-09-16 10:44:35 +08:00
JW Wang 588d887390 Bug 1172830 - Move buffering check out of MediaDecoderStateMachine::UpdateRenderedVideoFrames(). r=cpearce. 2015-09-15 17:47:26 +08:00
JW Wang 808fe6faf0 Bug 1204401 - Change the buffering criteria in MDSM::UpdateRenderedVideoFrames. r=jya. 2015-09-15 17:46:25 +08:00
JW Wang 6a06b18d3b Bug 1203877 - Remove MediaDecoder::UpdatePlaybackOffset. r=kinetik. 2015-09-15 13:51:12 +08:00
JW Wang 90798ab180 Bug 1203418. Part 3 - ensure MDSM::mPlaybackOffset and MediaDecoder::mPlaybackPosition are mono-increasing to avoid "jitter" in calculating playback statistics. r=cpearce. 2015-09-15 10:05:19 +08:00
JW Wang 0f35178ea2 Bug 1203418. Part 2 - duplicate the implementation of MediaDecoder::GetStatistics so MDSM can call it on its own thread. r=cpearce. 2015-09-15 10:04:50 +08:00
James Cheng 8a00cdead2 Bug 1203047 - Make MediaDecoderReader know less about AudioData/VideoData by using MediaData instead. r=jya 2015-09-10 03:06:00 +02:00
JW Wang 1aa1009804 Bug 1203374. Part 2 - duplicate the implementation of MediaDecoder::CanPlayThrough so MDSM can call its own CanPlayThrough() on its own thread. r=jya. 2015-09-10 16:40:52 +08:00
JW Wang a898a26bcf Bug 1203374. Part 1 - extract the code of computing canplaythrough so it is reusable. r=jya.
1. extract MediaDecoder::Statistics to its own file.
2. sort out include orders of MediaDecoderStateMachine.cpp
2015-09-10 16:37:26 +08:00
JW Wang 51231a4ae6 Bug 1202540 - Remove MDSM::mPlayStartTime. r=kinetik. 2015-09-10 11:31:30 +08:00
JW Wang 8ea5f6dfd7 Bug 1202351 - Remove MDSM::mPlayDuration. r=cpearce. 2015-09-10 10:19:42 +08:00
JW Wang b967b4e654 Bug 1199562. Part 3 - remove unused code. r=roc. 2015-09-09 10:12:46 +08:00
JW Wang dd1c84f8b5 Bug 1199562. Part 2 - replace usage of mStreamSink with mMediaSink in most cases. r=roc. 2015-09-09 10:12:35 +08:00
JW Wang d62cc56267 Bug 1199562. Part 1 - rename mAudioSink to mMediaSink as well as related member names. r=roc. 2015-09-09 10:12:23 +08:00
JW Wang 9737c4754a Bug 1199155. Part 3 - rename mDecodedStream to mStreamSink. r=roc. 2015-09-07 19:32:16 +08:00
JW Wang 271a5d08ac Bug 1199155. Part 2 - fix includes and forward declarations. r=roc. 2015-09-07 19:32:04 +08:00
JW Wang ae961d59c0 Bug 1199121. Part 3 - remove unused code. r=kinetik. 2015-09-07 11:58:27 +08:00
JW Wang 58ce3b25db Bug 1199121. Part 1 - add the ability to handle video-only streams to AudioSinkWrapper. r=kinetik.
Note AudioSinkWrapper can now report correct playback position when the media is video-only or audio-only.
We will handle the case where audio ends before video in next patch where it needs to switch to system clock when audio reaches the end.
2015-09-07 11:56:52 +08:00
JW Wang 962f6d6091 Bug 1195158. Part 4 - remove unused code. r=cpearce. 2015-09-07 11:39:16 +08:00
JW Wang 2670279d9e Bug 1195158. Part 3 - connect listeners. r=cpearce.
a. MediaMetadataManager is connected to MediaDecoderReader::mTimedMetadataEvent to receive TimedMetadata events.
b. OggReader publish TimedMetadata events through MediaDecoderReader::mTimedMetadataEvent.
c. MDSM calls MediaMetadataManager::DispatchMetadataIfNeeded to publish metadata if playback positoin reaches the publish time.
d. MediaDecoder is connected to MediaMetadataManager::mTimedMetadataEvent to receive TimedMetadata events.
e. MediaDecoder updates its metadata when TimedMetadata events are received.
2015-09-07 11:38:34 +08:00
Matt Woodrow 82f4f1043e Bug 1198202 - Increase hardware video decoding fallback threshold. r=ajones 2015-09-03 20:37:31 -04:00
Robert O'Callahan 5dac744309 Bug 1200099. Ensure mSameOriginMedia is propagated to DecodedStream even if we don't get a watch notification. r=jwwang 2015-08-31 14:50:54 +12:00
JW Wang 297fea5607 Bug 1199104. Part 3 - use AudioSinkWrapper in MDSM. r=kinetik. 2015-09-02 14:14:40 +08:00
Kilik Kuo be14d820ad Bug 1188268 - Correct the logic against |MaybeStartPlayback()| due to rebase mistake. r=jwwang 2015-08-27 14:20:18 +08:00
Jean-Yves Avenard af9c15569d Bug 1197075: P2. Revert "Bug 1171257 - Add force decode ahead to MediaFormatReader r=jya,bholley". r=edwin 2015-08-26 15:36:53 +10:00
Jean-Yves Avenard ad43515d9e Bug 1197075: P1. Revert "Bug 1197051 - Don't try to decode ahead while seeking - r=jya". r=edwin 2015-08-26 15:36:53 +10:00
JW Wang 989fdbcd72 Bug 1195632. Part 2 - Have DecodedStream listen to push events of the media queues and call SendData() on its own without the help of MDSM. r=roc. 2015-08-24 10:04:21 +08:00
JW Wang d61e733522 Bug 1195632. Part 1 - Let DecodedStream have a worker thread and asset some funtions on the worker thread. r=roc. 2015-08-24 09:55:30 +08:00
Edwin Flores 3ff8a01b4c Bug 1197051 - Don't try to decode ahead while seeking - r=jya 2015-08-21 17:25:46 +10:00
Matt Woodrow 01f2047f3c Bug 1196417 - Make video software fallback only affect the current video instead of the entire browser. r=cpearce 2015-08-20 11:43:36 -04:00
Matt Woodrow e73dcce5b0 Bug 1196408 - Make sure we only report a corrupt/slow video frame once. r=cpearce 2015-08-20 11:39:49 -04:00
JW Wang aae0a837f6 Bug 1195185. Part 3 - align the life cycle of mData with {Start,Stop}Playback. r=roc. 2015-08-20 13:02:43 +08:00
JW Wang f5ac5afb05 Bug 1195185. Part 1 - rename Connect/Remove to AddOutput/RemoveOutput. r=roc. 2015-08-20 13:02:20 +08:00
Kilik Kuo 8868a40bc6 Bug 1188268 - Make AudioSink a base class, create DecodedAudioDataSink to act as original AudioSink, and move sink-related files to dom/media/mediasink. r=jwwang, r=cpearce 2015-08-18 11:55:01 +08:00
Sebastian Hengst 7267dc9a9d Backed out changesets 7610baf4a3ae, 6226b99f19bd, 157e41e32906, 60a3b1862f71 (bug 1195158). r=backout
Backed out changeset 7610baf4a3ae (bug 1195158)
Backed out changeset 6226b99f19bd (bug 1195158)
Backed out changeset 157e41e32906 (bug 1195158)
Backed out changeset 60a3b1862f71 (bug 1195158)
2015-08-18 10:52:09 +02:00
JW Wang c8f0910e1a Bug 1195158. Part 4 - remove unused code. r=cpearce. 2015-08-18 11:12:39 +08:00