Commit Graph
1183 Commits
Author SHA1 Message Date
Kaku Kuo cdcba11aa3 Bug 1378085 p5 - override HandleWaitingForAudio(), HandleAudioCanceled(), and HandleEndOfAudio(); r=jwwang
MozReview-Commit-ID: Jyw3yyutGjn
2017-07-06 11:47:21 +08:00
Kaku Kuo 46f6a62a99 Bug 1378085 p4 - override HandleAudioDecoded(); r=jwwang
MozReview-Commit-ID: BmxePYCesTF
2017-07-06 11:45:07 +08:00
Kaku Kuo eb055f5ab3 Bug 1378085 P3 - override Exit(); r=jwwang
MozReview-Commit-ID: 2NW9d4hu3bT
2017-07-06 11:42:27 +08:00
Kaku Kuo 26e8a0f446 Bug 1378085 P2 - override Enter(); r=jwwang
MozReview-Commit-ID: AuwpbiaQzML
2017-07-06 11:37:51 +08:00
Kaku Kuo c5786fc72b Bug 1378085 P1 - create VideoOnlySeekingState; r=jwwang
MozReview-Commit-ID: 2O6CsqSDKnG
2017-07-03 15:32:39 +08:00
Kaku Kuo 17a6618e51 Bug 1378085 P0 - update playback position only if event visibility is observable; r=jwwang
MozReview-Commit-ID: 4G436mptS1w
2017-07-06 10:59:16 +08:00
Bill McCloskey ce42826bdf Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Carsten "Tomcat" Book 238bf154d5 Backed out changeset 4f6302a98ae4 (bug 1372405) 2017-06-21 13:59:26 +02:00
Bill McCloskey 67e8af4720 Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-20 21:44:11 -07:00
Carsten "Tomcat" Book bbe9441993 Backed out changeset 9846de3bd954 (bug 1372405) 2017-06-20 08:27:02 +02:00
Bill McCloskey f69608368b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-19 22:25:47 -07:00
Kaku Kuo b1f54144d0 Bug 1371188 P3 - remove DecodingState::NeedToSkipToNextKeyframe(); r=jya
MozReview-Commit-ID: CTa7Auzokg6
2017-06-12 16:24:18 +08:00
Kaku Kuo 744982ae2d Bug 1371188 P2 - remove MediaDecoderReader::RequestVideoData()'s aSkipToNextKeyframe parameter; r=jya
It is not used.

MozReview-Commit-ID: EDPhN6RzKN0
2017-06-12 16:06:11 +08:00
JW Wang 85512fd5f0 Bug 1371202. P2 - don't release decoders if we are looping since we will need them soon. r=jya
MozReview-Commit-ID: L1hOBytfENK
2017-06-08 11:42:43 +08:00
JW Wang e11983b26f Bug 1371202. P1 - plumb the 'loop' attribute into MDSM. r=jya
MozReview-Commit-ID: DtsaXmtQw76
2017-06-08 12:03:10 +08:00
JW Wang 8e30557b2e Bug 1371515. P5 - remove mIsShutdown which is not read at all. r=kaku
MozReview-Commit-ID: H8MZSoG9wCV
2017-06-09 11:47:53 +08:00
JW Wang 2dea9c82bf Bug 1371515. P3 - remove IsShutdown() which now has no callers. r=kaku
MozReview-Commit-ID: Te3F7WJ8iF
2017-06-09 11:43:51 +08:00
JW Wang 91df602749 Bug 1371515. P2 - remove the check from DecodeError(). r=kaku
The same reason as P1. ShutdownState::Enter() disconnects callbacks to prevent
DecodeError() from being called during shutdown.

MozReview-Commit-ID: EFZiE2zkcUZ
2017-06-09 11:42:59 +08:00
JW Wang 8a7b78af6f Bug 1371515. P1 - remove the |IsShutdown()| check from Seek() which is already handled by ShutdownState. r=kaku
MozReview-Commit-ID: 5V7xCGCsh5j
2017-06-09 11:41:20 +08:00
Kaku Kuo 6f692ef064 Bug 1349253 - modify the assertion; r=jwwang
While MDSM calls MFR::Seek(), MFR tries to do video seek first and then the audio seek.

Video-seek and audio-seek are applied sequentially, and if something wrong in video-seek,
MFR discards the whole seek operation without applying audio-seek.

video    | audio     |
waiting  | waiting   | What MDSM receives
-----------------------------------------------------------------------------
   X     |    X      | resove mSeekRequest
-----------------------------------------------------------------------------
   O     |    X      | reject mSeekRequest with type=VIDEO, error=WAITING
-----------------------------------------------------------------------------
   X     |    O      | reject mSeekRequest with type=AUDIO, error=WAITING
-----------------------------------------------------------------------------
   O     |    O      | reject mSeekRequest with type=VIDEO, error=WAITING
-----------------------------------------------------------------------------

So, here, AccurateSeekingState::OnSeekRejected() has a unified code to handle
WAITING_FOR_DATA error for both video and audio type, and it uses the
aReject.mType variable to distinguish different types.

But, it mixes the assertions. We should also apply assertions according to the
type that is in concern.



MozReview-Commit-ID: F7RpnFghcKk
2017-06-07 18:52:36 +08:00
JW Wang 147ea77d9e Bug 1370130 - dormant timeout should take precedence over preload='metadata'. r=kaku
We don't want to enter dormant when preload is 'metadata' if the timeout is negative (dormant is disabled).

MozReview-Commit-ID: 4KGAmtkZpH5
2017-06-05 10:38:43 +08:00
Alastor Wu b976c8d030 Bug 1367980 - don't release decoder in complete state on Fennec. r=jwwang
On Android, the life cycle of graphic buffer is equal to Android's codec, and
it would be released immediately if we shutdown the decoder.

Since the buffer has been release, the memory we access is totally meaningless.
The result is we would render the black image on the screen.

In addition, I suspect this issue might be one of the root cause which results
in lots of timeout for media mochitest, so I would like to land this patch first,
and then do the follow-up in bug1367983.

MozReview-Commit-ID: 5eZph6MItZs
2017-05-26 15:42:20 +08:00
JW Wang 5adf485f5d Bug 1359058: P1. handle EOS during seeking. r=jya
MozReview-Commit-ID: DPT3t1pi6o1
2017-04-26 11:32:50 +08:00
Kaku Kuo bd0b55ab1d Bug 1367701 P3 - modify comments; r=jwwang
MozReview-Commit-ID: 2Ky9FLjUblW
2017-05-25 15:43:19 +08:00
Kaku Kuo e3a9c9751d Bug 1367701 P2 - transit to NextFrameSeekingState in Transit(); r=jwwang
MozReview-Commit-ID: FdPHn6uGubq
2017-05-25 15:40:59 +08:00
Kaku Kuo 7d6e434276 Bug 1367701 P1 - add a virtual Transit() method and remove SeekJob:mTransition; r=jwwang
MozReview-Commit-ID: L0HnYfTdL57
2017-05-25 15:09:10 +08:00
Kaku Kuo 8d393a7106 Bug 1365190 P2 - don't assert NeedMoreVideo() in audio events; r=jwwang
The assertion fails if we call SeekToNextFrame() on a video which has done
video decoding but keeps decoding audio.

MozReview-Commit-ID: F9qpfYI2Ajo
2017-05-25 14:03:39 +08:00
Kaku Kuo e917c41bc2 Bug 1365190 P1 - NextFrameSeekingState should be aware of the existing video data request; r=jwwang
MozReview-Commit-ID: 3deIwYbQ3BM
2017-05-25 12:06:34 +08:00
Jean-Yves Avenard 87572cac3d Bug 1366362: P3. Have seekToNextFrame properly handle dormant mode. r=jwwang
When coming out of dormant mode, we first perform an accurate seek, that will ensure the MediaDecoderReader has been reinitialised correctly.

MozReview-Commit-ID: 2rWgu9AGAcY
2017-05-24 09:11:10 +02:00
Jean-Yves Avenard 9612bd241d Bug 1366362: P2. Change access restrictions of members. r=jwwang
We try to make the definition in the same order as the base class and with the same access.

We make DoSeek protected as we'll need it in the next change.

MozReview-Commit-ID: KAn1Jj3mAB7
2017-05-24 08:05:29 +02:00
Jean-Yves Avenard 9b5fe5ec0a Bug 1366362: P1. Fix style. r=gerald
MozReview-Commit-ID: 3eDT8kY1tCZ
2017-05-22 09:33:18 +02:00
JW Wang 4ec7d6a1fd Bug 1365524. P2 - replace use of nsAutoPtr with UniquePtr. r=jya
MozReview-Commit-ID: 8zR7ZRXl1ON
2017-05-18 16:35:49 +08:00
JW Wang 8512564828 Bug 1365524. P1 - Make MetadataHolder non-ref-counted. r=jya
Since MozPromise supports move-only types, we don't need to make MetadataHolder a ref-counted type.

MozReview-Commit-ID: E7KJuFQNWxe
2017-05-18 10:20:44 +08:00
JW Wang be5dc21773 Bug 1365520. P2 - remove mMetadataTags for we can pass |aMetadata->mTags| without storing it. r=kaku
MozReview-Commit-ID: BcPwBTmXMZS
2017-05-17 16:04:33 +08:00
JW Wang 804652d1c7 Bug 1365520. P1 - remove MDSM::mSentLoadedMetadataEvent and MDSM::EnqueueLoadedMetadataEvent(). r=kaku
The current call flow ensures decoding metadata only happens at most once
and therefore EnqueueLoadedMetadataEvent() will only be called at most once.
We don't need the mSentLoadedMetadataEvent flag.

MozReview-Commit-ID: E95jtRrKupw
2017-05-17 16:00:46 +08:00
JW Wang 5f4ffc9dd2 Bug 1362910. P2 - fix callers. r=gerald
Since RefPtr<T>&& can't be converted to T* implicitly, we need to change
T* to RefPtr<T> in resolve/reject callbacks to make it compile again.

We should review the changes later to look for the opportunity to
optimize away unnecessary AddRef/Release pairs.

MozReview-Commit-ID: 22rHQ8dhxJv
2017-05-11 08:30:39 +08:00
JW Wang 4a39105d5a Bug 1361756 - don't reset decoders when entering dormant. r=kaku
Resetting decoders somehow cause the WebM demuxer to seek and initiate
network download which is blocked by the site for invisible media elements.

See comment 5 for how this blocks playback.

We work around this issue by not resetting decoders when entering dormant
since we will reset them anyway during seeking when exiting dormant.

This change is a workaround for this bug though. However it is also an
improvement for the dormant state in general since it removes unnecessary
works to improve performance.

MozReview-Commit-ID: KtbpQlrO8J
2017-05-05 11:14:46 +08:00
Chris Pearce 1857e3bb8e Bug 1361629 - Only call timeBeginPeriod/timeEndPeriod when media playback starts/stops. r=jwwang
MozReview-Commit-ID: B3YCoGMY5Ab
2017-05-04 16:54:19 +12:00
Sebastian Hengst c0c0daeb09 Backed out changeset a39a98ffb29b (bug 1359058) for failing mochitest dom/canvas/test/webgl-conf/generated/test_conformance__textures__misc__texture-npot-video.html on Windows. r=backout 2017-05-05 00:34:05 +02:00
JW Wang 0dd6e48a0c Bug 1359058: P1. handle EOS during seeking. r=jya
MozReview-Commit-ID: DPT3t1pi6o1
2017-04-26 11:32:50 +08:00
JW Wang bed26355de Bug 1361263 - allow InvokeAsync() to accept a member function which is pass-by-reference. r=gerald
StoreCopyPassByRRef<> ensures a copy is stored in the runnable.
We don't have to worry about the concern of bug 1300476.

MozReview-Commit-ID: DHqlzlVLBFV
2017-04-30 15:37:19 +08:00
Kaku Kuo 588b5bfa9e Bug 1358057 P1 - don't use fastseek while resuming video decoder to the last frame; r=jwwang
MozReview-Commit-ID: Luat2cPO33F
2017-04-25 16:01:43 +08:00
JW Wang 90a0fb1db0 Bug 1359309. P1 - give mozilla::TaskQueue a name which will be useful in debugging Dispatch() failures. r=jya
MozReview-Commit-ID: 5FAVNo32fl7
2017-04-25 14:57:55 +08:00
JW Wang c4ccd10c57 Bug 1358972. P2 - remove MediaDecoder::mEstimatedDuration and its friends which is never modified. r=kaku
MozReview-Commit-ID: 7W331tookXV
2017-04-17 17:20:06 +08:00
JW Wang d24c707be3 Bug 1359715 - let functions in MediaData.h take TimeUnit instead of int64_t. r=kaku
We want to replace the use of int64_t for microseconds by TimeUnit
whenever possible since int64_t is ambiguous which could be microseconds
or milliseconds.

MozReview-Commit-ID: LRz9d4yKBYJ
2017-04-24 17:33:05 +08:00
JW Wang b447b29002 Bug 1356530 - Change the type of MediaData::mTime to TimeUnit since int64_t is ambiguous. r=kaku
MozReview-Commit-ID: 4bVeqIuWO2O
2017-04-14 17:13:36 +08:00
JW Wang 49c8a33ce8 Bug 1356502. P2 - let VideoData::UpdateTimestamp() take a TimeUnit instead of ambiguous int64_t. r=gerald
MozReview-Commit-ID: G17uLSrjBrR
2017-04-14 14:17:04 +08:00
JW Wang 3d95d557fb Bug 1356502. P1 - let MediaDatra::GetEndTime() return a TimeUnit instead of ambiguous int64_t. r=gerald
MozReview-Commit-ID: DBQELBs32Ad
2017-04-14 14:14:08 +08:00
Kaku Kuo 9032c1c47b Bug 1355031 P2 - make sure that VideoOnlySeekBegin and VideoOnlySeekCompleted are always dispatched in pair; r=jwwang
MozReview-Commit-ID: FV03vlMtjS3
2017-04-10 17:33:38 +08:00
Kaku Kuo 6b214a05f3 Bug 1355031 P1 - adjust the event order; r=jwwang
(EnterVideoSuspend/ExitVideoSuspend) event pair and (VideoOnlySeekBegin/VideoOnlySeekCompleted) event pair should not interleave each other.

MozReview-Commit-ID: HehMIls11nc
2017-04-10 17:32:39 +08:00