Closed Bug 1601379 Opened 4 years ago Closed 4 years ago

Extend MediaControlKeysEventSource API for initialization and deconstruction

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

Details

Attachments

(2 files)

Because the initialization of MediaControlKeysEventSource might fail, it's no need to hold a failed source in MediaControlKeysManager.

When doing this, please also add virtual to Close().
Also, If you didn't work on it yet and you tell me how you'd want Init and Close to be named (I suggest Open and Close), I could also do this real quick :)

Flags: needinfo?(alwu)
Flags: needinfo?(alwu)
Summary: Add `Init()` function for MediaControlKeysEventSource → Extend MediaControlKeysEventSource API for initialization

Sorry for my delay, I'll start this today.

Summary: Extend MediaControlKeysEventSource API for initialization → Extend MediaControlKeysEventSource API for initialization and deconstruction

Add an ability for inherited sources to implement their own deconstruction operations.

Add Open() to support inherited sources to implement their own initialization and also don't hold the reference of the source if it fails to initialize.

Blocks: 1602617
Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b04d71a5277a
part1 : allow inherited class to override 'Close()' r=MeFisto94
https://hg.mozilla.org/integration/autoland/rev/e0a231bcef73
part2 : add 'Open()' to know if the source initialization succeeds or not. r=MeFisto94
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: