Commit Graph
1098 Commits
Author SHA1 Message Date
JW Wang 54f5fa06b5 Bug 1307725. Part 3 - add StateObject::HandleWaitingForData to handle NS_ERROR_DOM_MEDIA_WAITING_FOR_DATA. r=kikuo
MozReview-Commit-ID: 9SO9cwVMQK7
2016-10-05 17:11:41 +08:00
JW Wang 9865c14004 Bug 1307725. Part 2 - handle prerolling in DecodingState::HandleEndOfStream() and move it to the public section. r=kikuo
MozReview-Commit-ID: DMlLV8KLXvQ
2016-10-05 17:07:55 +08:00
JW Wang bc596e90c0 Bug 1307725. Part 1 - add StateObject::HandleAudioCaptured() to handle audio capture. r=kikuo
MozReview-Commit-ID: JoBQSte4MML
2016-10-05 17:03:08 +08:00
JW Wang f346fc169b Bug 1308603 - add some assertions to debug crash. r=kaku
MozReview-Commit-ID: DpWRbgwIzla
2016-10-11 11:11:42 +08:00
JW Wang 7e5d2fdbea Bug 1308078. Part 2 - no need to store mQueuedSeek in WaitForCDMState::HandleDormant. r=kaku
Because we haven't decoded any data and are at position 0, there is no need to seek when exiting the dormant state.

MozReview-Commit-ID: AKAcqW3HfRN
2016-10-06 15:11:45 +08:00
JW Wang b84f380548 Bug 1308078. Part 1 - Don't decode metadata again when exiting the dormant state. r=kaku
MozReview-Commit-ID: JBzxcePE8F8
2016-10-06 14:57:29 +08:00
JW Wang 9d76a59f25 Bug 1308071. Part 3 - early return from VisibilityChanged() if mInfo is nothing. r=kaku
VisibilityChanged() could be called before reading metadata.

MozReview-Commit-ID: F3OIiC4mXo3
2016-10-06 11:28:01 +08:00
JW Wang d24645898b Bug 1308071. Part 2 - remove unused members. r=kaku
MozReview-Commit-ID: J3OHVA3VeXA
2016-10-06 11:26:29 +08:00
JW Wang b38758f54c Bug 1308071. Part 1 - Change the type of MDSM::mInfo to Maybe<MediaInfo>. r=kaku
MozReview-Commit-ID: 4rJfO1w9jYr
2016-10-06 11:25:24 +08:00
JW Wang 637fac9190 Bug 1308066 - remove mLowDataThresholdUsecs. r=kikuo
MozReview-Commit-ID: ZM2v6rsX2U
2016-10-05 16:17:17 +08:00
JW Wang 5e563ff354 Bug 1308065 - move mBufferingWait into BufferingState. r=kikuo
MozReview-Commit-ID: 9xs2OKcmg95
2016-10-05 16:15:17 +08:00
JW Wang 2e1b597346 Bug 1307699. Part 9 - replace mCurrentSeek with mSeekJob. r=kaku
MozReview-Commit-ID: KJVP7BExVEm
2016-10-05 15:33:44 +08:00
JW Wang 2d8b7f8140 Bug 1307699. Part 8 - move mCurrentSeek into SeekingState. r=kaku
MozReview-Commit-ID: LXzyK4U01VG
2016-10-05 15:25:56 +08:00
JW Wang e4057d73d0 Bug 1307699. Part 7 - remove null-checks for mSeekTask which is guaranteed to be non-null by Enter(). r=kaku
Also we don't nullify mSeekTask in Exit() because the state object will be deleted soon after Exit().

MozReview-Commit-ID: 9wTJ5yiZbhD
2016-10-05 15:18:31 +08:00
JW Wang da314ce4af Bug 1307699. Part 6 - remove comments that are no longer valid. r=kaku
MozReview-Commit-ID: 3HYk4raLgDh
2016-10-05 15:15:57 +08:00
JW Wang 7e6ed72d21 Bug 1307699. Part 5 - move mSeekTask into SeekingState. r=kaku
MozReview-Commit-ID: AdVCoOPDG4F
2016-10-05 14:59:24 +08:00
JW Wang ce6cdd2d01 Bug 1307699. Part 4 - move DiscardSeekTaskIfExist() into the exit action of SeekingState. r=kaku
MozReview-Commit-ID: 9FDgZLHg8Wj
2016-10-05 14:47:13 +08:00
JW Wang f6f6be8bf7 Bug 1307699. Part 3 - move SeekCompleted() into SeekingState. r=kaku
MozReview-Commit-ID: BNeIC69LEtu
2016-10-05 14:39:26 +08:00
JW Wang ca2cabff7d Bug 1307699. Part 2 - move mSeekTaskRequest into SeekingState. r=kaku
MozReview-Commit-ID: 8FrGqEDgclk
2016-10-05 14:28:26 +08:00
JW Wang cc64a48837 Bug 1307699. Part 1 - move OnSeekTaskResolved/OnSeekTaskRejected into SeekingState. r=kaku
MozReview-Commit-ID: 7n9MSGxduZK
2016-10-05 14:22:54 +08:00
JW Wang cdf4cf1461 Bug 1307356 - Move MDSM::DecodeFirstFrame() into DecodingFirstFrameState. r=kikuo
MozReview-Commit-ID: 9zL76KjBhF7
2016-10-04 15:03:30 +08:00
JW Wang 464d46fff8 Bug 1307677. Part 6 - don't access mMaster after InitiateSeek() which will delete the current state object. r=kaku
MozReview-Commit-ID: HABL22OiLnJ
2016-10-04 17:29:10 +08:00
JW Wang 7912a7a4dc Bug 1307677. Part 5 - move most code of InitiateSeek() into the entry action of SeekingState. r=kaku
MozReview-Commit-ID: 5vHjMoURAXc
2016-10-04 17:18:49 +08:00
JW Wang 4dbe230b02 Bug 1307677. Part 4 - prepare to move most code of InitiateSeek() into the entry action of SeekingState. r=kaku
Note we can't call SetState() because we might need to seek again in the SEEKING state.

MozReview-Commit-ID: 7KYhV5SLbXF
2016-10-04 17:05:39 +08:00
JW Wang 3201782d8e Bug 1307677. Part 3 - move |mCurrentSeek.mPromise.Ensure| out of InitiateSeek(). This makes it easier to move more code into SeekingState. r=kaku
MozReview-Commit-ID: Id4PprPtJdX
2016-10-04 16:55:59 +08:00
JW Wang 1743c91abf Bug 1307677. Part 2 - add some assertion to DecodingFirstFrameState::HandleSeek(). r=kaku
MozReview-Commit-ID: 2RbAHFocwGy
2016-10-04 16:36:42 +08:00
JW Wang 9770a7c600 Bug 1307677. Part 1 - move some code from Seek() to various state objects. r=kaku
MozReview-Commit-ID: Gf51NiU9pZ
2016-10-04 16:33:40 +08:00
Kaku Kuo f54b30d4e6 Bug 1306945 - remove the check of mPlayState in the MDSM::VisibilityChanged(); r=jwwang,kamidphish
MozReview-Commit-ID: JBJJ7dPt64i
2016-10-04 16:10:13 +08:00
JW Wang 02ab5b2346 Bug 1307063. Move MDSM::MaybeFinishDecodeFirstFrame() into DecodingFirstFrameState. r=kikuo
MozReview-Commit-ID: LVLjImUQf26
2016-10-03 17:18:38 +08:00
JW Wang 2014ede76e Bug 1307022. Part 5 - move some code from OnNotDecoded() to various state objects. r=kaku
MozReview-Commit-ID: 1VFK80k6dg2
2016-09-30 17:27:31 +08:00
JW Wang 49306152cc Bug 1307022. Part 4 - move some code from OnVideoDecoded() to various state objects. r=kaku
MozReview-Commit-ID: 1Et6W4b78fG
2016-09-30 16:53:33 +08:00
JW Wang 0a31dbf9c5 Bug 1307022. Part 3 - Use raw pointers to avoid unnecessary ref-counting. r=kaku
MozReview-Commit-ID: 4PsJjpvWAZW
2016-09-30 16:51:12 +08:00
JW Wang ecc51d011e Bug 1307022. Part 2 - move some code from OnAudioDecoded() to various state objects. r=kaku
MozReview-Commit-ID: OgboEaJBdj
2016-09-30 16:45:48 +08:00
JW Wang 860fc6fc84 Bug 1307022. Part 1 - Use raw pointers to avoid unnecessary ref-counting. r=kaku
MozReview-Commit-ID: 5qLfiTv5o95
2016-09-30 16:34:54 +08:00
JW Wang 71ec5ba58a Bug 1306186. Part 6 - check if we can stop prerolling in the entry action of DecodingState. r=kikuo
Chances are we've decoded enough data when entering DecodingState. Otherwis we will never
start playback.

MozReview-Commit-ID: AMdd4xxQt6c
2016-10-03 18:02:57 +08:00
JW Wang f8def49b6b Bug 1306186. Part 5 - add MaybeStopPrerolling() to check if we can stop prerolling. r=kikuo
MozReview-Commit-ID: 15Y5e4DUr4S
2016-10-03 14:04:27 +08:00
JW Wang ef4773f42e Bug 1306186. Part 4 - merge mIsAudioPrerolling and mIsVideoPrerolling into mIsPrerolling. r=kikuo
MozReview-Commit-ID: BFIlaqBwEFZ
2016-09-29 16:10:02 +08:00
JW Wang 5f28f4ab7c Bug 1306186. Part 3 - remove StopPrerolling{Audio,Video}. r=kikuo
Note we remove the calls from OnSeekTask{Resolved,Rejected} because DecodingState will decide whether to reset those flags.

MozReview-Commit-ID: GjWvbxTqXMP
2016-09-29 11:55:34 +08:00
JW Wang 492bf717c7 Bug 1306186. Part 2 - reset prerolling flags in MaybeStartPlayback(). r=kikuo
MozReview-Commit-ID: 8cVfjRAsPk2
2016-09-29 11:34:54 +08:00
JW Wang 99c607a745 Bug 1306186. Part 1 - remove checks for mIsAudioPrerolling and mIsVideoPrerolling from NeedToSkipToNextKeyframe(). r=kikuo
When we reach |isLowOnDecodedAudio = ...|, mMediaSink->IsStarted() must be true which means prerolling is done
and both mIsAudioPrerolling and mIsVideoPrerolling are false.

MozReview-Commit-ID: Bt1dMw692jI
2016-09-29 11:22:36 +08:00
Sebastian Hengst 486301d882 Backed out changeset f0eef1e1acc4 (bug 1306186) for timeouts in mda test /test_background_video_suspend.html on Linux and OS X. r=backout on a CLOSED TREE 2016-10-03 12:54:56 +02:00
Sebastian Hengst 0cd71dfdc3 Backed out changeset e70e297b2942 (bug 1306186) 2016-10-03 12:53:59 +02:00
Sebastian Hengst 1ee9cbeeea Backed out changeset ea57d7034a0d (bug 1306186) 2016-10-03 12:53:55 +02:00
Sebastian Hengst d1bd7bd148 Backed out changeset 1510da178dbd (bug 1306186) 2016-10-03 12:53:51 +02:00
Sebastian Hengst d620adeaf8 Backed out changeset 2b6868859c21 (bug 1306186) 2016-10-03 12:53:47 +02:00
JW Wang 269906472a Bug 1306186. Part 5 - add MaybeStopPrerolling() to check if we can stop prerolling. r=kikuo
MozReview-Commit-ID: 15Y5e4DUr4S
2016-10-03 14:04:27 +08:00
JW Wang 26bb26cfbc Bug 1306186. Part 4 - merge mIsAudioPrerolling and mIsVideoPrerolling into mIsPrerolling. r=kikuo
MozReview-Commit-ID: BFIlaqBwEFZ
2016-09-29 16:10:02 +08:00
JW Wang 8b48c6d102 Bug 1306186. Part 3 - remove StopPrerolling{Audio,Video}. r=kikuo
Note we remove the calls from OnSeekTask{Resolved,Rejected} because DecodingState will decide whether to reset those flags.

MozReview-Commit-ID: GjWvbxTqXMP
2016-09-29 11:55:34 +08:00
JW Wang 9ae811f95f Bug 1306186. Part 2 - reset prerolling flags in MaybeStartPlayback(). r=kikuo
MozReview-Commit-ID: 8cVfjRAsPk2
2016-09-29 11:34:54 +08:00
JW Wang a1fefd2083 Bug 1306186. Part 1 - remove checks for mIsAudioPrerolling and mIsVideoPrerolling from NeedToSkipToNextKeyframe(). r=kikuo
When we reach |isLowOnDecodedAudio = ...|, mMediaSink->IsStarted() must be true which means prerolling is done
and both mIsAudioPrerolling and mIsVideoPrerolling are false.

MozReview-Commit-ID: Bt1dMw692jI
2016-09-29 11:22:36 +08:00