Closed Bug 1391142 Opened 7 years ago Closed 7 years ago

Remove MediaResource::IsLiveStream()

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

Details

Attachments

(3 files)

http://searchfox.org/mozilla-central/rev/5ce320a16f6998dc2b36e30458131d029d107077/dom/media/MediaDecoderStateMachine.cpp#2484

MDSM is the only caller which checks IsLiveStream() to determine whether seek has reached the end of the resource.

We want to remove the dependency on MediaResource from MDSM since MediaResource should be an internal detail of MediaDecoder. I will add a UpdateIsLiveStream() function to MDSM so MediaDecoder can call it to update the status of live stream.
Blocks: 1373160
Priority: -- → P3
Attachment #8898616 - Flags: review?(gsquelart)
Attachment #8898617 - Flags: review?(gsquelart)
Attachment #8898618 - Flags: review?(gsquelart)
Assignee: nobody → jwwang
Comment on attachment 8898616 [details]
Bug 1391142. P1 - dispatch IsLiveStream changes from MediaDecoder to MDSM.

https://reviewboard.mozilla.org/r/170004/#review176166
Attachment #8898616 - Flags: review?(gsquelart) → review+
Comment on attachment 8898617 [details]
Bug 1391142. P2 - remove MDSM::mResource and related functions.

https://reviewboard.mozilla.org/r/170006/#review176168
Attachment #8898617 - Flags: review?(gsquelart) → review+
Comment on attachment 8898618 [details]
Bug 1391142. P3 - remove IsLiveStream() from MediaResource.

https://reviewboard.mozilla.org/r/170008/#review176170
Attachment #8898618 - Flags: review?(gsquelart) → review+
Thanks!
Pushed by jwwang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5ee6c8012b97
P1 - dispatch IsLiveStream changes from MediaDecoder to MDSM. r=gerald
https://hg.mozilla.org/integration/autoland/rev/332a6f47a270
P2 - remove MDSM::mResource and related functions. r=gerald
https://hg.mozilla.org/integration/autoland/rev/7518bf7c05bc
P3 - remove IsLiveStream() from MediaResource. r=gerald
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: