Skip to content
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

AudioContext "interrupted" state #2611

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

gabrielsanbrito
Copy link

@gabrielsanbrito gabrielsanbrito commented Nov 9, 2024

This PR adds the specification to the AudioContext "interrupted" state. This change does not have Web Platform Tests, because web pages are not able to trigger interruptions themselves. Starting an interruption is a prerogative of the user agent.

Explainer: https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/AudioContextInterruptedState/explainer.md


Preview | Diff


4. If the context is not <a>allowed to start</a>, append
1. Queue a media element task</a> to execute the following steps:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Queue a media element task</a> to execute the following steps:
1. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">Queue a media element task</a> to execute the following steps:

Some parts of the spec use [=Queue a media element task=] instead. But I don't know which one is preferable. Maybe it depends on the context.

@hoch hoch requested review from hoch and padenot November 14, 2024 17:07
@hoch
Copy link
Member

hoch commented Nov 14, 2024

FYI @youennf - here's the interrupted state spec work for AudioContext.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants