Commit Graph
1183 Commits
Author SHA1 Message Date
JW Wang 3185b16e06 Bug 1353644 - change the type of EXHAUSTED_DATA_MARGIN_USECS to TimeUnit. r=kaku
MozReview-Commit-ID: CXc9DjoUc4m
2017-03-29 15:04:50 +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 121311236c Bug 1353607. P12 - replace |TimeUnit::ToMicroseconds()*double| with |TimeUnit::MultDouble()|. r=kikuo
MozReview-Commit-ID: 3QIBCCNf5G0
2017-03-29 15:00:46 +08:00
JW Wang acf3547403 Bug 1353607. P11 - use TimeUnit in RecomputeDuration(). r=kikuo
MozReview-Commit-ID: F16erI0580V
2017-03-29 14:52:08 +08:00
JW Wang 218f131478 Bug 1353607. P10 - use TimeUnit in DropAudioUpToSeekTarget(). r=kikuo
MozReview-Commit-ID: 42HtGkCUsYI
2017-03-29 14:46:15 +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 955f28dc02 Bug 1353607. P7 - remove the unused function. r=kikuo
MozReview-Commit-ID: AWf7ritkbJ5
2017-03-28 17:29:24 +08:00
JW Wang 58b3101e9b Bug 1353607. P6 - use TimeUnit in CheckSlowDecoding(). r=kikuo
MozReview-Commit-ID: 524aRA1uUaQ
2017-03-28 17:27:56 +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
Kaku Kuo bbefc8df79 Bug 1352934 - make the seek operation at StateObject::HandleResumeVideoDecoding() unobservable; r=jwwang
The seeking operation WAS unobservable before Bug 1309494.
It was changed to be observable because I want the "canplay" event, which will be dispatched after the seeking operation is done,
to notify our video controller to cancel the throbber(which will be shown if the decoder resuming cannot be done in 250 ms).

Now, we can change the seeking operatoin back to unobservable thanks to bug 1350852.
In bug 1350852, we dispatche a specific "mozvideoonlyseekcompleted" event to cancel the throbber.

MozReview-Commit-ID: Ke9sqDPotAB
2017-04-06 15:14:37 +08:00
Kaku Kuo 77e8fbff1f Bug 1349097 P2 - let CompletedState::HandleResumeVideoDecoding() seek to the last video frame; r=jwwang
StateObject::HandleResumeVideoDecoding() seeks to the current media time, however, if the playback had
ended and we would like to resume its video decoder, we should seek to the last video frame since the
audio might be longer than the video.

MozReview-Commit-ID: E6gAy7Ds9vn
2017-03-28 11:30:32 +08:00
Kaku Kuo 3e98cf5feb Bug 1349097 P1 - let HandleResumeVideoDecoding() take a const TimeUnit& argument; r=jwwang
MozReview-Commit-ID: BEBLUP9SwWC
2017-03-28 11:21:41 +08:00
JW Wang af9e51c6c0 Bug 1352319. P12 - let CalculateNewCurrentTime() return a TimeUnit. r=kaku
MozReview-Commit-ID: 6bQdKvw0VEN
2017-03-28 16:44:40 +08:00
JW Wang 0a515e441e Bug 1352319. P11 - change the type of NextFrameSeekingState::mCurrentTime to TimeUnit. r=kaku
MozReview-Commit-ID: Q4u92HgGdF
2017-03-28 16:38:26 +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 0b0e8b0758 Bug 1352319. P5 - rename AudioPrerollUsecs and let it return a TimeUnit. r=kaku
MozReview-Commit-ID: C3IdeNksQjn
2017-03-28 15:42:09 +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 2b3f88367d Bug 1352319. P2 - rename variables and fix comments. r=kaku
MozReview-Commit-ID: G7II28F00Qp
2017-03-28 14:58:03 +08:00
JW Wang 07b5001504 Bug 1352319. P1 - add LOW_BUFFER_THRESHOLD and replace the use of LOW_DATA_THRESHOLD_USECS with it. r=kaku
MozReview-Commit-ID: HNQR7Y93pAz
2017-03-28 14:56:35 +08:00
JW Wang 284534bfa1 Bug 1351203. P2 - rename the variable and fix comments. r=kaku
MozReview-Commit-ID: Bs2uanapqR9
2017-03-28 14:46:34 +08:00
JW Wang 2552749a1a Bug 1351203. P1 - change the type of LOW_VIDEO_THRESHOLD_USECS to TimeUnit. r=kaku
MozReview-Commit-ID: 47uMuLTPFPt
2017-03-28 14:43:56 +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 a663a3d7b5 Bug 1350837. P1 - add AMPLE_AUDIO_THRESHOLD and use it to replace AMPLE_AUDIO_USECS. r=kaku
Note we can't simply change the type of AMPLE_AUDIO_USECS to TimeUnit because it is
used in a static_assert and TimeUnit::ToMicroseconds() is not a const expression.
There is no easy way to change it because CheckedInt::value() calls MOZ_ASSERT which
can't be a const expression.

MozReview-Commit-ID: 17qaTFOOLpL
2017-03-28 14:21:01 +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
JW Wang a5f0c33313 Bug 1350832. P1 - change the type of LOW_AUDIO_USECS to TimeUnit. r=kikuo
MozReview-Commit-ID: GEemdvt5ldM
2017-03-27 16:15:35 +08:00
Kaku Kuo 94ee914d02 Bug 1350852 P1 - add a mozvideoonlyseekcompleted event; r=jwwang
MozReview-Commit-ID: wLMawR9Coz
2017-03-27 18:12:58 +08:00
JW Wang 66ab02d975 Bug 1350826 - Replace use of int64_t for microseconds by TimeUnit in MediaSink and its sub-classes. r=kaku
MozReview-Commit-ID: 2gCOmYLc0OO
2017-03-27 14:55:05 +08:00
JW Wang d80db23b13 Bug 1350814 - Replace use of int64_t for microseconds by TimeUnit in AudioSink. r=kikuo
MozReview-Commit-ID: 3diOpJu7g8i
2017-03-27 11:37:17 +08:00
JW Wang c808f28402 Bug 1350813. use 0 as the sentinel value of MediaSink::GetEndTime(). r=kaku
Since the media timeline is zero-based, 0 is a good value to indicate
no data is played at all.

MozReview-Commit-ID: BiKzSGtbyjn
2017-03-25 13:29:05 +08:00
JW Wang e11338302e Bug 1350203. P6 - rename SWARN to SLOGW. r=kaku
MozReview-Commit-ID: HEPJ6Ktj8UH
2017-03-24 12:42:49 +08:00
JW Wang 83ba36a828 Bug 1350203. P5 - replace SAMPLE_LOG with LOGV. r=kaku
We often need to turn on both MediaSample and MediaDecoder logs when debugging sample activities.
So it is convenient to merge them into a single log module.

Use `MOZ_LOG=MediaDecoder:4` to show decoder logs.
use `MOZ_LOG=MediaDecoder:5` to show both decoder and sample logs.

MozReview-Commit-ID: JQtyoyrNRmV
2017-03-24 11:58:37 +08:00
JW Wang f3270fad35 Bug 1350203. P4 - change the level of MediaSink logs. r=kaku
1. Use LOG() for OnMediaSink{Audio,video}Complete() which is not verbose.
2. Use LOGW() for OnMediaSink{Audio,Video}Error() which indicates an error.

MozReview-Commit-ID: 4Z5U32YlMPB
2017-03-24 11:43:57 +08:00
JW Wang 245622aee4 Bug 1350203. P3 - rename DECODER_WARN to LOGW. r=kaku
MozReview-Commit-ID: 3dstP1KkBJh
2017-03-24 11:38:22 +08:00
JW Wang d2c2c1a6b2 Bug 1350203. P2 - rename VERBOSE_LOG to LOGV. r=kaku
MozReview-Commit-ID: IM8t69P5dU4
2017-03-24 11:35:45 +08:00
JW Wang 8c730379ff Bug 1350203. P1 - rename DECODER_LOG to LOG. r=kaku
MozReview-Commit-ID: nL4fiALn5N
2017-03-24 11:33:06 +08:00
JW Wang bb3cba3b51 Bug 1349485. P4 - rename DecodedAudioDataSink.* to AudioSink.*. r=kikuo
MozReview-Commit-ID: KYbJwTpUiHZ
2017-03-22 15:03:38 +08:00
JW Wang f6d36cce6d Bug 1349485. P3 - rename DecodedAudioDataSink to AudioSink. r=kikuo
MozReview-Commit-ID: 3Irf6be322j
2017-03-22 14:55:59 +08:00
JW Wang 01cea91c65 Bug 1349145. P3 - use concrete types in MDSM and its friends. Also remove unnecessary casts. r=kaku
MozReview-Commit-ID: C2MZb01XtTC
2017-03-22 11:59:54 +08:00
Kaku Kuo 285872617a Bug 1309494 part 0 - make the seek operation at StateObject::HandleResumeVideoDecoding() observable; r=jwwang
So that the we can listen to the 'canplay' event in the videocontrols.xml.

MozReview-Commit-ID: 5T7akeC7EJq
2017-03-13 18:01:42 +08:00
Kaku Kuo 490dcc2e7f Bug 1346498 part 6 - remove mHasSuspendTaint cannonical-mirror pair; r=jwwang
MozReview-Commit-ID: BqAfv9CSsv3
2017-03-11 15:12:38 +08:00