JW Wang
7e6ed72d21
Bug 1307699. Part 5 - move mSeekTask into SeekingState. r=kaku
...
MozReview-Commit-ID: AdVCoOPDG4F
2016-10-05 14:59:24 +08:00
JW Wang
ce6cdd2d01
Bug 1307699. Part 4 - move DiscardSeekTaskIfExist() into the exit action of SeekingState. r=kaku
...
MozReview-Commit-ID: 9FDgZLHg8Wj
2016-10-05 14:47:13 +08:00
JW Wang
f6f6be8bf7
Bug 1307699. Part 3 - move SeekCompleted() into SeekingState. r=kaku
...
MozReview-Commit-ID: BNeIC69LEtu
2016-10-05 14:39:26 +08:00
JW Wang
ca2cabff7d
Bug 1307699. Part 2 - move mSeekTaskRequest into SeekingState. r=kaku
...
MozReview-Commit-ID: 8FrGqEDgclk
2016-10-05 14:28:26 +08:00
JW Wang
cc64a48837
Bug 1307699. Part 1 - move OnSeekTaskResolved/OnSeekTaskRejected into SeekingState. r=kaku
...
MozReview-Commit-ID: 7n9MSGxduZK
2016-10-05 14:22:54 +08:00
JW Wang
cdf4cf1461
Bug 1307356 - Move MDSM::DecodeFirstFrame() into DecodingFirstFrameState. r=kikuo
...
MozReview-Commit-ID: 9zL76KjBhF7
2016-10-04 15:03:30 +08:00
JW Wang
464d46fff8
Bug 1307677. Part 6 - don't access mMaster after InitiateSeek() which will delete the current state object. r=kaku
...
MozReview-Commit-ID: HABL22OiLnJ
2016-10-04 17:29:10 +08:00
JW Wang
7912a7a4dc
Bug 1307677. Part 5 - move most code of InitiateSeek() into the entry action of SeekingState. r=kaku
...
MozReview-Commit-ID: 5vHjMoURAXc
2016-10-04 17:18:49 +08:00
JW Wang
4dbe230b02
Bug 1307677. Part 4 - prepare to move most code of InitiateSeek() into the entry action of SeekingState. r=kaku
...
Note we can't call SetState() because we might need to seek again in the SEEKING state.
MozReview-Commit-ID: 7KYhV5SLbXF
2016-10-04 17:05:39 +08:00
JW Wang
3201782d8e
Bug 1307677. Part 3 - move |mCurrentSeek.mPromise.Ensure| out of InitiateSeek(). This makes it easier to move more code into SeekingState. r=kaku
...
MozReview-Commit-ID: Id4PprPtJdX
2016-10-04 16:55:59 +08:00
JW Wang
1743c91abf
Bug 1307677. Part 2 - add some assertion to DecodingFirstFrameState::HandleSeek(). r=kaku
...
MozReview-Commit-ID: 2RbAHFocwGy
2016-10-04 16:36:42 +08:00
JW Wang
9770a7c600
Bug 1307677. Part 1 - move some code from Seek() to various state objects. r=kaku
...
MozReview-Commit-ID: Gf51NiU9pZ
2016-10-04 16:33:40 +08:00
Kaku Kuo
f54b30d4e6
Bug 1306945 - remove the check of mPlayState in the MDSM::VisibilityChanged(); r=jwwang,kamidphish
...
MozReview-Commit-ID: JBJJ7dPt64i
2016-10-04 16:10:13 +08:00
JW Wang
02ab5b2346
Bug 1307063. Move MDSM::MaybeFinishDecodeFirstFrame() into DecodingFirstFrameState. r=kikuo
...
MozReview-Commit-ID: LVLjImUQf26
2016-10-03 17:18:38 +08:00
JW Wang
2014ede76e
Bug 1307022. Part 5 - move some code from OnNotDecoded() to various state objects. r=kaku
...
MozReview-Commit-ID: 1VFK80k6dg2
2016-09-30 17:27:31 +08:00
JW Wang
49306152cc
Bug 1307022. Part 4 - move some code from OnVideoDecoded() to various state objects. r=kaku
...
MozReview-Commit-ID: 1Et6W4b78fG
2016-09-30 16:53:33 +08:00
JW Wang
0a31dbf9c5
Bug 1307022. Part 3 - Use raw pointers to avoid unnecessary ref-counting. r=kaku
...
MozReview-Commit-ID: 4PsJjpvWAZW
2016-09-30 16:51:12 +08:00
JW Wang
ecc51d011e
Bug 1307022. Part 2 - move some code from OnAudioDecoded() to various state objects. r=kaku
...
MozReview-Commit-ID: OgboEaJBdj
2016-09-30 16:45:48 +08:00
JW Wang
860fc6fc84
Bug 1307022. Part 1 - Use raw pointers to avoid unnecessary ref-counting. r=kaku
...
MozReview-Commit-ID: 5qLfiTv5o95
2016-09-30 16:34:54 +08:00
JW Wang
71ec5ba58a
Bug 1306186. Part 6 - check if we can stop prerolling in the entry action of DecodingState. r=kikuo
...
Chances are we've decoded enough data when entering DecodingState. Otherwis we will never
start playback.
MozReview-Commit-ID: AMdd4xxQt6c
2016-10-03 18:02:57 +08:00
JW Wang
f8def49b6b
Bug 1306186. Part 5 - add MaybeStopPrerolling() to check if we can stop prerolling. r=kikuo
...
MozReview-Commit-ID: 15Y5e4DUr4S
2016-10-03 14:04:27 +08:00
JW Wang
ef4773f42e
Bug 1306186. Part 4 - merge mIsAudioPrerolling and mIsVideoPrerolling into mIsPrerolling. r=kikuo
...
MozReview-Commit-ID: BFIlaqBwEFZ
2016-09-29 16:10:02 +08:00
JW Wang
5f28f4ab7c
Bug 1306186. Part 3 - remove StopPrerolling{Audio,Video}. r=kikuo
...
Note we remove the calls from OnSeekTask{Resolved,Rejected} because DecodingState will decide whether to reset those flags.
MozReview-Commit-ID: GjWvbxTqXMP
2016-09-29 11:55:34 +08:00
JW Wang
492bf717c7
Bug 1306186. Part 2 - reset prerolling flags in MaybeStartPlayback(). r=kikuo
...
MozReview-Commit-ID: 8cVfjRAsPk2
2016-09-29 11:34:54 +08:00
JW Wang
99c607a745
Bug 1306186. Part 1 - remove checks for mIsAudioPrerolling and mIsVideoPrerolling from NeedToSkipToNextKeyframe(). r=kikuo
...
When we reach |isLowOnDecodedAudio = ...|, mMediaSink->IsStarted() must be true which means prerolling is done
and both mIsAudioPrerolling and mIsVideoPrerolling are false.
MozReview-Commit-ID: Bt1dMw692jI
2016-09-29 11:22:36 +08:00
Sebastian Hengst
486301d882
Backed out changeset f0eef1e1acc4 (bug 1306186) for timeouts in mda test /test_background_video_suspend.html on Linux and OS X. r=backout on a CLOSED TREE
2016-10-03 12:54:56 +02:00
Sebastian Hengst
0cd71dfdc3
Backed out changeset e70e297b2942 (bug 1306186)
2016-10-03 12:53:59 +02:00
Sebastian Hengst
1ee9cbeeea
Backed out changeset ea57d7034a0d (bug 1306186)
2016-10-03 12:53:55 +02:00
Sebastian Hengst
d1bd7bd148
Backed out changeset 1510da178dbd (bug 1306186)
2016-10-03 12:53:51 +02:00
Sebastian Hengst
d620adeaf8
Backed out changeset 2b6868859c21 (bug 1306186)
2016-10-03 12:53:47 +02:00
JW Wang
269906472a
Bug 1306186. Part 5 - add MaybeStopPrerolling() to check if we can stop prerolling. r=kikuo
...
MozReview-Commit-ID: 15Y5e4DUr4S
2016-10-03 14:04:27 +08:00
JW Wang
26bb26cfbc
Bug 1306186. Part 4 - merge mIsAudioPrerolling and mIsVideoPrerolling into mIsPrerolling. r=kikuo
...
MozReview-Commit-ID: BFIlaqBwEFZ
2016-09-29 16:10:02 +08:00
JW Wang
8b48c6d102
Bug 1306186. Part 3 - remove StopPrerolling{Audio,Video}. r=kikuo
...
Note we remove the calls from OnSeekTask{Resolved,Rejected} because DecodingState will decide whether to reset those flags.
MozReview-Commit-ID: GjWvbxTqXMP
2016-09-29 11:55:34 +08:00
JW Wang
9ae811f95f
Bug 1306186. Part 2 - reset prerolling flags in MaybeStartPlayback(). r=kikuo
...
MozReview-Commit-ID: 8cVfjRAsPk2
2016-09-29 11:34:54 +08:00
JW Wang
a1fefd2083
Bug 1306186. Part 1 - remove checks for mIsAudioPrerolling and mIsVideoPrerolling from NeedToSkipToNextKeyframe(). r=kikuo
...
When we reach |isLowOnDecodedAudio = ...|, mMediaSink->IsStarted() must be true which means prerolling is done
and both mIsAudioPrerolling and mIsVideoPrerolling are false.
MozReview-Commit-ID: Bt1dMw692jI
2016-09-29 11:22:36 +08:00
JW Wang
70c080a97b
Bug 1305353. Part 3 - discard audio samples in DecodedStream::NotifyOutput(). r=pehrsons
...
MozReview-Commit-ID: 7o6cdP126ip
2016-09-26 15:25:11 +08:00
Jean-Yves Avenard
628ecaac4b
Bug 1305672: Prevent assertion. r=jwwang
...
Assertion would occur if the duration of decoded samples queued was greater than buffering threshold
MozReview-Commit-ID: CcheIhcmL5S
2016-09-29 00:43:49 +10:00
James Cheng
42e8029df1
Bug 1300654 Part1-Remove MOZ_EME from code base. r=cpearce,smaug
...
MozReview-Commit-ID: JboGO0w4tcE
2016-09-08 18:06:20 +08:00
Gerald Squelart
f437f6d9f7
Bug 1247056 - Notify MediaDecoder about Decoder Doctor events from MDSM - r=jwwang
...
MozReview-Commit-ID: Jgt5a2yJugu
2016-09-19 03:38:06 -07:00
JW Wang
1580d0a2ba
Bug 1304336. Part 2 - remove unused canonical/mirror. r=kikuo
...
MozReview-Commit-ID: 9rQcTTrW4Cn
2016-09-21 18:11:00 +08:00
JW Wang
dc500143a1
Bug 1304336. Part 1 - call DispatchSetPlaybackRate() to propagate playback rate changes instead of using a mirror. r=kikuo
...
MozReview-Commit-ID: 5C48bUItQus
2016-09-21 18:06:49 +08:00
JW Wang
406b9f8385
Bug 1304314. Part 3 - take mPlaybackRate into account. r=kikuo
...
MozReview-Commit-ID: 9AQSUJl82fA
2016-09-21 16:30:45 +08:00
JW Wang
3e55565558
Bug 1304314. Part 2 - split the code of HasLowDecodedData() into separate functions which will be reusable. r=kikuo
...
MozReview-Commit-ID: KwNOx1uTdjK
2016-09-21 16:27:40 +08:00
JW Wang
570e982a68
Bug 1304314. Part 1 - remove the parameter of HasLowDecodedData() for we always pass EXHAUSTED_DATA_MARGIN_USECS to it. r=kikuo
...
MozReview-Commit-ID: KMzy6S4hCB9
2016-09-21 16:20:38 +08:00
JW Wang
59cc4d6466
Bug 1303666 - Move the code of StepDecoding() into Decodingstate::Step(). r=kikuo
...
MozReview-Commit-ID: FW7BVyrRA7s
2016-09-06 17:36:53 +08:00
JW Wang
21f81aeb87
Bug 1303665. Part 2 - Move mSentPlaybackEndedEvent into CompletedState. r=kikuo
...
MozReview-Commit-ID: 3JJ25POozsk
2016-09-06 17:33:12 +08:00
JW Wang
ea394283bc
Bug 1303665. Part 1 - Move StepCompleted() into CompletedState::Step(). r=kikuo
...
MozReview-Commit-ID: Gm2osCqwPMS
2016-09-06 17:28:08 +08:00
JW Wang
c8da3495b9
Bug 1303660. Part 3 - Move mBufferingStart into BufferingState. r=kikuo
...
MozReview-Commit-ID: IpTrMl1mWfb
2016-09-06 17:22:29 +08:00
JW Wang
9131678e7e
Bug 1303660. Part 2 - Move the code of StepBuffering() into BufferingState::Step(). r=kikuo
...
MozReview-Commit-ID: 1uGOXV996X
2016-09-06 17:15:51 +08:00
JW Wang
f4c8ce9d89
Bug 1303660. Part 1 - Move some code to BufferingState::Enter() and remove unused functions. r=kikuo
...
MozReview-Commit-ID: G6PrACxfiF5
2016-09-06 17:05:48 +08:00