Commit Graph
478 Commits
Author SHA1 Message Date
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
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 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 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
JW Wang 02df8c7686 Bug 1349145. P1 - revert the changes in bug 1203047 for MediaDecoderReader and its friends. r=jya
MozReview-Commit-ID: IghzDRwvd9S
2017-03-22 11:28:33 +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
Kaku Kuo c4cc6a9357 Bug 1346498 part 4 - remove mIsVisible cannonical-mirror pair; r=jwwang
The role of MDSM::mIsVisible and MDSM::VisibilityChanged() have been replaced by
the MDSM::mVideoDecodeMode and MDSM::VideoDecodeModeChanged() completely.

MozReview-Commit-ID: 8sW0s8ilF1E
2017-03-11 14:06:09 +08:00
Kaku Kuo 03827027fd Bug 1346498 part 2 - implement the VideoDecodeMode mechanism in MDSM; r=jwwang
The MDSM::mVideoDecodeMode and MDSM::SetVideoDecodeMode() are merely a renaming of MDSM::mIsVisible and MDSM::VisibilityChanged().
However, the renaming explicitly reflects that MDSM provides mechanism only without participating in the policy decision.
Will reremove the MDSM::mIsVisible and MDSM::VisibilityChanged() in following patches.

MozReview-Commit-ID: JdMKQTgVCf3
2017-03-10 16:17:46 +08:00
Kaku Kuo 23e79910a1 Bug 1345403 part 4 - Clean up suspend timer canceling; r=jwwang
MozReview-Commit-ID: LuNmrtDl4BR
2017-03-08 21:28:01 +08:00
Kaku Kuo 8df8c0f4ad Bug 1345403 part 1 - Track decoder tainting; r=jwwang
Some uses of media elements should 'taint' the element so that the video doesn't participate in video decode suspending.
Add the infrastructure to track the taint status on MediaDecoder and mirror the status to MediaDecoderStateMachine.

MozReview-Commit-ID: Ik6aDIzrZaO
2017-03-08 19:28:13 +08:00
Iris Hsiao 7f2d7798aa Backed out 5 changesets (bug 1345403) for permanent failure in autophone Mdm tests
Backed out changeset f6415ae0ba89 (bug 1345403)
Backed out changeset ac12e246a808 (bug 1345403)
Backed out changeset a3e4ce12194f (bug 1345403)
Backed out changeset ba072186c917 (bug 1345403)
Backed out changeset 7a7d6e9b8329 (bug 1345403)
2017-03-13 15:28:14 +08:00
Kaku Kuo ced129bc9e Bug 1345403 part 4 - Clean up suspend timer canceling; r=jwwang
MozReview-Commit-ID: LuNmrtDl4BR
2017-03-08 21:28:01 +08:00
Kaku Kuo c5fa09b963 Bug 1345403 part 1 - Track decoder tainting; r=jwwang
Some uses of media elements should 'taint' the element so that the video doesn't participate in video decode suspending.
Add the infrastructure to track the taint status on MediaDecoder and mirror the status to MediaDecoderStateMachine.

MozReview-Commit-ID: Ik6aDIzrZaO
2017-03-08 19:28:13 +08:00
Michael Layzell ae4edb0823 Bug 1336510 - Part 9: Avoid MediaDecoder shutdown hang due to unnecessary strong reference capture, r=jwwang
MozReview-Commit-ID: ElH27usjxlj
2017-02-24 14:34:30 -05:00
Wes Kocher 4f2e3a1877 Backed out 8 changesets (bug 1336510) for windows debug mn-e10s failures a=backout
Backed out changeset 419ada2f9e81 (bug 1336510)
Backed out changeset 19239f566a93 (bug 1336510)
Backed out changeset c8aeead6fe83 (bug 1336510)
Backed out changeset 422e63b872b5 (bug 1336510)
Backed out changeset 21869174dfd3 (bug 1336510)
Backed out changeset 57476b9f342d (bug 1336510)
Backed out changeset e842cdaaa7e5 (bug 1336510)
Backed out changeset bd943b368ff7 (bug 1336510)

MozReview-Commit-ID: 2z3Wa9QFkX4
2017-02-23 16:07:41 -08:00
Michael Layzell 88cf28ec48 Bug 1336510 - Part 9: Avoid MediaDecoder shutdown hang due to unnecessary strong reference capture, r=jwwang
MozReview-Commit-ID: ElH27usjxlj
2017-02-23 12:24:12 -05:00
JW Wang f683697d7f Bug 1331070 - delay seek request until decoding first frames for non-MSE media. r=kaku
See see bug 1321198 comment 17. This is a workaround to alleviate the issue
which seems to happen on win8 x64 opt only.

MozReview-Commit-ID: Lr4viEjuFkC
2017-02-08 18:15:28 +08:00
Jean-Yves Avenard fa1fcd710b Bug 1319987: P9. More coding style fixes. r=gerald
MozReview-Commit-ID: DhFRqkWQZny
2017-01-27 13:20:37 +01:00
Carsten "Tomcat" Book a2c1a9a7b0 Merge mozilla-central to autoland 2017-01-23 11:42:26 +01:00
JW Wang dffc33a637 Bug 1331862. Part 3 - remove MDSM::DumpDebugInfo() and call RequestDebugInfo() instead. r=kaku
MozReview-Commit-ID: 4dEe6joFW01
2017-01-19 17:20:36 +08:00
JW Wang 85096a8519 Bug 1331862. Part 2 - add functions to collect debugging info asynchronously. r=kaku
MozReview-Commit-ID: 4btaZqUqyLn
2017-01-19 14:18:41 +08:00
JW Wang 5d7fb2f28f Bug 1331862. Part 1 - extract code to functions for reuse. r=kaku
MozReview-Commit-ID: 9QNTaBxGUFq
2017-01-18 17:55:59 +08:00
Bevis Tseng 80ea683dc0 Bug 1314833 - Part 2.1: Factor out AbstractThread::MainThread() used in Media Playback. r=billm,jwwang
MozReview-Commit-ID: 9yJi3iDtVZG
2016-11-29 13:03:36 +08:00
JW Wang 2429460122 Bug 1330889. Part 5 - remove MDSM::mState. r=kikuo
MozReview-Commit-ID: 648LWr4WU0F
2017-01-13 15:19:13 +08:00
JW Wang 82f5a88426 Bug 1330603. Part 2 - remove MDSM::CheckIfDecodeComplete(). r=kaku
MozReview-Commit-ID: 1bkWVknX2FO
2017-01-09 22:37:57 +08:00
JW Wang 9f652fce90 Bug 1330254. Part 2 - move NeedToSkipToNextKeyframe() into DecodingState and remove some checks for mState. r=kikuo
MozReview-Commit-ID: FTsXX04rk2p
2017-01-09 21:39:22 +08:00
JW Wang 5ea5f78c19 Bug 1330254. Part 1 - move MDSM::Ensure{Audio,Video}DecodeTaskQueued into DecodingState. r=kikuo
MozReview-Commit-ID: 9xPNQ9E7R3E
2017-01-09 21:11:01 +08:00
JW Wang 0e48c9a3d9 Bug 1329098. Part 4 - move DispatchDecodeTasksIfNeeded into DecodingState. r=kaku
MozReview-Commit-ID: LT9xNdTAtOW
2017-01-06 15:43:31 +08:00
JW Wang 582fb8a762 Bug 1328836 - Remove MDSM::DispatchMinimizePrerollUntilPlaybackStarts. r=kaku
MozReview-Commit-ID: 1EGHVhZqUTA
2017-01-05 17:59:19 +08:00
JW Wang 48ec28b591 Bug 1328811. Part 3 - inline NeedToDecode{Audio,Video} for DispatchDecodeTasksIfNeeded is the only caller. r=kaku
MozReview-Commit-ID: H1K6LJCjk4B
2017-01-05 14:44:45 +08:00