Kaku Kuo
cfb08542b5
Bug 1309516 part 7 - modify the seek operation;r=jwwang
...
MozReview-Commit-ID: AZ9yK050ElM
2016-10-16 22:15:29 +08:00
Kaku Kuo
4cf7704cc4
Bug 1309516 part 4 - always notify LoadedMetadataEvent before decoding first frame;r=jwwang
...
MozReview-Commit-ID: 4VcmELgvAjC
2016-10-16 21:49:07 +08:00
JW Wang
730d8c253f
Bug 1313551 - fix the traling return type of StateObject::SetState() so it can be indexed correctly by Eclipse. r=JamesCheng
...
MozReview-Commit-ID: 8FQuSJ0pgrB
2016-10-26 13:56:08 +08:00
Jean-Yves Avenard
7c7438c0ba
Bug 1312886: P4. Override MediaResource reporting if we have a pending promise. r=jwwang
...
A future use will see the MediaFormatReader using waiting promise to indicate that the decoders are waiting for an EME key.
We should always enter buffering mode once we're low on data and we're waiting on a key.
MozReview-Commit-ID: DFcT6YEK1Ke
2016-10-27 20:19:42 +11:00
Jean-Yves Avenard
e92b723b3f
Bug 1312886: [MSE] P3. Only rely on waiting promise to determine buffering state. r=jwwang
...
MozReview-Commit-ID: 3HfK8bwqlYM
2016-10-27 20:16:30 +11:00
JW Wang
d763f6c4e1
Bug 1311924 - Handle play state changes in state objects of MDSM. r=kaku
...
Note we remove the comments that are no longer valid and we call
ScheduleStateMachine() only for DecodingState and CompletedState.
1. DecodingFirstFrameState doesn't implement Step(). It doesn't
make sense to schedule next cycles.
2. BufferingState doesn't care about the play state since it will
never start playback.
MozReview-Commit-ID: 6KRxkzsi5WX
2016-10-21 14:53:18 +08:00
JW Wang
64b038b621
Bug 1312321. Part 2 - make SetState() protected again. r=JamesCheng
...
MozReview-Commit-ID: BlYO8U28gVQ
2016-10-24 11:47:51 +08:00
JW Wang
5305e494a6
Bug 1312321. Part 1 - make StateObject::SetState pass-by-value. r=JamesCheng
...
MozReview-Commit-ID: 34Y4bNAGmbk
2016-10-24 11:43:57 +08:00
JW Wang
eb80703df8
Bug 1311594 - Release decoders when MDSM has decoded all audio/video frames. r=cpearce
...
MozReview-Commit-ID: LoFgTYebYaj
2016-10-11 17:30:25 +08:00
JW Wang
3938f5d198
Bug 1308147. Part 6 - remove unused MDSM::mQueuedSeek for there is no code to modify it. r=kikuo
...
MozReview-Commit-ID: BlQydjfm4DI
2016-10-19 18:27:50 +08:00
JW Wang
3673ac786b
Bug 1308147. Part 5 - reject mPendingSeek in DormantState::Exit(). r=kikuo
...
MozReview-Commit-ID: HfQCWBNtUwZ
2016-10-19 18:12:06 +08:00
JW Wang
28df79d148
Bug 1308147. Part 4 - reject mPendingSeek in WaitForCDMState::Exit(). r=kikuo
...
MozReview-Commit-ID: H7ChCplXhBM
2016-10-19 18:09:07 +08:00
JW Wang
109ea62e27
Bug 1308147. Part 3 - add DecodingFirstFrameState::mPendingSeek to store a pending seek job. r=kikuo
...
MozReview-Commit-ID: 4TMwk6q67go
2016-10-19 17:56:20 +08:00
JW Wang
d25daa25b4
Bug 1308147. Part 2 - add DormantState::mPendingSeek to store a pending seek job. r=kikuo
...
MozReview-Commit-ID: oySkHWuYo3
2016-10-19 15:35:29 +08:00
JW Wang
52116cf738
Bug 1308147. Part 1 - add WaitForCDMState::mPendingSeek to store a pending seek job. r=kikuo
...
MozReview-Commit-ID: LmSSm98k9Ze
2016-10-18 17:36:49 +08:00
JW Wang
5cb8d6a114
Bug 1311901 - document the internal states of MDSM. r=kaku,kikuo
...
MozReview-Commit-ID: 4fNJcjk6aMI
2016-10-21 11:37:00 +08:00
JW Wang
b954f17b66
Bug 1311267 - DecodingFirstFrameState should override HandleDormant(). r=kikuo
...
MozReview-Commit-ID: LGcvRJF3cNC
2016-10-19 14:25:42 +08:00
JW Wang
0be0c95a3a
Bug 1310140. Part 13 - handle resuming video decoding in various state objects. r=kaku,kamidphish
...
Note StateObject::HandleResumeVideoDecoding() doesn't check mIsReaderSuspended
because if the reader is suspended, MDSM must be in the dormant state and won't
resume video decoding.
MozReview-Commit-ID: FY4rdFmk56C
2016-10-18 14:56:36 +08:00
JW Wang
d1ebe8c51c
Bug 1310140. Part 12 - move the HasVideo() check into HandleVideoSuspendTimeout(). r=kaku,kamidphish
...
If MDSM becomes invisible while decoding metadata, VisibilityChanged() will return early
because mInfo is still nothing. And MDSM will never suspend video decoding if there are no
visibility changes later. We should delay the check util the timer goes off and MDSM
needs to switch on the blank decoder.
MozReview-Commit-ID: Ids9MncpC2l
2016-10-18 14:07:07 +08:00
JW Wang
d653e26d00
Bug 1310140. Part 11 - make StateObject::HandleVideoSuspendTimeout() pure virtual for all sub-classes override it. r=kaku,kamidphish
...
MozReview-Commit-ID: 2uZHm3NZIFV
2016-10-18 13:58:34 +08:00
JW Wang
e77286daa6
Bug 1310140. Part 10 - have SeekingState handle suspend-video-decoding. r=kaku,kamidphish
...
MozReview-Commit-ID: DRGfP3VN2OG
2016-10-18 11:11:38 +08:00
JW Wang
ff96c76b2b
Bug 1310140. Part 9 - add ShutdownState::HandleVideoSuspendTimeout(). r=kaku,kamidphish
...
MozReview-Commit-ID: GBXL3U1uxFW
2016-10-18 10:55:56 +08:00
JW Wang
89515fd80c
Bug 1310140. Part 8 - add CompletedState::HandleVideoSuspendTimeout(). r=kaku,kamidphish
...
MozReview-Commit-ID: LOrecImz2Cr
2016-10-18 10:54:39 +08:00
JW Wang
d3410b0e7e
Bug 1310140. Part 7 - add BufferingState::HandleVideoSuspendTimeout(). r=kaku,kamidphish
...
MozReview-Commit-ID: IAhR9v3svpT
2016-10-18 10:52:24 +08:00
JW Wang
b46b8f2b75
Bug 1310140. Part 6 - have DecodingState handle suspend-video-decoding. r=kaku,kamidphish
...
MozReview-Commit-ID: 3GxHdxZCiwE
2016-10-18 10:48:46 +08:00
JW Wang
87264ba4d6
Bug 1310140. Part 5 - add DecodingFirstFrameState::HandleVideoSuspendTimeout(). r=kaku,kamidphish
...
MozReview-Commit-ID: 9CAE5XOQFtQ
2016-10-18 10:40:52 +08:00
JW Wang
239f6821ee
Bug 1310140. Part 4 - add DormantState::HandleVideoSuspendTimeout(). r=kaku,kamidphish
...
MozReview-Commit-ID: GYBC3nS1PlF
2016-10-18 10:35:23 +08:00
JW Wang
a6e0e67157
Bug 1310140. Part 3 - add WaitForCDMState::HandleVideoSuspendTimeout(). r=kaku,kamidphish
...
MozReview-Commit-ID: 9fPBDrt8Tgi
2016-10-18 10:33:37 +08:00
JW Wang
34353f88a0
Bug 1310140. Part 2 - add DecodeMetadataState::HandleVideoSuspendTimeout(). r=kaku,kamidphish
...
MozReview-Commit-ID: 5NCo9ooQEvU
2016-10-18 10:31:17 +08:00
JW Wang
a606d32dd1
Bug 1310140. Part 1 - add StateObject::HandleVideoSuspendTimeout(). r=kaku,kamidphish
...
MozReview-Commit-ID: 1qyDJzogSR8
2016-10-18 10:29:14 +08:00
JW Wang
72bad93267
Bug 1310556 - keep |this| alive to avoid UAF. r=JamesCheng
...
MozReview-Commit-ID: 19glCcrheru
2016-10-17 14:23:52 +08:00
JW Wang
325d83ce24
Bug 1310537 - delay dormant handling until we exit WaitForCDMState. r=kikuo
...
The purpose of dormant state is to release decoders. we can delay handling dormant until we really need to decode.
MozReview-Commit-ID: GW4y8d40DLi
2016-10-14 15:15:18 +08:00
JW Wang
dad492d2c4
Bug 1310594 - MDSM::DumpDebugInfo() should dispatch the printing task immediately. r=kaku
...
MozReview-Commit-ID: 2FQlWJ0YnHJ
2016-10-17 16:22:34 +08:00
JW Wang
7d21e1f32b
Bug 1310086. Part 3 - let SeekingState/ShutdownState::Enter() return a promise. r=kaku
...
MozReview-Commit-ID: 4TvsISriclT
2016-10-13 13:53:32 +08:00
JW Wang
920cf252bc
Bug 1310086. Part 2 - devirtualize StateObject::Enter() so it can have different parameters and return types for each subclass. r=kaku
...
MozReview-Commit-ID: 4RDL99rSIFD
2016-10-12 14:16:40 +08:00
JW Wang
4d6c658a0f
Bug 1310086. Part 1 - add an assertion to StateObject::SetState(). r=kaku
...
It can be proven that SetState() always transitions to a different state except for the seeking state
for it is possible to seek again in the middle of seeking.
MozReview-Commit-ID: 4bdkAelcZoO
2016-10-12 14:04:25 +08:00
JW Wang
58eccb5540
Bug 1309142. Part 2 - add StateObject::HandleShutdown(). r=JamesCheng
...
MozReview-Commit-ID: 64VPA1fxLzF
2016-10-11 16:20:23 +08:00
JW Wang
5fbdf57338
Bug 1309142. Part 1 - move some code to the entry action of ShutdownState. r=JamesCheng
...
MozReview-Commit-ID: 81RgoNaTDVH
2016-10-11 16:10:14 +08:00
JW Wang
d6e4b7ebdf
Bug 1309136 - Move MDSM::MaybeStartBuffering into DecodingState. r=JamesCheng
...
MozReview-Commit-ID: 37cuIsA3j7F
2016-10-11 15:54:33 +08:00
JW Wang
9c058c7a67
Bug 1309116. Part 4 - fix remaining calls to MDSM::SetState() and remove unused functions. r=kaku
...
MozReview-Commit-ID: EytZ8qrQJRn
2016-10-11 14:58:29 +08:00
JW Wang
1de7e5048a
Bug 1309116. Part 3 - replace InitiateSeek() with StateObject::SetState(). r=kaku
...
MozReview-Commit-ID: 3iXZ5r402rz
2016-10-11 14:56:52 +08:00
JW Wang
f2c7cdcc5c
Bug 1309116. Part 2 - rewrite StateObject::SetState using variadic template. r=kaku
...
MozReview-Commit-ID: 3ofT2po9B4Q
2016-10-11 14:41:07 +08:00
JW Wang
1018104b93
Bug 1309116. Part 1 - move some functions out of class definition because we need to see the complete definition when trying to 'new' an object. r=kaku
...
MozReview-Commit-ID: 3pOPiFeAnPI
2016-10-11 14:22:24 +08:00
JW Wang
6e0d206e32
Bug 1306551 - don't update playback position for video-only seek when seek is completed. r=kaku
...
MozReview-Commit-ID: 7vByX0pPNo
2016-10-06 17:06:58 +08:00
JW Wang
89c1b5c383
Bug 1309111 - Some macros are not expanded correctly by MSVC. r=gerald
...
MozReview-Commit-ID: BGJXOgslSt8
2016-10-11 13:28:56 +08:00
JW Wang
f27179e09b
Bug 1307725. Part 8 - move DonePrerolling{Audio,Video} into DecodingState. r=kikuo
...
MozReview-Commit-ID: I173Qo7hH9X
2016-10-05 17:40:01 +08:00
JW Wang
692f75e8d8
Bug 1307725. Part 7 - move mIsPrerolling into DecodingState. r=kikuo
...
MozReview-Commit-ID: kHNnGepY53
2016-10-05 17:30:38 +08:00
JW Wang
2e3b331834
Bug 1307725. Part 6 - move mIsPrerolling out of MDSM::DumpDebugInfo(). r=kikuo
...
MozReview-Commit-ID: 3BkJIRcW5oV
2016-10-05 17:28:13 +08:00
JW Wang
96ba3ae525
Bug 1307725. Part 5 - move the check of mIsPrerolling out of MaybeStartPlayback(). r=kikuo
...
Note CompletedState doesn't need to check this flag because prerolling should be done when entering the COMPLETED state.
MozReview-Commit-ID: 4Z7mFYf7wdR
2016-10-05 17:21:47 +08:00
JW Wang
91dc00dc0c
Bug 1307725. Part 4 - move MaybeStopPrerolling() into DecodingState. r=kikuo
...
MozReview-Commit-ID: JiedugPhOMU
2016-10-05 17:15:27 +08:00