Commit Graph
1098 Commits
Author SHA1 Message Date
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
Kaku Kuo 7a21c972cd Bug 1346498 part 5 - don't check mHasSuspendTaint in HandleVideoSuspendTimeout(); r=jwwang
If mHasSuspendTaint is set, the mVideoDecodeSuspendTimer should already be canceled
so that HandleVideoSuspendTimeout() won't be invoked.

MozReview-Commit-ID: BGwSucZtH4d
2017-03-11 15:09:15 +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
JW Wang 97bb06207a Bug 1345711 - Ensure MediaDecoderStateMachine::InitializationTask() is the first task to run on the task queue. r=kaku
MozReview-Commit-ID: KCtXmckLkZr
2017-03-08 20:44:43 +08:00
karo 9dfa510df6 Bug 1344073 - Adding consistent formatting to HTMLMediaElement::MozRequestDebugInfo debugInfo dump string. r=cpearce
MozReview-Commit-ID: GfRrLQcebbt
2017-03-01 16:03:01 +13: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
Michael Layzell ed843263df Bug 1336510 - Part 4: Capture a strong reference to this in dom/media, r=jwwang
MozReview-Commit-ID: 4lVGrGzhVXh
2017-02-24 14:34:23 -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
Michael Layzell de7ee53299 Bug 1336510 - Part 4: Capture a strong reference to this in dom/media, r=jwwang
MozReview-Commit-ID: 4lVGrGzhVXh
2017-02-23 12:24:12 -05:00
Jeff Walden f1d4a4e1e3 Bug 1287006 - Adjust media/ code to not pass Maybe (or any class containing a Maybe member) by value, only by reference or pointer. r=jw_wang, r=rjesup 2017-02-13 09:07:40 -08:00
Tom Tromey e90d95a3f9 Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj
MozReview-Commit-ID: 2E8FoiNxU8L
2016-12-14 09:32:21 -07:00
Tom Tromey a4b717ab39 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07: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
JW Wang f0912c9ebb Bug 1337276 - discard the audio request so we won't add audio samples to a finished queue. r=kaku
MozReview-Commit-ID: JN9QwzfCaVK
2017-02-07 14:33:52 +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 f675eb68da Bug 1331329. Part 2 - enter dormant immediately when mMinimizePreroll is true. r=kaku
MozReview-Commit-ID: 8qWYRgm8lwj
2017-01-16 16:41:43 +08:00
JW Wang b06e799a5a Bug 1331329. Part 1 - remove EnterDormant() which is a one-line function. r=kaku
MozReview-Commit-ID: AaUPDAm24iB
2017-01-16 16:39:56 +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 b17322a0a2 Bug 1330889. Part 4 - remove the mState checks from MaybeStartPlayback(). r=kikuo
The same reason as P2.

MozReview-Commit-ID: GqWgiXjlTrb
2017-01-13 15:14:27 +08:00
JW Wang 73b95dfb04 Bug 1330889. Part 3 - remove the mState check from HasLowBufferedData(). r=kikuo
We have |mBuffered.Ref().IsInvalid()| below to check if mBuffered is valid.

MozReview-Commit-ID: KM88fSsCTlH
2017-01-13 15:13:05 +08:00
JW Wang ff51861f79 Bug 1330889. Part 2 - remove some mState checks from MDSM::ResetDecode. r=kikuo
We want to separate mechanism from policy. The policy should be encoded in
the state objects which will decided whether to call ResetDecode(). It is
also possible to add a new state which has to call ResetDecode().

MozReview-Commit-ID: 3orxW4FNuVD
2017-01-13 15:09:11 +08:00
JW Wang f37c62b38a Bug 1330889. Part 1 - remove the assertion in MDSM::FinishShutdown. r=kikuo
http://searchfox.org/mozilla-central/rev/3f614bdf91a2379a3e2c822da84e524f5e742121/dom/media/MediaDecoderStateMachine.cpp#1825
This assertion ensures we never escape the SHTUDOWN state.

MozReview-Commit-ID: 6jPgVQuiPZf
2017-01-13 15:04:11 +08:00
JW Wang 0934ddbc2b Bug 1328130. Part 2 - remove MozPromiseRequestHolder::Begin(). r=gerald
MozReview-Commit-ID: JL27n0Era6E
2017-01-11 16:33:29 +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