Commit Graph

11 Commits

Author SHA1 Message Date
Alastor Wu
f9ae0149f6 Bug 1546506 - Add an assertion to ensure that we won't construct SeekTarget with invalid time. r=bryce
We should only use valid time to construct a `SeekTarget`, because we can't get the value from the invalid time.

This can help us to prevent having a crash when request data value from an invalid time.

Differential Revision: https://phabricator.services.mozilla.com/D28564

--HG--
extra : moz-landing-system : lando
2019-04-24 17:07:40 +00:00
Jean-Yves Avenard
66ba3c52f7 Bug 1530918 - Use TimeUnit when seeking. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D21320

--HG--
extra : moz-landing-system : lando
2019-02-27 13:12:08 +00:00
Sylvestre Ledru
804b8b8883 Bug 1204606 - Reformat of dom/media r=jya
# skip-blame

Differential Revision: https://phabricator.services.mozilla.com/D12251

--HG--
extra : moz-landing-system : lando
2018-11-19 13:25:37 +00:00
Jean-Yves Avenard
6c54f77547 Bug 1366362: P1. Fix style. r=gerald
MozReview-Commit-ID: 3eDT8kY1tCZ

--HG--
extra : rebase_source : 268072bf006756a0e95c01a7411a7d36d27d4aa8
2017-05-22 09:33:18 +02:00
JW Wang
8055ca2d43 Bug 1314884. Part 6 - remove SeekTarget::mEventVisibility. r=kaku
Note it is fine to always assume MediaDecoderEventVisibility::Observable in SeekJob::Resolve()
because no one will wait for the promise of internal seeks (where EventVisibility::Suppressed is passed).

MozReview-Commit-ID: Dx7AF5VhLmL

--HG--
extra : rebase_source : 517669ed4f10a136b8a2f8eafd76f26f4ad5d8e4
extra : source : 57cdd8d14c59a2f1f0eed0635814de661127ad70
2016-11-03 15:34:11 +08:00
Kaku Kuo
78dcb08be6 Bug 1294384 - make video-only attribute orthogonal to the seek type; r=jwwang
MozReview-Commit-ID: 2oBjuiN7pLn

--HG--
extra : rebase_source : 235da9a3e079ef4c120b58e3e0256309ecb7a803
2016-08-12 11:45:02 +08:00
Kaku Kuo
e6658c1851 Bug 1235301 - part 2 - implement NextFrameSeekTask; r=jwwang
MozReview-Commit-ID: 3ucCLzT6w27

--HG--
extra : rebase_source : c5fe5bc4fd4f616b56ca961dda18e2e06f91d059
2016-05-24 11:03:12 +08:00
Dan Glastonbury
526fdd85f6 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
Jean-Yves Avenard
1f7e6f40c9 Bug 1243608: P5. Add type utility methods to SeekTarget class. r=cpearce 2016-02-02 18:57:13 +11:00
Jean-Yves Avenard
b7b6a77158 Bug 1243608: P3. Make SeekTarget::mTime a TimeUnit object. r=cpearce
Also makes it a private member and provide a GetTime() accessor instead.
2016-02-02 18:57:12 +11:00
Jean-Yves Avenard
83fff9be79 Bug 1243608: P2. Pass the full SeekTarget object to MediaDecoderReader::Seek. r=cpearce
This will allow the reader to know if we are performing a fast seek.
2016-02-02 18:57:12 +11:00