Skip to content

Commit

Permalink
Introduce associated AudioSession (#32)
Browse files Browse the repository at this point in the history
* Introduce associated AudioSession
  • Loading branch information
youennf authored Oct 22, 2024
1 parent ef5f33b commit f62ea81
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ The [=audio session=]'s state may change, which will automatically [=update the

# Extensions to the `Navigator` interface # {#extensions-to-navigator}

Each {{Window}} has an <dfn>associated AudioSession</dfn>, which is an {{AudioSession}} object.
It represents the default audio session that is used by the user agent to automatically set up the audio session parameters.
The user agent will request or abandon audio focus when audio session [=audio session/elements=] start or finish playing.
Upon creation of the {{Window}} object, its [=associated AudioSession=] MUST be set to a newly created {{AudioSession}} object with the {{Window}} object's [=relevant realm=].

The [=associated AudioSession=] list of [=audio session/elements=] is updated dynamically as audio sources and sinks of the {{Window}} object are created or removed.

<pre class="idl">
[Exposed=Window]
partial interface Navigator {
Expand Down

0 comments on commit f62ea81

Please sign in to comment.