Commit Graph
1098 Commits
Author SHA1 Message Date
Kaku Kuo e05fffdf2d Bug 1309516 part 8 - modify MDSM::RecomputeDuration();r=jwwang
MozReview-Commit-ID: 6pM7Kn3kZco
2016-10-24 15:04:52 +08:00
Kaku Kuo 4c91d96005 Bug 1309516 part 7 - modify the seek operation;r=jwwang
MozReview-Commit-ID: AZ9yK050ElM
2016-10-16 22:15:29 +08:00
Kaku Kuo 2105116046 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 95663e734d Bug 1317201. Part 2 - remove unused members. r=cpearce
Thanks to P1, we can remove HasFutureAudio() which is tricky about
how much audio data is enough to say 'having future data'.

MozReview-Commit-ID: 8AihIZWtQzm
2016-11-15 16:48:06 +08:00
JW Wang e69650a931 Bug 1317201. Part 1 - align next-frame-status updates with state changes of MDSM. r=cpearce
Note we remove the call to UpdateNextFrameStatus() from SeekingState::SeekCompleted()
because DecodingState::Enter() always switches to NEXT_FRAME_AVAILABLE.

MozReview-Commit-ID: Dv3NpudZwBB
2016-11-10 16:35:48 +08:00
JW Wang cfd2586f29 Bug 1317576. Part 7 - remove the assertion that doesn't make sense anymore. r=cpearce
It is possible to call AudioEndTime() in CompletedState::Step() with MedisSink
not started at all. This happens when seeking to the end on a video only file.

MozReview-Commit-ID: 78P72DAPpWI
2016-11-15 15:13:21 +08:00
JW Wang c419774049 Bug 1317576. Part 6 - ensure 'playbackEnded' is notified when seeking to the end on a paused media element. r=cpearce
MozReview-Commit-ID: 4fzru2oHaPV
2016-11-15 12:06:17 +08:00
JW Wang 8422f9c61e Bug 1317576. Part 5 - run Step() in CompletedState::Enter() without scheduling an additional cycle. r=cpearce
MDSM might have reached the end of playback. We want to notify 'playbackEnded' ASAP.

MozReview-Commit-ID: FYI6xTWuNSD
2016-11-15 11:54:52 +08:00
JW Wang 7e02386098 Bug 1317576. Part 3 - remove unused parameter/member. r=cpearce
MozReview-Commit-ID: Ff6a8MKVY8q
2016-11-14 16:47:07 +08:00
JW Wang d0f6506bf7 Bug 1317576. Part 2 - always transition to DECODING when seek is done. r=cpearce
DecodingState::Enter() will check whether decoding is completed and transition to COMPLETED.

MozReview-Commit-ID: 5abPWWulGWo
2016-11-15 14:53:50 +08:00
JW Wang fd1b7a6fe8 Bug 1317576. Part 1 - add some helper functions. r=cpearce
MozReview-Commit-ID: FNWmQohsDRq
2016-11-14 16:31:48 +08:00
JW Wang 78e1c24c90 Bug 1314554 - Don't enter dormant when the media is not seekable. r=jya
This change deals with chained ogg files. A decoding error is encountered
even without seeking when exiting dormant. For now, we disable dormant
for there files that are not seekable to avoid playback looks broken
(due to decode error when exiting dormant) on Firefox.

MozReview-Commit-ID: 72axKPHwoIi
2016-11-09 14:21:16 +08:00
JW Wang 1292085fe6 Bug 1314219. Part 2 - remove unused watchables and fix some comments. r=cpearce
MozReview-Commit-ID: 6F6WSq3aE2w
2016-11-03 18:01:09 +08:00
JW Wang be798248cc Bug 1314219. Part 1 - align next frame status updates with state changes of MDSM. r=cpearce
We want entering/exiting dormant to be transparent to the media element. So we don't
change next frame status when entering/exiting dormant.

MozReview-Commit-ID: DCWxAGZ9sVw
2016-11-03 17:09:10 +08:00
JW Wang 1475835b4a Bug 1314884. Part 6 - remove SeekTarget::mEventVisibility. r=kaku
Note it is fine to always assume MediaDecoderEventVisibility::Observable in SeekJob::Resolve()
because no one will wait for the promise of internal seeks (where EventVisibility::Suppressed is passed).

MozReview-Commit-ID: Dx7AF5VhLmL
2016-11-03 15:34:11 +08:00
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