Commit Graph
1183 Commits
Author SHA1 Message Date
John Lin a4a47cd4ac Bug 1323631 - update original frame timestamp or duration rather than creating shallow copy. r=jwwang
MozReview-Commit-ID: 4oSheJwFNOE
2016-12-15 17:57:21 +08:00
Kaku Kuo cb8503608b Bug 1322799 part 12 - remove AccurateSeekTask; r=jwwang
MozReview-Commit-ID: I4CvCSHpTBN
2016-12-09 15:22:23 -10:00
Kaku Kuo 5d87b8c5a7 Bug 1322799 part 11 - disconnect AccurateSeekingState and SeekTask; r=jwwang
MozReview-Commit-ID: LeMtvoNkVFD
2016-12-09 15:21:06 -10:00
Kaku Kuo f984a0caab Bug 1322799 part 10 - move all AccurateSeekTask data members; r=jwwang
MozReview-Commit-ID: 99rbsQo9uE7
2016-12-09 14:33:54 -10:00
Kaku Kuo 220cb14fe1 Bug 1322799 part 9 - move AccurateSeekTask::CalculateNewCurrentTime(); r=jwwang
MozReview-Commit-ID: 4HFAPzAfANl
2016-12-09 13:48:02 -10:00
Kaku Kuo acaf4dde01 Bug 1322799 part 8 - move AccurateSeekTask::MaybeFinishSeek(); r=jwwang
MozReview-Commit-ID: HGcK5zUxyge
2016-12-09 13:25:08 -10:00
Kaku Kuo 308e5aa689 Bug 1322799 part 7 - move AccurateSeekTask::Drop{Audio,Video}UpToSeekTarget(); r=jwwang
MozReview-Commit-ID: 8i3yLFqXfJL
2016-12-09 13:20:10 -10:00
Kaku Kuo e0b2cd1466 Bug 1322799 part 6 - move AccurateSeekTask::AdjustFastSeekIfNeeded(); r=jwwang
MozReview-Commit-ID: LwvRNpfbrFI
2016-12-09 12:34:44 -10:00
Kaku Kuo ba690e85a6 Bug 1322799 part 5 - move AccurateSeekTask::Handle{Audio,Video,Not}{Decoded,Waited}(); r=jwwang}
MozReview-Commit-ID: 6ZulbXUFdf8
2016-12-09 11:24:43 -10:00
Kaku Kuo cd35a596c3 Bug 1322799 part 4 - move AccurateSeekTask::Request{Audio,Video}Data(); r=jwwang
MozReview-Commit-ID: 13vA6yDmN7d
2016-12-09 10:34:40 -10:00
Kaku Kuo c64ac1e136 Bug 1322799 part 3 - move AccurateSeekTask::OnSeek{Resoved,Rejected}(); r=jwwang
MozReview-Commit-ID: K8Bj21nxG0y
2016-12-08 21:02:45 -10:00
Kaku Kuo e0149ed99a Bug 1322799 part 2 - let AccurateSeekingState request demuxer seeking; r=jwwang
MozReview-Commit-ID: ERUCjllzBRx
2016-12-08 17:40:03 -10:00
Kaku Kuo c71b85a4e6 Bug 1322801 part 6 - defer the logic of CalculateNewCurrentTime to SeekingObject's subclasses; r=jwwang
MozReview-Commit-ID: 2JLrlJ9f3v1
2016-12-09 13:35:11 -10:00
Kaku Kuo 74f52a1235 Bug 1322801 part 5 - let AccurateSeekingState and NextFrameSeekingState have their own implementation of OnSeekTask{Resolved,Rejected}(); r=jwwang
MozReview-Commit-ID: 4SWeczIdoay
2016-12-09 18:47:27 -10:00
Kaku Kuo bf00a755c3 Bug 1322801 part 4 - defer the logic of invoking seek operation to SeekingObject's subclasses; r=jwwang
MozReview-Commit-ID: JjugShNlLV
2016-11-29 18:37:27 +08:00
Kaku Kuo 2e475391ec Bug 1322801 part 3 - defer the logic of resetting MDSM to SeekingObject's subclasses; r=jwwang
MozReview-Commit-ID: KPgO74TlQSJ
2016-11-29 18:06:34 +08:00
Kaku Kuo b9485a9e99 Bug 1322801 part 2 - defer the creation of SeekTask into SeekingState's subclasses; r=jwwang
MozReview-Commit-ID: 5rVD9r4JX3h
2016-11-29 17:42:57 +08:00
Kaku Kuo d038aa3142 Bug 1322801 part 1 - create AccurateSeekingState and NextFrameSeekingState; r=jwwang
MozReview-Commit-ID: Kkh5wuOL1k9
2016-11-30 10:32:29 +08:00
JW Wang 80685d13bf Bug 1321744. Part 3 - remove ThenPromise and replace its use with Then. r=gerald
MozReview-Commit-ID: AsmePdCp2tC
2016-12-04 08:51:25 +08:00
JW Wang c803720f82 Bug 1321471. Part 1 - Use of MozPromise::ThenPromise() in place of CompletionPromise(). r=jya.
MozReview-Commit-ID: INbGpzwK4f9
2016-11-30 18:19:26 +08:00
Kaku Kuo 832f76f532 Bug 1321142 - remove SeekingState::mVisibility; r=jwwang
MozReview-Commit-ID: 2hCNDnVJ6k0
2016-11-29 18:41:04 +08:00
Kaku Kuo 5c5854ea19 Bug 1321140 - don't clamp up the SeekTarget again in the AccurateSeekTask's constructor; r=jwwang
MozReview-Commit-ID: KQro2Sk1dRg
2016-11-29 17:59:22 +08:00
Kaku Kuo c55f7b1a57 Bug 1320466 part 7 - remove callbacks of SeekTask; r=jwwang
MozReview-Commit-ID: KwyWGVG4NYG
2016-11-26 15:01:45 +08:00
Kaku Kuo cc8e2e22b1 Bug 1320466 part 6 - dispatch {not-}decoded and {not-}waited events from SeekingObject to SeekTask; r=jwwang
MozReview-Commit-ID: 3rzKd5GZBA6
2016-11-26 14:56:19 +08:00
Kaku Kuo 5b53408f55 Bug 1320466 part 4 - delegate OnAudioWaited, OnVideoWaited and OnNotWaited events to state objects; r=jwwang
MozReview-Commit-ID: I5tFVziVE02
2016-11-26 14:12:01 +08:00
Kaku Kuo bbcb176ede Bug 1320466 part 3 - implement OnAudioWaited(), OnVideoWaited() and OnNotWaited() callbacks in MDSM; r=jwwang
MozReview-Commit-ID: JA83a23p0Fd
2016-11-26 13:50:51 +08:00
Kaku Kuo bac5fd269c Bug 1320466 part 1 - delegate OnNotDecoded event to state objects; r=jwwang
MozReview-Commit-ID: ChomOsqYo1d
2016-11-26 12:50:01 +08:00
JW Wang 60db6cab39 Bug 1319706. Part 3 - remove the assertion that is no longer valid. r=kaku
MozReview-Commit-ID: FgmMTw7cy1w
2016-11-24 14:51:00 +08:00
JW Wang fcbede2483 Bug 1319706. Part 2 - remove the SeekJob parameter from DecodingFirstFrameState::Enter(). r=kaku
MozReview-Commit-ID: ACea0NLMRLn
2016-11-23 17:56:12 +08:00
JW Wang 7bc692f884 Bug 1319706. Part 1 - remove DecodingFirstFrameState::mPendingSeek since it can handle seek requests immediately. r=kaku
MozReview-Commit-ID: I2lI63s46GQ
2016-11-23 17:48:48 +08:00
JW Wang cc57cc0b97 Bug 1320258. Part 2 - remove MediaDecoderReader::UpdateBufferedWithPromise(). r=jya
Bug 1313635 ensures buffer ranges are updated before resolving metadata.
So we can revert the changes in bug 1251460.

MozReview-Commit-ID: Ek0sgPpv92s
2016-11-25 16:22:55 +08:00
Gerald Squelart 5669a49991 Bug 1313497 - Use InvokeAsync with Storages in MediaDecoderStateMachine - r=jya
Thanks to this, MediaDecoderStateMachine::Seek can take SeekTarget by const&.

MozReview-Commit-ID: 97mLndCosQc
2016-11-13 16:23:39 +11:00
JW Wang 0aa201943a Bug 1319698 - Remove MediaDecoderReader::SetIdle(). r=jya
MozReview-Commit-ID: ArGqum1MSIO
2016-11-23 17:30:31 +08:00
James Cheng 4f212697bb Bug 1318225 - Part2 - Remove demux-only APIs. r=jya
MozReview-Commit-ID: ONS7mMr8mZ
2016-11-17 15:23:07 +08:00
Kaku Kuo 800a570b12 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 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