Kilik Kuo
0721258413
Bug 1393336 - Remove WaitForCDM state from MDSM. r=jwwang,jya
...
MozReview-Commit-ID: 7XofvBZTerH
2017-08-25 17:11:14 +08:00
JW Wang
28ca47cd53
Bug 1391142. P2 - remove MDSM::mResource and related functions. r=gerald
...
MozReview-Commit-ID: 4od7b8YNrMh
2017-08-17 11:52:29 +08:00
JW Wang
5f8a9ac4d1
Bug 1391142. P1 - dispatch IsLiveStream changes from MediaDecoder to MDSM. r=gerald
...
This allows us to remove the dependency on MediaResource from MDSM in P2.
MozReview-Commit-ID: I46fWXfnGQK
2017-08-17 11:48:08 +08:00
Matthew Gregan
2a28c36ef9
Bug 1388236 - Remove B2G-only AudioChannel code from media playback. r=jwwang
2017-08-10 13:00:07 +12:00
JW Wang
efabf428f3
Bug 1388228. P3 - following P2, we can now remove unused code and canonicals. r=gerald
...
Note we remove the log in BufferingState::Enter() which prevents us from
removing ChannelMediaResource related code from MDSM. We can add it back
in the future after the refactoring.
MozReview-Commit-ID: B94iOI0bTXC
2017-08-04 17:56:28 +08:00
JW Wang
e10067c40c
Bug 1388228. P2 - cache the result of CanPlayThrough() and mirror it to MDSM. r=gerald
...
So we don't duplicate the code of calculating CanPlayThrough from
download rate and playback rate in MediaDecoder.
MozReview-Commit-ID: 7M5JAuUxFFc
2017-08-04 17:38:20 +08:00
JW Wang
a021b4659b
Bug 1385699. P2 - rewrite the code of calculating duration in MDSM. r=cpearce
...
We pretty much rewrite the whole logic of duration calculation of MDSM.
The new logic is much simpler for we have only one duration to manage
which is mDuration. Below is the details of the code changes:
1. remove the mExplicitDuration mirror since it should be handled in MediaDecoder.
2. remove mObservedDuration and mDuration will take its place.
3. mDuration is updated from:
a. metadata
b. playback position as playback progresses.
c. buffer ranges.
4. change mDuration to be finite when playback reaches the end.
MozReview-Commit-ID: 1EmlWvmw1R2
2017-08-01 13:54:14 +08:00
JW Wang
02b5cba0ef
Bug 1385748. P2 - remove MDSM::mNextPlayState. r=kaku
...
Following P1, mNextPlayState is no longer used.
MozReview-Commit-ID: 5ABEYMQ5G9l
2017-07-31 10:17:36 +08:00
JW Wang
1204e423d8
Bug 1385748. P1 - remove MDSM::IsLogicallyPlaying() which has no callers at all. r=kaku
...
MozReview-Commit-ID: IfpzTMVtgf6
2017-07-31 10:15:47 +08:00
JW Wang
5780df5a62
Bug 1384836 - rename MediaDecoderReaderWrapper to ReaderProxy. r=kaku
...
MozReview-Commit-ID: 7WeNblTnTCG
2017-07-27 14:49:57 +08:00
JW Wang
f1ae66b766
Bug 1316211. P16 - remove MediaDecoderReader completely and fix includes. r=gerald
...
MozReview-Commit-ID: AGNyyh4kt3e
2017-07-20 09:56:08 +08:00
JW Wang
03567250c1
Bug 1316211. P14 - move members from MDR to MFR. r=gerald
...
MozReview-Commit-ID: EwdteoEY1uS
2017-07-19 17:34:05 +08:00
JW Wang
364a0ea986
Bug 1316211. P13 - replace use of MediaDecoderReader with MediaFormatReader. r=gerald
...
We will remove MediaDecoderReader in the future.
MozReview-Commit-ID: BaCRXleKK5a
2017-07-19 17:01:32 +08:00
JW Wang
5fb3b49ec2
Bug 1316211. P4 - remove CheckSlowDecoding() and friends since IsAsync() now always returns true. r=gerald
...
MozReview-Commit-ID: 3dOa0aUQ0kM
2017-07-19 14:19:40 +08:00
Kaku Kuo
c5786fc72b
Bug 1378085 P1 - create VideoOnlySeekingState; r=jwwang
...
MozReview-Commit-ID: 2O6CsqSDKnG
2017-07-03 15:32:39 +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
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
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
779ef9ac3e
Bug 1371515. P4 - remove CanonicalIsShutdown() which has no callers at all. r=kaku
...
MozReview-Commit-ID: AVWtCVFflho
2017-06-09 11:45:20 +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
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
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
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
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
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
Kaku Kuo
96351de5ff
Bug 1354465 P1 - dispatch a mozvideoonlyseekbegin event while starting a video-only seek; r=jwwang
...
MozReview-Commit-ID: 6PjQs88vUV2
2017-04-07 16:11:34 +08:00
JW Wang
d8efb886ee
Bug 1353607. P9 - change the underlying type of mCurrentPosition to TimeUnit. r=kikuo
...
MozReview-Commit-ID: ffquOIFlp3
2017-03-28 18:13:22 +08:00
JW Wang
bcfe2a159b
Bug 1353607. P8 - use TimeUnit in DispatchSetFragmentEndTime(). r=kikuo
...
MozReview-Commit-ID: IBLT0j7yMLK
2017-03-28 18:01:23 +08:00
JW Wang
b3d4c8b3af
Bug 1353607. P5 - change the type of mDecodedAudioEndTime/mDecodedVideoEndTime to TimeUnit. r=kikuo
...
MozReview-Commit-ID: 2bVQD5BViU4
2017-03-28 17:20:17 +08:00
JW Wang
1ab2ec60d3
Bug 1353607. P4 - change the type of mFragmentEndTime to TimeUnit. r=kikuo
...
MozReview-Commit-ID: FhUZMpXokSt
2017-03-28 17:14:01 +08:00
JW Wang
c89dafdd13
Bug 1353607. P3 - use TimeUnit in ScheduleStateMachineIn(). r=kikuo
...
MozReview-Commit-ID: 5mfquK9TiDa
2017-03-28 17:10:59 +08:00
JW Wang
fd7e768385
Bug 1353607. P2 - let GetDecodedAudioDuration() return a TimeUnit. r=kikuo
...
MozReview-Commit-ID: 5pLyACshP3e
2017-03-28 16:54:39 +08:00
JW Wang
2e47575870
Bug 1353607. P1 - remove the dead code. r=kikuo
...
MozReview-Commit-ID: 6FPq2ucZde5
2017-03-28 16:49:31 +08:00
JW Wang
c969512705
Bug 1352319. P10 - let GetClock() return a TimeUnit. r=kaku
...
MozReview-Commit-ID: Efl1FemHOmJ
2017-03-28 16:35:24 +08:00
JW Wang
72eb7ebecb
Bug 1352319. P9 - let GetMediaTime() return a TimeUnit. r=kaku
...
MozReview-Commit-ID: 7vrIzeMLP4Z
2017-03-28 16:16:56 +08:00
JW Wang
566435dfca
Bug 1352319. P8 - use TimeUnit in UpdatePlaybackPosition(). r=kaku
...
MozReview-Commit-ID: JkopzDG45Bq
2017-03-28 16:01:55 +08:00
JW Wang
6ae4516f4e
Bug 1352319. P7 - use TimeUnit in UpdatePlaybackPositionInternal(). r=kaku
...
MozReview-Commit-ID: ASzjKhHlhVA
2017-03-28 15:57:38 +08:00
JW Wang
ea20d34466
Bug 1352319. P6 - let AudioEndTime/VideoEndTime return a TimeUnit. r=kaku
...
MozReview-Commit-ID: 6yyVl2RDrPm
2017-03-28 15:50:53 +08:00
JW Wang
c0a53e65a6
Bug 1352319. P4 - move AudioPrerollUsecs/VideoPrerollFrames into DecodingState. r=kaku
...
MozReview-Commit-ID: 3VuDj1TXZV2
2017-03-28 15:38:34 +08:00
JW Wang
c2be4277de
Bug 1352319. P3 - use TimeUnit in HasLowBufferedData(). r=kaku
...
MozReview-Commit-ID: HP7M78yKpww
2017-03-28 15:09:30 +08:00
JW Wang
0f33973878
Bug 1350837. P3 - rename the variable and fix comments. r=kaku
...
MozReview-Commit-ID: JI1sp6f6Xnb
2017-03-28 14:38:30 +08:00
JW Wang
b250622c28
Bug 1350837. P2 - change the type of mAmpleAudioThresholdUsecs to TimeUnit. r=kaku
...
MozReview-Commit-ID: 2de8DrlemaT
2017-03-28 14:27:26 +08:00
JW Wang
9ef03e22c8
Bug 1350832. P3 - rename variables and fix comments. r=kikuo
...
MozReview-Commit-ID: 1xA8doM1tAG
2017-03-27 16:28:02 +08:00
JW Wang
ef45147daa
Bug 1350832. P2 - change the type of mLowAudioThresholdUsecs to TimeUnit. r=kikuo
...
MozReview-Commit-ID: AurJRSuZkkg
2017-03-27 16:22:09 +08:00