Commit Graph

2 Commits

Author SHA1 Message Date
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
Kaku Kuo
b04c20b172 Bug 1261020 - part 1 - implement SeekTask; r=jwwang
MozReview-Commit-ID: GTrzI3ZuYeo

--HG--
rename : dom/media/MediaDecoderStateMachine.h => dom/media/SeekJob.h
extra : transplant_source : %17%12%88%F9%C1e%DFnw%29%D9%F6%E7I%D4%F3%7FUrJ
2016-04-14 12:01:55 +08:00