JW Wang
c4da9a0100
Bug 1300714 - Don't force entering DECODING when playState becomes PLAYING. r=cpearce
...
For it doesn't guarantee a smooth playback with a little data buffered.
MozReview-Commit-ID: 5NNQ4Q8uz39
2016-09-06 16:40:30 +08:00
JW Wang
a28c347ac4
Bug 1303655. Part 3 - Move mDecodeStartTime into Decodingstate. r=kikuo
...
MozReview-Commit-ID: ELUr9AHaE2P
2016-09-06 16:59:02 +08:00
JW Wang
275bd605c4
Bug 1303655. Part 2 - Remove unused functions. r=kikuo
...
MozReview-Commit-ID: 3Y7gVZXledn
2016-09-06 16:54:14 +08:00
JW Wang
1cd9c6d6a9
Bug 1303655. Part 1 - Move some code to Decodingstate::Enter(). r=kikuo
...
MozReview-Commit-ID: JjhmE0cgOn
2016-09-06 16:51:45 +08:00
JW Wang
168ae5afa1
Bug 1300711 - Remove MediaDecoderStateMachine::mQuickBuffering. r=cpearce
...
MozReview-Commit-ID: GW7bhY6ruKG
2016-09-06 16:28:20 +08:00
JW Wang
2f835cdb79
Bug 1302045. Check if we have [GetMediaTime(), GetMediaTime() + aUsecs] in the buffer ranges to decide whether we are in low buffered data. r=cpearce
...
Note we consider [endOfDecodedData, GetMediaTime()] is always in the buffer ranges.
MozReview-Commit-ID: F6ez3KYMjht
2016-09-12 16:20:11 +08:00
JW Wang
f6e4e8eb02
Bug 1302040 - don't enter buffering while prerolling. r=cpearce
...
MozReview-Commit-ID: Br9wC8PNorA
2016-09-12 15:45:36 +08:00
JW Wang
ac65f2a5c5
Bug 1302006. Part 4 - Let StateObject handle dormant request. r=kikuo
...
MozReview-Commit-ID: FK3UwbYDexV
2016-09-12 10:49:46 +08:00
JW Wang
daedc0f439
Bug 1302006. Part 3 - Let SeekingState handle dormant request. r=kikuo
...
MozReview-Commit-ID: ADVsUSpE8Az
2016-09-12 10:41:20 +08:00
JW Wang
a23e475527
Bug 1302006. Part 2 - Let ShutdownState handle dormant request. r=kikuo
...
MozReview-Commit-ID: 1uw7YjQps0i
2016-09-12 10:34:35 +08:00
JW Wang
9c2899926f
Bug 1302006. Part 1 - Let DormantState handle dormant request. r=kikuo
...
MozReview-Commit-ID: 8JqqAnlXzh4
2016-09-06 15:15:48 +08:00
Jean-Yves Avenard
4cbe1931d2
Bug 1299072: P9. Pass decoding error details to MediaDecoder. r=jwwang
...
MozReview-Commit-ID: uXWHhTozon
2016-09-11 00:51:13 +10:00
Jean-Yves Avenard
cd24425136
Bug 1299072: P7. Use MediaResult with MetadataPromise. r=jwwang
...
MozReview-Commit-ID: KrRr8wDuPNT
2016-09-10 19:56:50 +10:00
Jean-Yves Avenard
04fdc747be
Bug 1299072: P6. Pass decoding error details to MDSM and relatives. r=jwwang
...
MozReview-Commit-ID: 4ow2nF6Syz
2016-09-10 16:48:53 +10:00
JW Wang
84d4ed3d01
Bug 1302001. Move some code to WaitForCDMState. r=kaku
...
MozReview-Commit-ID: RAvuVs7Ykq
2016-09-06 15:01:30 +08:00
JW Wang
2705922bc6
Bug 1301341. Part 2 - Remove unused members. r=kaku
...
MozReview-Commit-ID: 3S9hw6w0k1T
2016-09-06 14:48:29 +08:00
JW Wang
3cf0dfbef9
Bug 1301341. Part 1 - Move some code to DecodeMetadataState. r=kaku
...
MozReview-Commit-ID: 3QiIjVM7Ypv
2016-09-06 14:33:30 +08:00
JW Wang
075b8bd00c
Bug 1300956. Part 10 - Remove null-checks for mStateObj. r=kaku
...
MozReview-Commit-ID: 6SRx1QqRXC8
2016-09-06 11:42:28 +08:00
JW Wang
537e1d0649
Bug 1300956. Part 9 - Implement ShutdownState. r=kaku
...
MozReview-Commit-ID: LnbQeCPYy9f
2016-09-06 11:37:46 +08:00
JW Wang
aa92965010
Bug 1300956. Part 8 - Implement CompletedState. r=kaku
...
MozReview-Commit-ID: KsgjLPShe2N
2016-09-06 11:34:09 +08:00
JW Wang
ad27f4c314
Bug 1300956. Part 7 - Implement BufferingState. r=kaku
...
MozReview-Commit-ID: 5FvguP4y43Z
2016-09-06 11:30:30 +08:00
JW Wang
ca94e43a60
Bug 1300956. Part 6 - Implement SeekingState. r=kaku
...
MozReview-Commit-ID: IrEOmTXlzuR
2016-09-06 11:20:12 +08:00
JW Wang
ec738ce584
Bug 1300956. Part 5 - Implement DecodingState. r=kaku
...
MozReview-Commit-ID: Kx5oRrT8DD0
2016-09-06 11:14:09 +08:00
JW Wang
b14a7b4389
Bug 1300956. Part 4 - Implement DecodingFirstFrameState. r=kaku
...
MozReview-Commit-ID: DXMv6pGbo7N
2016-09-06 11:10:52 +08:00
JW Wang
748f80d01e
Bug 1300956. Part 3 - Implement DormantState. r=kaku
...
MozReview-Commit-ID: 85IjZCdFjyJ
2016-09-06 11:07:55 +08:00
JW Wang
e3465f31ae
Bug 1300956. Part 2 - Implement WaitForCDMState. r=kaku
...
MozReview-Commit-ID: 7jzwgWxqYKL
2016-09-06 11:05:03 +08:00
JW Wang
844ae580cd
Bug 1300956. Part 1 - Add declarations of the state objects of MDSM. Also implement DecodeMetadataState. r=kaku
...
MozReview-Commit-ID: BRyi409rmn5
2016-09-06 11:01:57 +08:00
JW Wang
1b80826a62
Bug 1300497. Part 6 - remove the call to |SetState(DECODER_STATE_SHUTDOWN)| from DecodeError(). r=kaku
...
So we have only one place to transition to the SHUTDOWN state which is Shutdown().
MozReview-Commit-ID: 6MNISCea94Q
2016-09-06 15:33:20 +08:00
JW Wang
1310f4b3f6
Bug 1300497. Part 5 - run MDSM cycles immediately in the callback of mDelayedScheduler. r=kaku
...
There is no point in scheduling an addition cycle to do that.
Also remove the annoying debugging message which is not helpful.
MozReview-Commit-ID: BMjeTNg6HCY
2016-09-05 17:51:54 +08:00
JW Wang
e4c8a17949
Bug 1300497. Part 4 - remove the call to ScheduleStateMachine() before |SetState(DECODER_STATE_SHUTDOWN)| and cancel mDelayedScheduler in Shutdown(). r=kaku
...
We don't want to run MDSM cycles anymore once shutdown begins.
MozReview-Commit-ID: 7Py20oqWNBG
2016-09-06 10:26:45 +08:00
JW Wang
6d34b53656
Bug 1300497. Part 3 - move some code from FinishShutdown() to Shutdown(). r=kaku
...
We don't want to receive notifications from MediaEventSource or WatchManager once shutdown begins.
MozReview-Commit-ID: LiKUjOGuxyX
2016-09-06 10:23:02 +08:00
JW Wang
a8b2ed3045
Bug 1300497. Part 2 - constify and fix the comment of IsShutdown(). r=kaku
...
MozReview-Commit-ID: AsZwNPAlq0d
2016-09-05 16:50:06 +08:00
JW Wang
c72bf6a7bd
Bug 1300497. Part 1 - assert we never escape the SHUTDOWN state. r=kaku
...
MozReview-Commit-ID: JDWdFAGZijm
2016-09-05 16:38:09 +08:00
JW Wang
4273b21c68
Bug 1300479. Part 3 - extract RunStateMachine() cases to its own function. r=kaku
...
MozReview-Commit-ID: LNLu7X8VD3s
2016-09-05 15:48:37 +08:00
JW Wang
7ca072df49
Bug 1300479. Part 2 - replace empty cases with the default case. r=kaku
...
MozReview-Commit-ID: 7iXd8UtivEn
2016-09-05 15:35:55 +08:00
JW Wang
330cebcda4
Bug 1300479. Part 1 - remove the aState parameter from EnterState()/ExitState() for we always pass mState. r=kaku
...
MozReview-Commit-ID: 8YLxMpevEJS
2016-09-05 15:28:37 +08:00
JW Wang
35463e03a2
Bug 1297590. Part 10 - remove some mSentFirstFrameLoadedEvent checks for it is surely true when mState is DECODING. r=kaku
...
MozReview-Commit-ID: 5wwCc33KTHF
2016-09-01 16:34:24 +08:00
JW Wang
2b531b4283
Bug 1297590. Part 9 - fix MaybeFinishDecodeFirstFrame(). r=kaku
...
1. The return value is not used.
2. It should be called only when mSentFirstFrameLoadedEvent is false.
3. Transition to SEEK if there is any pending seek or DECODER_STATE_DECODING otherwise.
MozReview-Commit-ID: LIO0MPGzhsX
2016-09-01 13:01:48 +08:00
JW Wang
85e31abb38
Bug 1297590. Part 8 - add an entry action for DECODER_STATE_DECODING_FIRSTFRAME. r=kaku
...
We move the handling of pending seek from the entry action of DECODING to that of DECODING_FIRSTFRAME.
MozReview-Commit-ID: qMnJ0ON2cK
2016-09-01 12:54:43 +08:00
JW Wang
d8f76b1fb3
Bug 1297590. Part 7 - remove the call to MaybeFinishDecodeFirstFrame() from OnNotDecoded(). r=kaku
...
It is impossible to finish decoding first frames while waiting for data.
MozReview-Commit-ID: 8eR8Rf9TuD8
2016-09-01 12:02:49 +08:00
JW Wang
dc5472ff5d
Bug 1297590. Part 6 - Move MaybeFinishDecodeFirstFrame() from case DECODER_STATE_DECODING to case DECODER_STATE_DECODING_FIRSTFRAME. r=kaku
...
MozReview-Commit-ID: aylNzLhwaT
2016-09-01 12:00:44 +08:00
JW Wang
3e0de9b2b0
Bug 1297590. Part 5 - change some SetState(DECODER_STATE_DECODING) to SetState(DECODER_STATE_DECODING_FIRSTFRAME). r=kaku
...
MDSM used to transition to DECODING in the following places:
1. BUFFERING
2. OnMetadataRead()
3. WAIT_FOR_CDM
4. SeekCompleted()
We will transition to DECODING_FIRSTFRAME in case 2 and 3.
For case 1, BUFFERING makes sense only after decoding first frames. So BUFFERING
should never transition to DECODING_FIRSTFRAME.
For case 4, we always finish decoding first frames before completing seek. So
It should not transition to DECODING_FIRSTFRAME either.
MozReview-Commit-ID: 7VnK82wjgZv
2016-09-01 11:55:43 +08:00
JW Wang
18c551beb2
Bug 1297590. Part 4 - change test mState >= DECODER_STATE_DECODING to mState >= DECODER_STATE_DECODING_FIRSTFRAME. r=kaku
...
MozReview-Commit-ID: ImqqLCyp2Yc
2016-09-01 11:48:16 +08:00
JW Wang
720238ec7e
Bug 1297590. Part 3 - change test mState >= DECODER_STATE_DECODING && mSentFirstFrameLoadedEvent to mState >= DECODER_STATE_DECODING. r=kaku
...
MozReview-Commit-ID: ASWBi7D7DOK
2016-09-01 11:47:17 +08:00
JW Wang
dedbb752ac
Bug 1297590. Part 2 - change test mState != DECODER_STATE_DECODING to mState != DECODER_STATE_DECODING && mState != DECODER_STATE_DECODING_FIRSTFRAME. r=kaku
...
MozReview-Commit-ID: F62HdoctGpD
2016-09-01 11:45:56 +08:00
JW Wang
7fd372da71
Bug 1297590. Part 1 - add DECODER_STATE_DECODING_FIRSTFRAME to MDSM. r=kaku
...
When separating decoding frist frames from the DECODING state, we need
to change the test `mState == DECODER_STATE_DECODING` to
`mState == DECODER_STATE_DECODING || mState == DECODER_STATE_DECODING_FIRSTFRAME`.
However, we don't make changes for those where mSentFirstFrameLoadedEvent is
proven to be true. Because there is no way for mState to be DECODING_FIRSTFRAME
when mSentFirstFrameLoadedEvent is true.
MozReview-Commit-ID: 7jv3SDlmBBG
2016-09-01 14:28:45 +08:00
JW Wang
dcb2604b4a
Bug 1299393. Part 1 - make some functions return void and fix the comments. r=kaku
...
MozReview-Commit-ID: 3wAjgxcMLhX
2016-08-31 15:46:59 +08:00
JW Wang
d5ecd9cdf8
Bug 1299387 - check the duration instead of mState to match the comment. r=kaku
...
MozReview-Commit-ID: E1MgKHDIRAq
2016-08-31 14:54:24 +08:00
JW Wang
60085430b4
Bug 1299369. Part 4 - remove the check for mSentFirstFrameLoadedEvent from RequestVideoData() because NeedToSkipToNextKeyframe() already checks it. r=kaku
...
MozReview-Commit-ID: 4iUgyeKKNlD
2016-08-31 13:12:51 +08:00
JW Wang
b410d9875a
Bug 1299369. Part 2 - except for BUFFERING or SEEKING, HaveNextFrameData() should be able to tell us whether next frames are available. r=kaku
...
MozReview-Commit-ID: HtVP2ncyxjv
2016-08-31 13:06:19 +08:00