Граф коммитов

354 Коммитов

Автор SHA1 Сообщение Дата
Kaku Kuo 5ab464fd77 Bug 1295440 - Make HTMLMediaElement::SeekToNextFrame() reject promise with meaningful information; r=jwwang
MozReview-Commit-ID: Dgi3Ek8K3bR

--HG--
extra : rebase_source : 58d63933906f676a7e7a5ed85cf7e25e3e87dd16
2016-08-17 10:02:10 +08:00
bechen 931402dd2f Bug 1291629 - Remove RTSP code. r=jwwang
MozReview-Commit-ID: AxaLwO4rTuY

--HG--
extra : rebase_source : f8a5de1be1471238d62b6bbc419b3a45f2590da6
2016-08-10 10:32:25 +08:00
JW Wang 1558178790 Bug 1294636 - Use macro to simplify the member initialization list of MediaDecoder. r=gerald
MozReview-Commit-ID: LdIXPTKuecf

--HG--
extra : rebase_source : 938b8e4efc8d8f89dc75acf17317888a304d5c27
2016-08-12 15:04:49 +08:00
Dan Glastonbury f9a87adc92 Bug 1284177 - P1: Provide observable notification for video suspend. r=jwwang
To support mochitests, report change in video decode suspend state via
events mozentervideosuspend/mozexitvideosuspend.

MozReview-Commit-ID: EwMduLzcMVg

--HG--
extra : rebase_source : 5f1fed90964fae182f06d9fb480491728c5f1c97
2016-07-04 14:35:21 +10:00
Kaku Kuo a6ed727230 Bug 1292091 - Part 2 - replace MaybeResolve(JS::UndefinedHandleValue) with MaybeResolveWithUndefined(); r=bz
MozReview-Commit-ID: KNbxVcCVqts

--HG--
extra : transplant_source : %1D%18%E5%C9o%F0%29%E7%E0%93%EEcR%C7B%3BeX%B3%87
2016-08-09 17:15:13 +08:00
Jean-Yves Avenard 41f815e7fa Bug 1128069: [MSE] P5. Adjust currentTime to end position in MediaDecoder. r=jwwang
The duration in the MediaDecoder is the canonical. It has as such a more up to date value than the mirror.
Under some circumstances, the MDSM may have reached the end of media playback before the duration mirror had time to update. So perform the currentTime adjustment in the MediaDecoder instead.

MozReview-Commit-ID: 1RFr4mT5LpA

--HG--
extra : rebase_source : 3151d86561b53d5d1922c7c16f042792bfd47283
2016-08-08 13:49:51 +10:00
JW Wang 2d84b3c90e Bug 1291633 - Don't call MediaDecoder::SeekingStarted when visibility is Suppressed. r=kaku
MozReview-Commit-ID: 15YOmFCoXGp

--HG--
extra : rebase_source : b5269f7a4883ff08dbfdb797df9eb78334315108
2016-08-03 17:18:54 +08:00
JW Wang 6d1ce3ea1a Bug 1292449. Part 3 - Assert IsShutdown() is false in MediaDecoder::Shutdown(). Shutdown() should be only called once. r=kaku
MozReview-Commit-ID: 6iFKkTTb7qD

--HG--
extra : rebase_source : 773cdf796a11a0ca7b6577c348ec411c422a0342
2016-08-01 16:11:20 +08:00
JW Wang 862e36e74c Bug 1292449. Part 2 - Assert IsShutdown() is false in NotifyBytesDownloaded(). r=jya
1. Called from SourceBuffer::AppendDataCompletedWithSuccess() where mMediaSource->GetDecoder() is not null.
2. Called from MediaDecoder::ResourceCallback::NotifyBytesDownloaded() which is disconnected in Shutdown().

MozReview-Commit-ID: 103pxZP02Bb

--HG--
extra : rebase_source : 72e8a9c29d5ca6a4932de3a119497b05bfadbe68
2016-08-01 16:01:16 +08:00
JW Wang 63442be770 Bug 1292449. Part 1 - Assert IsShutdown() is false in NotifyDataArrived(). r=jya
1. Called from SourceBuffer::AppendDataCompletedWithSuccess() where mMediaSource->GetDecoder() is not null so this must happen before Shutdown().
2. Called from SourceBuffer::Ended() where mMediaSource->GetDecoder() is not null.
3. Called from MediaDecoder::ResourceCallback::TimerCallback() which is canceled in Disconnect().

MozReview-Commit-ID: 5dqVuOcrABy

--HG--
extra : rebase_source : a134f552c4fae2317cbf93dc1e861199d4c91346
2016-08-01 15:58:10 +08:00
JW Wang aace2f0c8d Bug 1290809 - Remove MediaDecoder::IsEndedOrShutdown(). r=gerald
MozReview-Commit-ID: 4XUcJyQlmfk

--HG--
extra : rebase_source : fc2a044ca2776744ef0fff32300faf647666e73c
2016-08-01 15:22:32 +08:00
JW Wang 8ce157e06f Bug 1290364 - clear mOwner in Shutdown(). r=cpearce
MozReview-Commit-ID: 2CsYKcSrEOJ

--HG--
extra : rebase_source : 3fd60ea1dbbf57c168fa8cebb9bb5594ee8c19fb
2016-07-29 14:44:22 +08:00
Carsten "Tomcat" Book 0cd188453a Merge mozilla-central to autoland 2016-08-05 12:15:20 +02:00
JW Wang cff471d7a8 Bug 1283724 - throttle notifications from stochastic network activity to save computation of buffer ranges. r=jya
MozReview-Commit-ID: BRBv2Flqu3u

--HG--
extra : rebase_source : fe28566c79f2f31a5054e4cda35d96c938985299
2016-08-01 14:39:39 +08:00
ctai b7fcb47572 Bug 1201363 - Replace VideoFrameContainer with MediaStreamVideoSink in MSG. r=jesup
Replace the pointer of VideoFrameContainer with the pointer of MediaStreamVideoSink.

MozReview-Commit-ID: 5bqEMpemwuR

--HG--
extra : transplant_source : %008z%D8W%EE%87%8E%E9/%2CT%26%EBvo%AE%099%A6
2016-05-27 14:33:48 +08:00
JW Wang 32c54a1d7b Bug 1290028 - Remove the check for IsShutdown() from MediaDecoder::OwnerHasError(). r=gerald
MozReview-Commit-ID: Cg5UoFngxFr

--HG--
extra : rebase_source : afece4f66454cf7b2c68ede4b5802fc445be96fa
2016-07-28 17:21:09 +08:00
JW Wang 64c1909e96 Bug 1290780. Part 9 - Assert IsShutdown() is false in DurationChanged(). r=kaku
1. The watch manager disconnect callbacks in Shutdown().
2. SetExplicitDuration() asserts !IsShutdown().
3. SetInfinite() asserts !IsShutdown().

MozReview-Commit-ID: FwWf4m5OAOP

--HG--
extra : rebase_source : 374e9c4ef31abf56f0be76826c98cd852bef1e7a
2016-07-28 16:57:09 +08:00
JW Wang e7c35e7871 Bug 1290780. Part 5 - Assert IsShutdown() is false in PlaybackEnded() since the callback is disconnect in Shutdown(). r=kaku
MozReview-Commit-ID: hYJjKZFhA6

--HG--
extra : rebase_source : 706b770c7f11fa53cdb2bb9f9eeae89a146601a6
2016-07-28 15:16:32 +08:00
JW Wang e073bd7c27 Bug 1290780. Part 4 - Assert IsShutdown() is false in SeekingStarted() since the callback is disconnected in Shutdown(). r=kaku
MozReview-Commit-ID: 7Q9EAhy3O7w

--HG--
extra : rebase_source : a68a9d50d0c2c669dd4c5ae0897e06c1538811d1
2016-07-28 15:13:31 +08:00
JW Wang 3d1ea356e3 Bug 1290780. Part 3 - Assert IsShutdown() is false in UpdateLogicalPositionInternal(). r=kaku
1. It is called from OnSeekResolved() which asserts !IsShutdown().
2. It is called from UpdateLogicalPosition which asserts !IsShutdown().

MozReview-Commit-ID: J8iuHdUamLS

--HG--
extra : rebase_source : 97215383aa7c409f8b63f5a6726b81df53252227
2016-07-28 15:09:03 +08:00
JW Wang b6a261b9f3 Bug 1290780. Part 2 - Assert IsShutdown() is false in MediaDecoder::OnSeekResolved() since the seek request is disconected in Shutdown(). r=kaku
MozReview-Commit-ID: Cc0iF3Lc7d2

--HG--
extra : rebase_source : 107592fc8f3a5a301599f43ebbc1c7c7c708f017
2016-07-28 15:04:36 +08:00
JW Wang 6c38af47f2 Bug 1289976. Part 10 - Remove the IsShutdown() check from MediaDecoder::UpdateDormantState(). r=kaku
1. It is called from DormantTimerExpired(). The timer is canceled in Shutdown().
2. It is called from NotifyOwnerActivityChanged() which happens before Shutdown().
3. It is called from Play() which happens before Shutdown().
4. It is called from Seek() which happens before Shutdown().

MozReview-Commit-ID: EnKHF61FBXf

--HG--
extra : rebase_source : 04df59b6722c8340e5163a00eb916442799cfcf1
2016-07-27 10:56:46 +08:00
JW Wang 6ca3a55b72 Bug 1289976. Part 9 - Remove the IsShutdown() check from MediaDecoder::StartDormantTimer(). r=kaku
We don't need to check IsShutdown() which is a subset of |mPlayState != PLAY_STATE_PAUSED && !IsEnded()|.

MozReview-Commit-ID: BjYoLOLuPfC

--HG--
extra : rebase_source : 0d04b30a8bf955faed4907f77f0da29e0ccc011d
2016-07-27 10:52:01 +08:00
JW Wang 31dcc3816b Bug 1289976. Part 7 - Remove the IsShutdown() check from MediaDecoder::Seek(). r=kaku
1. It is called from DurationChanged() which returns early when IsShutdown() is true.
2. It is called from Play() when IsEnded() is true.

MozReview-Commit-ID: Ixy5OMZHxIm

--HG--
extra : rebase_source : 4cd7229084c6af8b7123ee6c85156ef4932308f3
2016-07-27 10:49:14 +08:00
JW Wang f3ffeca57a Bug 1289976. Part 6 - Remove the IsShutdown() check from MediaDecoder::RemoveMediaTracks(). r=kaku
1. It is called from ChangeState() when IsEnded() is true.
2. It is called from OnMetadataUpdate(). The callback is disconnected in Shutdown().

MozReview-Commit-ID: 8m4jtcl91hT

--HG--
extra : rebase_source : 0988128ec6d05f07ab7b072cc70a9c2970c829c5
2016-07-27 10:44:43 +08:00
JW Wang a2d26a630a Bug 1289976. Part 5 - Remove the IsShutdown() check from MediaDecoder::Pause(). r=kaku
1. Pause() is called from HTMLMediaElement and happens before Shutdown().
2. Pause() is called from SetPlaybackRate() which is called from HTMLMediaElement.

MozReview-Commit-ID: DDr7Bg8jkF2

--HG--
extra : rebase_source : 8b8a4fdc914d0bce7572d9a1ccb0f530bdba062c
2016-07-27 10:42:20 +08:00
JW Wang 348c35b5dd Bug 1289976. Part 4 - Remove the IsShutdown() check from MediaDecoder::NotifyOwnerActivityChanged() which happens before Shutdown(). r=kaku
MozReview-Commit-ID: 9tWLW4JE0Uv

--HG--
extra : rebase_source : 9f33359f5d8833a8f90319303a96cf029460f3ac
2016-07-27 10:38:25 +08:00
JW Wang 00ce40fb6c Bug 1289976. Part 3 - Remove the IsShutdown() check from MediaDecoder::FireTimeUpdate(). r=kaku
FireTimeUpdate() is only called from UpdateLogicalPositionInternal() which returns early when IsShutdown() is true.

MozReview-Commit-ID: 4GZwrI85aXj

--HG--
extra : rebase_source : 9d7cbd571fd794369c833723ea5fc50a26380e51
2016-07-27 10:36:09 +08:00
JW Wang 61a6cb705b Bug 1289976. Part 2 - Remove the IsShutdown() check from MediaDecoder::DumpDebugInfo() which happens before Shutdown(). r=kaku
MozReview-Commit-ID: HU3ybjFZMsE

--HG--
extra : rebase_source : 15d9adb47be449fdaca6a37587e70ff4f1d013bf
2016-07-27 10:33:50 +08:00
JW Wang 0a748cd015 Bug 1289976. Part 1 - Remove the IsShutdown() check from MediaDecoder::ConstructMediaTracks(). r=kaku
1. ConstructMediaTracks() is called from ChangeState() when |mPlayState == PLAY_STATE_PLAYING|.
2. ConstructMediaTracks() is called from MetadataLoaded() which asserts |!IsShutdown()|.

MozReview-Commit-ID: 6OaPYcCOCii

--HG--
extra : rebase_source : 9db9e841fe8a0d797a39cd527abf4f4e95b67131
2016-07-27 10:31:14 +08:00
JW Wang 3ac12f3e3d Bug 1289993. Part 1 - Disconnect seek requests when shutting down MediaDecoder. r=kaku
MozReview-Commit-ID: 6av1OiJatCr

--HG--
extra : rebase_source : 66891c09e3c35029e7d8f1e605b026968019e353
2016-07-28 14:28:26 +08:00
Carsten "Tomcat" Book 119eea6bdd Backed out changeset 9966bbe6b534 (bug 1289976) for assertion failures in MediaDecoder.h 2016-07-30 19:52:46 +02:00
Carsten "Tomcat" Book b5951bbc7f Backed out changeset 2cb402f74a51 (bug 1289976) 2016-07-30 19:52:32 +02:00
Carsten "Tomcat" Book eda09c15e0 Backed out changeset 7368d06f677b (bug 1289976) 2016-07-30 19:52:31 +02:00
Carsten "Tomcat" Book a1b168271d Backed out changeset 93a556b5e244 (bug 1289976) 2016-07-30 19:52:31 +02:00
Carsten "Tomcat" Book 169eb9f17a Backed out changeset bac5f65e6931 (bug 1289976) 2016-07-30 19:52:30 +02:00
Carsten "Tomcat" Book dfea28ba46 Backed out changeset ce6b4f84c86e (bug 1289976) 2016-07-30 19:52:29 +02:00
Carsten "Tomcat" Book 1938c88013 Backed out changeset cd25be005e38 (bug 1289976) 2016-07-30 19:52:28 +02:00
Carsten "Tomcat" Book e880c3527f Backed out changeset 2931db85cc99 (bug 1289976) 2016-07-30 19:52:26 +02:00
Carsten "Tomcat" Book 1f40b92079 Backed out changeset ba01eb85da0a (bug 1289976) 2016-07-30 19:52:25 +02:00
JW Wang 1e61811c7e Bug 1289976. Part 10 - Remove the IsShutdown() check from MediaDecoder::UpdateDormantState(). r=kaku
1. It is called from DormantTimerExpired(). The timer is canceled in Shutdown().
2. It is called from NotifyOwnerActivityChanged() which happens before Shutdown().
3. It is called from Play() which happens before Shutdown().
4. It is called from Seek() which happens before Shutdown().

MozReview-Commit-ID: EnKHF61FBXf

--HG--
extra : rebase_source : 04df59b6722c8340e5163a00eb916442799cfcf1
2016-07-27 10:56:46 +08:00
JW Wang 62af9d2687 Bug 1289976. Part 9 - Remove the IsShutdown() check from MediaDecoder::StartDormantTimer(). r=kaku
We don't need to check IsShutdown() which is a subset of |mPlayState != PLAY_STATE_PAUSED && !IsEnded()|.

MozReview-Commit-ID: BjYoLOLuPfC

--HG--
extra : rebase_source : 0d04b30a8bf955faed4907f77f0da29e0ccc011d
2016-07-27 10:52:01 +08:00
JW Wang 7bdd2a6dd4 Bug 1289976. Part 7 - Remove the IsShutdown() check from MediaDecoder::Seek(). r=kaku
1. It is called from DurationChanged() which returns early when IsShutdown() is true.
2. It is called from Play() when IsEnded() is true.

MozReview-Commit-ID: Ixy5OMZHxIm

--HG--
extra : rebase_source : 4cd7229084c6af8b7123ee6c85156ef4932308f3
2016-07-27 10:49:14 +08:00
JW Wang 194e23bdb4 Bug 1289976. Part 6 - Remove the IsShutdown() check from MediaDecoder::RemoveMediaTracks(). r=kaku
1. It is called from ChangeState() when IsEnded() is true.
2. It is called from OnMetadataUpdate(). The callback is disconnected in Shutdown().

MozReview-Commit-ID: 8m4jtcl91hT

--HG--
extra : rebase_source : 0988128ec6d05f07ab7b072cc70a9c2970c829c5
2016-07-27 10:44:43 +08:00
JW Wang c4b1ec5baf Bug 1289976. Part 5 - Remove the IsShutdown() check from MediaDecoder::Pause(). r=kaku
1. Pause() is called from HTMLMediaElement and happens before Shutdown().
2. Pause() is called from SetPlaybackRate() which is called from HTMLMediaElement.

MozReview-Commit-ID: DDr7Bg8jkF2

--HG--
extra : rebase_source : 8b8a4fdc914d0bce7572d9a1ccb0f530bdba062c
2016-07-27 10:42:20 +08:00
JW Wang 97dff3f268 Bug 1289976. Part 4 - Remove the IsShutdown() check from MediaDecoder::NotifyOwnerActivityChanged() which happens before Shutdown(). r=kaku
MozReview-Commit-ID: 9tWLW4JE0Uv

--HG--
extra : rebase_source : 9f33359f5d8833a8f90319303a96cf029460f3ac
2016-07-27 10:38:25 +08:00
JW Wang d2d8295bf6 Bug 1289976. Part 3 - Remove the IsShutdown() check from MediaDecoder::FireTimeUpdate(). r=kaku
FireTimeUpdate() is only called from UpdateLogicalPositionInternal() which returns early when IsShutdown() is true.

MozReview-Commit-ID: 4GZwrI85aXj

--HG--
extra : rebase_source : 9d7cbd571fd794369c833723ea5fc50a26380e51
2016-07-27 10:36:09 +08:00
JW Wang 294fff9de7 Bug 1289976. Part 2 - Remove the IsShutdown() check from MediaDecoder::DumpDebugInfo() which happens before Shutdown(). r=kaku
MozReview-Commit-ID: HU3ybjFZMsE

--HG--
extra : rebase_source : 15d9adb47be449fdaca6a37587e70ff4f1d013bf
2016-07-27 10:33:50 +08:00
JW Wang a9482dfc9c Bug 1289976. Part 1 - Remove the IsShutdown() check from MediaDecoder::ConstructMediaTracks(). r=kaku
1. ConstructMediaTracks() is called from ChangeState() when |mPlayState == PLAY_STATE_PLAYING|.
2. ConstructMediaTracks() is called from MetadataLoaded() which asserts |!IsShutdown()|.

MozReview-Commit-ID: 6OaPYcCOCii

--HG--
extra : rebase_source : 9db9e841fe8a0d797a39cd527abf4f4e95b67131
2016-07-27 10:31:14 +08:00
JW Wang 8e6ae76d98 Bug 1289334 - HTMLMediaElement::ResetConnectionState() should shut down the decoder. r=cpearce
MozReview-Commit-ID: 7IZ2Y4Da7xZ

--HG--
extra : rebase_source : 492b0caa52fca17d2c399c2f0e2c426c6f55872f
2016-07-26 16:37:45 +08:00