WICG / audio-focus

Other
22 stars 11 forks source link

Define and use the virtual platform API with which media sessions interact #17

Open xxyzzzq opened 8 years ago

xxyzzzq commented 8 years ago

From @foolip on September 2, 2015 14:44

The spec currently defines some things in terms of what kind of media session caused a callback, with a fallback for when it was caused by something external. For example:

Let interrupting media session category be the media session category that triggered this interruption. If this interruption has no known media session category, let interrupting media session category be Default.

The way we want to implement media sessions, at least on Android, is instead to let each media session individually interact with the platform API, which implies that you would never know if an interruption comes from another media session or something else.

My proposed fix for this is to define a virtual platform API with roughly the following shape:

Then define how an individual media session interacts with this system, instead of defining the interactions in terms of other media sessions.

Copied from original issue: WICG/mediasession#100

xxyzzzq commented 8 years ago

Closing this issue since we are moving audio focus out to a separate API.

xxyzzzq commented 8 years ago

From @rektide on September 19, 2016 17:53

@xxyzzzq what is that separate API? how can we follow-up/where do we look instead of here?

xxyzzzq commented 8 years ago

We haven't created a repo for the AudioFocus API yet. It is #138