JW Wang
60e0d3fc6c
Bug 1182737. Part 3 - make start/stop playback of DecodedStream more consistent with that of AudioSink.
2015-07-11 16:41:39 +08:00
JW Wang
92124fd97d
Bug 1182737. Part 2 - remove unnecessary code.
2015-07-05 08:24:09 +08:00
JW Wang
6a86c1d5b6
Bug 1182737. Part 1 - have DecodedStream keep reference to media queues of MDSM so we don't have to pass them everytime.
2015-07-04 09:30:15 +08:00
Matt Woodrow
bb6e633231
Bug 1182649 - Log a message when disabling DXVA due to too many invalid frames. r=jrmuizel
2015-07-10 16:49:31 -04:00
JW Wang
7fe8e5be46
Bug 1181504. Part 2 - remove MediaDecoderStateMachine::mAudioStartTime. r=kinetik.
2015-07-09 11:07:57 +08:00
JW Wang
9d31039292
Bug 1181504. Part 1 - add assertions to MediaDecoderStateMachine::GetAudioClock(). r=kinetik.
2015-07-09 11:07:27 +08:00
Robert O'Callahan
8f404b78e8
Bug 1143575. Push all available frames to the compositor. r=cpearce
2015-06-15 15:24:57 +12:00
Robert O'Callahan
b52680c1a7
Bug 1143575. Refactor UpdateRenderedVideoFrames to support pushing multiple frames from the VideoQueue to the ImageContainer. r=cpearce
2015-07-03 19:33:56 +12:00
Robert O'Callahan
427694a261
Bug 1143575. Keep currently-rendered frame at the front of the video queue. r=cpearce
...
This makes normal playback consistent with the buffering state, which already
does this. We'll also need this when we handle multiple images, because then
we need to hande the entire queue of images to the ImageContainer without
pulling any of them off the queue.
2015-07-03 19:29:30 +12:00
Robert O'Callahan
bcc8b222b0
Bug 1143575. Rename clock_time to clockTime. r=cpearce
2015-03-30 16:00:57 +13:00
Robert O'Callahan
62c4b2f0c9
Bug 1143575. ScheduleStateMachine when the playback rate changes, so we can update the rendered frame queue. r=cpearce
2015-03-30 15:14:03 +13:00
Robert O'Callahan
94e27890d9
Bug 1143575. Make GetClock return a TimeStamp as well as the stream time. r=cpearce
...
This makes MediaDecoderStateMachine::GetVideoStreamPosition compute a
time that's more consistent with the audio clock.
2015-03-30 13:40:06 +13:00
Robert O'Callahan
12756ea002
Bug 1143575. Rename AdvanceFrame to UpdateRenderedVideoFrames. r=cpearce
2015-03-30 11:54:58 +13:00
Robert O'Callahan
8e51e47e73
Bug 1143575. Remove Theora-only duplicate frame optimization. r=cpearce
2015-03-28 10:53:37 +13:00
Robert O'Callahan
731383d0a7
Bug 1143575. test_HaveMetadataUnbufferedSeek should not wait for canplay since preload='metadata' elements may not fire canplay. r=cpearce
2015-06-10 15:56:27 +12:00
JW Wang
89c6cdb24d
Bug 1179665. Part 4 - remove MDSM::RecreateDecodedStream() which runs on the main thread and doesn't fit into the thread model of MDSM. r=roc.
2015-07-06 11:36:26 +08:00
JW Wang
8e2cd13b77
Bug 1179665. Part 3 - move code about sending stream data into DecodedStream. r=roc.
2015-07-06 11:36:15 +08:00
JW Wang
22cdaf33a9
Bug 1179665. Part 2 - clean up mStreamStartTime since start time of MDSM is now always 0. r=roc.
2015-07-06 11:34:59 +08:00
Sotaro Ikeda
2bdddf0892
Bug 1171257 - Add force decode ahead to MediaFormatReader r=jya,bholley
2015-07-05 09:39:30 -07:00
Bobby Holley
54482e86c6
Bug 1179499 - Dispatch NotifyPlayback{Started,Stopped}. r=jww
2015-07-02 19:26:24 -07:00
Bobby Holley
0b991399de
Bug 1178938 - Mirror shutdown-ness from the MDSM to the MD. r=jww
2015-07-02 12:38:44 -07:00
JW Wang
18308e0cdb
Bug 1178718. Part 1 - Remove dependency on decoder monitor from DecodedStream. r=roc.
2015-07-02 12:10:10 +08:00
JW Wang
c416b75afd
Bug 1068970 - Ensure MediaDecoderStateMachine::SendStreamAudio() uses UsecsToFrames correctly. r=roc
2015-07-02 10:37:34 +08:00
JW Wang
e6a6faf44d
Bug 1179116. Part 3 - remove unused code. r=cpearce.
2015-07-02 10:34:30 +08:00
JW Wang
2df08f670c
Bug 1179116. Part 2 - clean up code of MediaDecoderStateMachine::FinishDecodeFirstFrame(). r=cpearce.
2015-07-02 10:34:17 +08:00
JW Wang
b19d31db60
Bug 1179116. Part 1 - clean up code of MediaDecoderStateMachine::MaybeStartPlayback(). r=cpearce.
2015-07-02 10:34:05 +08:00
Bobby Holley
ab1b700c10
Bug 1178437 - Do the dormant-enabled tracking on the main thread. r=jww,r=jya
...
This is purely a question of policy, so there's no reason it needs to live on
the off-main-thread decoding machinery.
2015-07-01 18:47:41 -07:00
Bobby Holley
90edc487ae
Bug 1178437 - Make mRealTime const and allow it to be accessed on any thread. r=jww
2015-07-01 18:46:59 -07:00
Bobby Holley
33d571ff48
Bug 1178437 - Dispatch SetFragmentEndTime. r=jww
2015-07-01 18:46:58 -07:00
Bobby Holley
faabb90319
Bug 1178437 - Assert OnTaskQueue for most of the remaining MDSM methods. r=jww
2015-07-01 18:46:57 -07:00
Bobby Holley
59274bb5f0
Bug 1175768 - Use mirroring for buffered ranges. r=jya
2015-06-27 01:19:13 -07:00
Bobby Holley
4a6cc1f244
Bug 1175768 - Dispatch NotifyDataArrived and remove the aBuffer argument. r=jya
...
It would be nice to remove the argument in a separate patch, but we can't
perform MediaResource reads on the main thread, so the SilentReadAt stuff
needs to happen at the same time as the off-main-thread stuff.
2015-06-27 01:19:10 -07:00
Bobby Holley
96d780c66f
Bug 1175768 - Make the logic in MDSM::NotifyDataArrived apply to mObservedDuration. r=jya
...
With this change, we don't need to condition this work on infinite streams.
2015-06-27 01:19:06 -07:00
JW Wang
9ff0a52360
Bug 1177466 - Clean up places calling MaybeStartPlayback() in MediaDecoderStateMachine. r=cpearce
2015-06-18 11:59:26 +08:00
Ryan VanderMeulen
1dc5e1d7d3
Backed out 8 changesets (bug 1175768) for frequent media test failures.
...
Backed out changeset a369cfb95b59 (bug 1175768)
Backed out changeset e02dd312d622 (bug 1175768)
Backed out changeset 6776ce74b9e5 (bug 1175768)
Backed out changeset 6aa5fa1d318e (bug 1175768)
Backed out changeset a8bd7a0d2aea (bug 1175768)
Backed out changeset 41ffc9a9ac48 (bug 1175768)
Backed out changeset 2d2cefa397dc (bug 1175768)
Backed out changeset 4e06368496d2 (bug 1175768)
CLOSED TREE
2015-06-23 16:20:15 -04:00
Bobby Holley
a036731555
Bug 1175768 - Use mirroring for buffered ranges. r=jya
2015-06-22 22:53:09 -07:00
Bobby Holley
6c31a5fe6f
Bug 1175768 - Dispatch NotifyDataArrived and remove the aBuffer argument. r=jya
...
It would be nice to remove the argument in a separate patch, but we can't
perform MediaResource reads on the main thread, so the SilentReadAt stuff
needs to happen at the same time as the off-main-thread stuff.
2015-06-22 22:53:07 -07:00
Bobby Holley
7cae07977c
Bug 1175768 - Make the logic in MDSM::NotifyDataArrived apply to mObservedDuration. r=jya
...
With this change, we don't need to condition this work on infinite streams.
2015-06-22 22:53:05 -07:00
JW Wang
e10480fa72
CLOSED TREE. Bug 1174077 - send silence instead of nothing to the decoded stream in CORS case. r=roc.
2015-06-18 10:19:51 +08:00
Bobby Holley
1e4025f378
Bug 1172264 - Watch mStateMachineDuration, and stop manually firing DurationChanged. r=jww
2015-06-17 09:49:11 -07:00
Bobby Holley
faa73bd24e
Bug 1172264 - Route mExplicitDuration directly from the mediasource code to MediaDecoder, and stop passing an argument to DurationChanged. r=pending=jww
2015-06-17 09:49:10 -07:00
Bobby Holley
aa848074cf
Bug 1172264 - Mirror duration from the MDSM to the MediaDecoderReader and remove MDSM::GetDuration. r=jww
2015-06-17 09:49:10 -07:00
Bobby Holley
fad926cc2d
Bug 1172264 - Mirror duration from the MDSM to the MediaDecoder. r=jww
2015-06-17 09:49:09 -07:00
Bobby Holley
e57002c2e8
Bug 1172264 - Track the MDSM's duration as a TimeUnit and eliminate the separate concept of 'end time'. r=jww
2015-06-17 09:49:08 -07:00
JW Wang
9859fcc812
Bug 1172826 - remove unnecessary checks for MediaDecoderStateMachine::mPlaybackRate. r=kinetik.
2015-06-17 10:31:05 +08:00
Bobby Holley
6d13c0e511
Bug 1163223 - Remove MediaDecoderStateMachine::mStartTime. r=jww CLOSED TREE
2015-06-16 15:08:45 -07:00
Bobby Holley
8bbccc4518
Bug 1163223 - Adjust incoming samples for start time. r=jww
2015-06-16 15:08:35 -07:00
Bobby Holley
e8c700d82c
Bug 1163223 - Be more explicit about when we notify metadata. r=jww
2015-06-16 15:08:34 -07:00
Bobby Holley
4a39f530ae
Bug 1163223 - Use AwaitStartTime to invoke MediaDecoderReader::SetStartTime. r=jww
2015-06-16 15:08:33 -07:00
Bobby Holley
69687cccdc
Bug 1163223 - Use AwaitStartTime to handle metadata end time. r=jww
2015-06-16 15:08:31 -07:00