Closed Bug 1603544 Opened 5 years ago Closed 5 years ago

Add `IsStarted()` on `MediaController`

Categories

(Core :: Audio/Video: Playback, task, P2)

task

Tracking

()

RESOLVED WONTFIX

People

(Reporter: alwu, Assigned: alwu)

References

Details

Attachments

(2 obsolete files)

After calling Controller::Stop() but before the controller is being really destroyed, the controller should return correct start state so that the event source can return the correct media state if someone is querying it.

In some platforms, the event source have to support a API which is used to query about the current playback state (play/pause/stop). Currently MediaController::IsPlaying() is not enough for distinguishing pause state and stop state, so we add a new method to know if the controller is started or not.

Attached file Bug 1603544 - part2 : add test. (obsolete) (deleted) —

According to [1], we are no longer need to implement this, we will add an API on the event source to set the playing state in bug 1604653.

[1] https://phabricator.services.mozilla.com/D57024#1737137

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
Attachment #9115640 - Attachment is obsolete: true
Attachment #9115641 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: