Commit Graph
1183 Commits
Author SHA1 Message Date
JW Wang 95dbcadd9c Bug 1287698 - Make MDSM::mPendingDormant a bool. r=jya
MozReview-Commit-ID: 8WF0cxAFABS
2016-07-12 13:57:10 +08:00
JW Wang b7a031773d Bug 1285122. Part 1 - remove SeekTask::mNeedToStopPrerolling{Audio,Video} per discussion in https://reviewboard.mozilla.org/r/43689/#comment54421. r=kaku
MozReview-Commit-ID: 1r909HO5Cbl
2016-07-07 14:35:58 +08:00
JW Wang 7563ae2288 Bug 1286793 - register visibility changes only when needed. r=kamidphish
MozReview-Commit-ID: JTlDPh3ql7A
2016-07-14 17:52:41 +08:00
JW Wang 1a0e7ccbf6 Bug 1284399. Part 6 - store a copy of SeekTarget instead of its reference in SeekTask so it's life cycle can be independent from the client. r=kaku
MozReview-Commit-ID: BWrutqvsj29
2016-07-05 14:12:42 +08:00
JW Wang 77563cf99e Bug 1284399. Part 4 - move |mSeekJob.RejectIfExists(__func__)| out of SeekTask::Discard(). r=kaku
MozReview-Commit-ID: C0kmdNkCpk3
2016-07-05 13:55:32 +08:00
JW Wang bf00728edc Bug 1284399. Part 3 - remove SeekTask::Exists(). r=kaku
MozReview-Commit-ID: EECDBv1DR88
2016-07-05 13:50:37 +08:00
JW Wang 2ba681a3f0 Bug 1284399. Part 2 - add MDSM::mCurrentSeek to replace SeekTask::mSeekJob. r=kaku
MozReview-Commit-ID: 84KJcdoXakS
2016-07-05 13:43:46 +08:00
JW Wang 39bd7bfe23 Bug 1284399. Part 1 - add GetSeekTarget() to remove direct access to mSeekJob. r=kaku
MozReview-Commit-ID: 60wIW9gHYKt
2016-06-30 13:37:20 +08:00
JW Wang 0be7537476 Bug 1286760 - use macro to simplify the code. r=gerald
MozReview-Commit-ID: HsAOgQoGuQ5
2016-07-14 15:09:06 +08:00
Eugen Sawin cd8077ac26 Bug 1284875 - [1.2] Don't recover seek position during shutdown. r=jwwang 2016-07-07 16:53:47 +02:00
JW Wang ba343a8876 Bug 1281090. Part 3 - replace MediaDecoderReaderWrapper::Set{Audio,Video}Callback with MediaCallback. r=kaku.
MozReview-Commit-ID: DleK3s5F3sD
2016-06-14 11:22:45 +08:00
Kaku Kuo 53ff8ee81c Bug 1278228 - handle VideoOnly seek as an accurate seek; r=jwwang
MozReview-Commit-ID: DsQQB8YX2jm
2016-06-21 10:33:32 +08:00
JW Wang a7c2a911fa Bug 1280175 - Allow passing lvalue to MediaEventProducerExc<T>::Notify. r=gerald
MozReview-Commit-ID: 6Wr3obvkVXo
2016-06-14 15:25:45 +08:00
Eugen Sawin d59667a26e Bug 1214710 - [2.5] Recover decode seek position when resuming suspended playback. r=jwwang 2016-06-08 18:04:33 +02:00
Carsten "Tomcat" Book 102c4ef0c7 Backed out changeset d64ca44c11ce (bug 1214710) 2016-06-08 12:08:40 +02:00
Carsten "Tomcat" Book 9b2eda8927 Backed out changeset 8a796ebc560f (bug 1214710) 2016-06-08 12:08:39 +02:00
Eugen Sawin 5febf962a2 Bug 1214710 - [3.1] Reset video decode suspend timer when resuming reader. r=jwwang 2016-06-08 11:31:20 +02:00
Eugen Sawin d2e35f7b2d Bug 1214710 - [2.4] Recover decode seek position when resuming suspended playback. r=jwwang 2016-06-08 11:31:20 +02:00
Nicholas Nethercote 57ff9ef7c2 Bug 1278452 - Remove unnecessary null checks in dom/media/. r=kamidphish.
|audio| and |video| are both dereferenced beforehand.
2016-06-07 14:50:39 +10:00
Dan Glastonbury 6e3c41a70f Bug 1276570: Replace TargetQueues enum with bitwise-or flags. r=jwwang
MozReview-Commit-ID: 95rnjumeBf
2016-05-31 14:32:37 +10:00
Kaku Kuo f76fdbda1d Bug 1278228 - use MOZ_DIAGNOSTIC_ASSERT() to confirm that AccurateVideoOnly seek might reach MDSM::InitiateSeek(); r=jwwang
MozReview-Commit-ID: LLZn65yZib5
2016-06-07 15:22:29 +08:00
Dan Glastonbury ace5a89f72 Bug 1275481: Suspend video decoding via timer. r=jwwang
Suspend decoding of video in background tabs once timer fires. The timer
is trigger on switch to invisible and reset each time becomes
visible. Default timer is set at 10 seconds and is controlled via pref
media.suspend-bkgnd-video.delay-ms.

MozReview-Commit-ID: IPIQ1g7Hkpw
2016-05-30 17:25:10 +10:00
Kaku Kuo e6f65531fd Bug 1235301 - part 3 - export HTMLMediaElement::seekToNextFrame(); r=jwwang
MozReview-Commit-ID: 8WMpwOwfqxz
2016-05-24 23:05:35 +08:00
Kaku Kuo d8ee343966 Bug 1235301 - part 1 - abstract the SeekTask class; r=jwwang
MozReview-Commit-ID: F2oXfR4F28x
2016-05-24 11:02:57 +08:00
Dan Glastonbury 08f401bc47 Bug 1275472 - Enable suspending of background video only in nightly builds. r=cpearce
MozReview-Commit-ID: 13HJbggtTXH
2016-05-25 14:13:30 +10:00
JW Wang 2407e20338 Bug 1272565 - draw a blank image when no frames in the video track.
MozReview-Commit-ID: 1Kijn00XAnQ
2016-05-17 10:33:32 +08:00
Kaku Kuo b2fd1049ab Bug 1274192 part 2 - make MDSM and SeekTask to adopt new MediaDecoderReaderWrapper API; r=jwwang
MozReview-Commit-ID: 36QOhD3Hc2f
2016-05-19 19:02:20 +08:00
Dan Glastonbury cf760543c8 Bug 1272422 - Part 2: Vidoe -> Video. r=cpearce
Fix spelling of video.

MozReview-Commit-ID: JGlxxHfE5tW
2016-05-13 15:50:11 +10:00
Alastor Wu a42aa37e4f Bug 1269672 - part2 : move audible data checking from MDSM to DecodedAudioDataSink.
MozReview-Commit-ID: 8uYJ9UA2Jf2
2016-05-12 14:18:53 +08:00
Kaku Kuo 18e186a4ec Bug 1271581 - use newCurrentTime, instead of GetMediaTime() to decide the nextState; r=jwwang
MozReview-Commit-ID: K7VCHFEMxib
2016-05-10 17:53:42 +08:00
Dan Glastonbury 68f152ce7e Bug 1224973 - Part 5: Implement suspend decoding for background video. r=cpearce,jwwang,jya
Implemented by short-circuiting calls to RequestVideoData in MDSM so no
frames are decoded. Resuming playback when video moves to foreground by
using the SeekTask/SeekJob/Seek in MDSM with result of GetMediaTime().

Special consideration is made to only seek the video part of Seek() to
remove an audible glitch in the audio playback when the video becomes
visible again.

MozReview-Commit-ID: 7YFDTanslXu
2016-05-12 09:54:15 +10:00
Dan Glastonbury 91045284e3 Bug 1224973 - Part 4: Pref media.suspend-bkgnd-video.enabled. r=cpearce,jwwang
Pref to control feature. Enabled at request of :cpearce.

MozReview-Commit-ID: 7Ci7mNqugOh
2016-05-12 09:54:00 +10:00
Dan Glastonbury cb280e8b5d Bug 1224973 - Part 3: Plumb element visibility into MDSM. r=jya,jwwang
change MediaDecoder::mIsVisible to be a Canonical<bool> and plumb through to
the MediaDecoderStateMachine.  This will be used to trigger suspending the
decoding of video frames.

MozReview-Commit-ID: F3Dpf0ogE7c
2016-05-12 09:53:51 +10:00
JW Wang aeae6721b1 Bug 1270698 - check if we need to enter buffering periodically to ensure we start buffering when running out of decoded audio/video data. r=cpearce. 2016-05-06 17:38:34 +10:00
Alastor Wu de5eeb5510 Bug 1235612 - Part 4: Modify check audible method. r=jwwang
MozReview-Commit-ID: FvCrbdkNSll
2016-05-03 17:59:38 +08:00
Kyle Huey b972c94d0f Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-05-05 01:45:00 -07:00
Kaku Kuo 9d75117e07 Bug 1266027 part 2 - make MDSM and SeekTask to adopt new MediaDecoderReaderWrapper API; r=jwwang
MozReview-Commit-ID: LqZ59A8vju1
2016-04-27 14:50:39 +08:00
Carsten "Tomcat" Book aadd508ffe Backed out changeset 85ce8cb0639a (bug 1268313) 2016-04-29 14:21:16 +02:00
Kyle Huey e62a0823c9 Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj 2016-04-28 14:08:25 -07:00
JW Wang afb61b9f4e Bug 1195601 - Remove MediaDecoderStateMachine::mLogicallySeeking. r=kinetik.
MozReview-Commit-ID: 9YVPTO8hYqB
2016-04-27 12:51:57 +08:00
Jean-Yves Avenard 4dfb982c9b Bug 1264199: P1. Perform audio conversion in the MSDM taskqueue and ahead of use. r=kinetik
This will allow to easily detect audio configuration change prior immediate playback.

MozReview-Commit-ID: IwDUGOd17ND
2016-04-13 17:17:54 +10:00
JW Wang d3054e9585 Bug 1246051 - have MediaQueue<T>::Peek/PeekFront return a RefPtr<> to avoid dangling pointers per comment 0. r=gerald.
MozReview-Commit-ID: JhPVlqMWsTu
2016-04-25 14:36:07 +08:00
JW Wang 8b279070be Bug 1265978. Part 2 - add methods to MediaDecoder and MDSM to dump debugging info. r=jya.
MozReview-Commit-ID: Dbc5FT627uL
2016-04-22 14:18:26 +08:00
Carsten "Tomcat" Book f15384f4ca Backed out changeset 198add1ad218 (bug 1264199) for test failures in test_WaitingOnMissingData_mp4.html 2016-04-21 16:32:21 +02:00
Jean-Yves Avenard 76408a8d87 Bug 1264199: P1. Perform audio conversion in the reader's taskqueue and ahead of use. r=kinetik
This will allow to easily detect audio configuration change prior immediate playback.

MozReview-Commit-ID: IwDUGOd17ND
2016-04-13 17:17:54 +10:00
Wes Kocher f99eae4757 Merge inbound to central, a=merge
MozReview-Commit-ID: 1WOpYvB2IHo
2016-04-20 13:54:50 -07:00
Wes Kocher b67d7de5f6 Backed out 8 changesets (bug 1264199) for permafailing media mochitests on OSX 10.6 a=backout
Backed out changeset 0f20f2080824 (bug 1264199)
Backed out changeset 90351d2719be (bug 1264199)
Backed out changeset f484b42cbdda (bug 1264199)
Backed out changeset b79b62146120 (bug 1264199)
Backed out changeset f587df589b69 (bug 1264199)
Backed out changeset 02f781a573b4 (bug 1264199)
Backed out changeset d3677ae4c8ec (bug 1264199)
Backed out changeset d08288654ec9 (bug 1264199)

MozReview-Commit-ID: HVtiBSOxf7t
2016-04-20 11:01:36 -07:00
Jean-Yves Avenard a9d1354e11 Bug 1264199: P1. Perform audio conversion in the reader's taskqueue and ahead of use. r=kinetik
This will allow to easily detect audio configuration change prior immediate playback.

MozReview-Commit-ID: IwDUGOd17ND
2016-04-20 15:02:55 +10:00
JW Wang 7c3c3e4b21 Bug 1265315. Part 1 - remove use of MediaDecoderReader from SeekTask. r=kaku.
MozReview-Commit-ID: DlUZYcAVBMB
2016-04-19 16:14:44 +08:00
JW Wang 086b01d46a Bug 1265311. Part 1 - Add more proxy functions to MediaDecoderReaderWrapper. r=jya. 2016-04-19 16:14:30 +08:00