-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce associated AudioSession #32
Conversation
@@ -134,6 +134,13 @@ This default audio session is represented as an {{AudioSession}} object that is | |||
|
|||
# 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to force the implementers to follow this guideline? If so, should we use MUST request or abandon audio focus
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a general description of the intent of the spec. The algorithms will precisely describe how UA is expected to implement this so that all UAs will behave the same.
I do not think that this sentence is precise enough to warrant a MUST.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, only a small question left. Thanks!
I am merging this PR. |
SHA: f62ea81 Reason: push, by youennf Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
We introduce the 1-1 mapping between Window and navigator.audioSession.
Preview | Diff