Commit Graph
1183 Commits
Author SHA1 Message Date
JW Wang 4dc47be1ee Bug 1314884. Part 5 - pass StateObject::EventVisibility to SeekingState::Enter() to indicate whether to publish events during seek. r=kaku
Note EventVisibility::Suppressed is used by internal seeks only like video-only seek or exit-dormant seek.

MozReview-Commit-ID: 6jlCWRJsmdI
2016-11-03 15:32:51 +08:00
JW Wang bfc738c50e Bug 1314884. Part 4 - extract the code of HandleSeek() to the parent class. r=kaku
DormantState, DecodingState, SeekingState, BufferingState and CompletedState have exactly the same implementation of HandleSeek().
We can extract the code to avoid duplication.

MozReview-Commit-ID: 8maxjtLoQ1Q
2016-11-03 15:21:48 +08:00
JW Wang 1421803c58 Bug 1314884. Part 3 - remove the call to |mPendingSeek.RejectIfExists(__func__)| from DormantState::HandleSeek() since it will be rejected in Exit() before transitioning to SEEKING. r=kaku
MozReview-Commit-ID: A5HE03q87Ey
2016-11-03 15:15:13 +08:00
JW Wang 2cb39ab792 Bug 1314884. Part 2 - Let DORMANT transition to SEEKING when play state changes to PLAYING since we need to seek anyway whenever exiting dormant. r=kaku
MozReview-Commit-ID: 9d7Gea1iclh
2016-11-03 15:02:22 +08:00
JW Wang 1163b4d786 Bug 1314884. Part 1 - move the calculation of seek target into DormantState::Enter() so we don't need to pass a SeekJob to the function. r=kaku
MozReview-Commit-ID: FyFp509dxwl
2016-11-03 14:54:40 +08:00
JW Wang 6dde50a546 Bug 1314552. Part 1 - update mMediaSeekableOnlyInBufferedRanges in OnMetadataRead(). r=jya
MozReview-Commit-ID: DPlD6zrJTrx
2016-11-02 17:21:52 +08:00
JW Wang 43f8ef08bc Bug 1314535. Part 1 - listen to MediaDecoderReader::OnMediaNotSeekable() to update mMediaSeekable. r=jya
MozReview-Commit-ID: JK0qnMoljyp
2016-11-02 15:52:15 +08:00
JW Wang 9f37b90ab8 Bug 1314526. Part 6 - fix HandleAudioCaptured(). r=kikuo
MozReview-Commit-ID: L8z35AVdU8Y
2016-10-28 16:33:08 +08:00
JW Wang 069968491e Bug 1314526. Part 5 - fix HandleWaitingForData(). r=kikuo
MozReview-Commit-ID: KHPpdZFt9Tt
2016-10-28 16:31:54 +08:00
JW Wang 1ed91cdc1d Bug 1314526. Part 4 - fix HandleEndOfStream(). r=kikuo
MozReview-Commit-ID: Kg3xAuX9FPf
2016-10-28 16:30:52 +08:00
JW Wang 972fa99cb9 Bug 1314526. Part 3 - fix HandleVideoDecoded() r=kikuo
MozReview-Commit-ID: 3d3FFCupF3a
2016-10-28 16:28:51 +08:00
JW Wang 97927989cf Bug 1314526. Part 2 - fix HandleAudioDecoded(). r=kikuo
MozReview-Commit-ID: 1jbZz5m9uR2
2016-10-28 16:27:19 +08:00
JW Wang 07e2687a8e Bug 1314526. Part 1 - fix HandleCDMProxyReady(). r=kikuo
MozReview-Commit-ID: 9PyeBUXadud
2016-10-28 16:25:44 +08:00
JW Wang b5719cda14 Bug 1314524. Part 7 - fix comments about dormant. r=kaku
MozReview-Commit-ID: 5qFuMRMLqEr
2016-10-28 16:20:15 +08:00
JW Wang 51718898e6 Bug 1314524. Part 6 - remove unused mPendingDormant. r=kaku
MozReview-Commit-ID: 6B5mNoPk9tg
2016-10-28 16:16:53 +08:00
JW Wang 47ddfbfe98 Bug 1314524. Part 5 - remove unused HandleDormant() functions. r=kaku
MozReview-Commit-ID: 8NRwInXS0uU
2016-10-28 16:14:14 +08:00
JW Wang 67c7fe6550 Bug 1314524. Part 4 - remove DormantState::HandleDormant(). r=kaku
MozReview-Commit-ID: JSkpvglJzpN
2016-10-28 16:10:49 +08:00
JW Wang 9b539b26e4 Bug 1314524. Part 3 - add DecodingState::EnterDormant(). r=kaku
MozReview-Commit-ID: 6YbO61mWqnj
2016-10-28 16:05:52 +08:00
JW Wang 7f5d030397 Bug 1314524. Part 2 - devirtualize StateObject::HandleDormant(). r=kaku
MozReview-Commit-ID: D99L6Ioy6PJ
2016-10-28 16:02:11 +08:00
JW Wang 1f3a75e6ab Bug 1314524. Part 1 - remove MDSM::SetDormant() which has no callers. r=kaku
MozReview-Commit-ID: KQ7pZlCGqW8
2016-10-28 16:00:23 +08:00
Sebastian Hengst 3915f02db5 Backed out changeset 804308421d74 (bug 1309516) 2016-11-05 11:00:20 +01:00
Sebastian Hengst 5343ee6895 Backed out changeset 3686da2395b9 (bug 1309516) 2016-11-05 11:00:08 +01:00
Sebastian Hengst ca849afcee Backed out changeset cb6854f262a0 (bug 1309516) 2016-11-05 11:00:04 +01:00
Sebastian Hengst 4f33e12f60 Backed out changeset 9d1487ccc2e3 (bug 1309516) 2016-11-05 11:00:00 +01:00
Kaku Kuo b617053bb7 Bug 1309516 part 9 - make sure that MDSM::mDuration is always assigned once we have meatadata; r=jwwang
MozReview-Commit-ID: KF7J1XGo2MD
2016-11-01 17:10:03 +08:00
Kaku Kuo dff0918f48 Bug 1309516 part 8 - modify MDSM::RecomputeDuration();r=jwwang
MozReview-Commit-ID: 6pM7Kn3kZco
2016-10-24 15:04:52 +08:00
Kaku Kuo 025864a64c Bug 1309516 part 7 - modify the seek operation;r=jwwang
MozReview-Commit-ID: AZ9yK050ElM
2016-10-16 22:15:29 +08:00
Kaku Kuo ee3d42e888 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 7cf264c4f9 Bug 1311872. Part 4 - exit dormant in response to user actions. r=cpearce,jya
MozReview-Commit-ID: CTXUlpfLNBQ
2016-10-21 15:52:17 +08:00
JW Wang 050cc19f1c Bug 1311872. Part 3 - enter dormant when being paused for a while. r=cpearce,jya
MozReview-Commit-ID: HJjhFebQ8WI
2016-10-20 14:45:05 +08:00
JW Wang 608f9943ac Bug 1311872. Part 1 - remove dormant code from MediaDecoder and its friends. We will let MDSM solely decide when to enter/exit dormant. r=cpearce,jya
MozReview-Commit-ID: 4rRSGcruy7Z
2016-10-20 15:20:25 +08:00
Dan Glastonbury f7ebae5c66 Bug 1313955 - Dormant recovery seek uses wrong time. r=jwwang
Dormant mode is setting recovery seek to MDSM::mCurrentPosition which
doesn't match what MediaSink position which is used to leave the last
frame in the image container.

Switch to using mMediaSink->GetPosition for dormant recovery seek
target.

MozReview-Commit-ID: 7YLecRR8XrN
2016-11-01 10:04:04 +10:00
JW Wang 3442b95ef6 Bug 1312337. Part 4 - remove ReaderQueue and its friends. r=jya
MozReview-Commit-ID: Gg4IOPdjEeS
2016-10-27 16:06:05 +08:00
Phil Ringnalda 045f20278a Backed out 8 changesets (bug 1309516) for Win8 wpt failures in content-security-policy/media-src/media-src-7_3.html
Backed out changeset 5cb98008b3e3 (bug 1309516)
Backed out changeset 9ddc65900391 (bug 1309516)
Backed out changeset a876261d2d38 (bug 1309516)
Backed out changeset a154fa107dd3 (bug 1309516)
Backed out changeset 35d6e08883d6 (bug 1309516)
Backed out changeset e39be827b220 (bug 1309516)
Backed out changeset 970694b0b279 (bug 1309516)
Backed out changeset 90409a433f31 (bug 1309516)
2016-10-28 18:47:49 -07:00
Kaku Kuo 6f8281b5b9 Bug 1309516 part 8 - modify MDSM::RecomputeDuration();r=jwwang
MozReview-Commit-ID: 6pM7Kn3kZco
2016-10-24 15:04:52 +08:00
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