Closed Bug 1633010 Opened 5 years ago Closed 5 years ago

Simplify the responsibility of media controller

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

Details

Attachments

(8 files, 4 obsolete files)

47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review

Media controller is having too much responsibility, we should remove the responsibilities of handling playback related status to other delegates so that media controller can focus on high level concept of controlling media.

After discuss with Bryce offline, I'm going to recheck the design and will ask for a review later.

Attachment #9143248 - Attachment is obsolete: true
Attachment #9143249 - Attachment is obsolete: true
Attachment #9143260 - Attachment is obsolete: true
Attachment #9143251 - Attachment is obsolete: true
Attachment #9145090 - Attachment description: Bug 1633010 - part4 : move declared and guessed playback state into MediaSessionController. → Bug 1633010 - part4 : move declared and guessed playback state into `MediaSessionController`.
Attachment #9145091 - Attachment description: Bug 1633010 - part5 : extend IMediaInfoUpdater. → Bug 1633010 - part5 : extend `IMediaInfoUpdater`.
Attachment #9145092 - Attachment description: Bug 1633010 - part6 : use IMediaController if we only want to access control related methods → Bug 1633010 - part6 : use `IMediaController` if we only want to access control related methods
Attachment #9145093 - Attachment description: Bug 1633010 - part7 : rename variable and remove unnecessary spaces → Bug 1633010 - part7 : rename variables and remove unnecessary spaces
Attachment #9145095 - Attachment description: Bug 1633010 - part8 : rename 'MediaSessionController' to 'MediaStatusManager'. → Bug 1633010 - part8 : rename `MediaSessionController` to `MediaStatusManager`
Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b581af0ca6ea part1 : send context Id as a parameter when updating media playback and audible state. r=bryce,chunmin https://hg.mozilla.org/integration/autoland/rev/00c095ba852d part2 : create `MediaPlaybackStatus` to handle the tasks of determining playback related status. r=chunmin https://hg.mozilla.org/integration/autoland/rev/12e357923acf part3 : move MediaPlaybackStatus to MediaSessionController. r=chunmin https://hg.mozilla.org/integration/autoland/rev/570cdab31d42 part4 : move declared and guessed playback state into `MediaSessionController`. r=chunmin https://hg.mozilla.org/integration/autoland/rev/3f1356460936 part5 : extend `IMediaInfoUpdater`. r=chunmin https://hg.mozilla.org/integration/autoland/rev/b32d1b16ace5 part6 : use `IMediaController` if we only want to access control related methods r=chunmin https://hg.mozilla.org/integration/autoland/rev/7b844490b8fe part7 : rename variables and remove unnecessary spaces r=chunmin https://hg.mozilla.org/integration/autoland/rev/5b6d8d1bd950 part8 : rename `MediaSessionController` to `MediaStatusManager` r=chunmin
Regressions: 1638786
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: