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 #410

Open
gabrielsanbrito opened this issue Oct 4, 2024 · 1 comment
Open

AudioContext "interrupted" state #410

gabrielsanbrito opened this issue Oct 4, 2024 · 1 comment
Labels
from: Microsoft Proposed, edited, or co-edited by Microsoft. topic: media Spec relates to audio, video, or other timed media venue: Edge Explainers Proposal exists in the Microsoft Edge Explainers repo

Comments

@gabrielsanbrito
Copy link

gabrielsanbrito commented Oct 4, 2024

WebKittens

@youennf @jernoble

Title of the proposal

AudioContext "interrupted" state

URL to the spec

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

URL to the spec's repository

No response

Issue Tracker URL

No response

Explainer URL

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

TAG Design Review URL

No response

Mozilla standards-positions issue URL

mozilla/standards-positions#1083

WebKit Bugzilla URL

No response

Radar URL

No response

Description

The main goal of this proposal is to allow the UA to be able to interrupt AudioContext playback when needed. The "suspended" state is not enough, because the AudioContext can only move to this state in response to a user action. Because we'd like to allow the UA to pause audio playback when needed, we propose the addition of a new "interrupted" state. Some situations where we might want to let the UA decide when to interrupt playback are: the proposed "media-playback-while-not-visible" permission policy, the proposed Audio Session API, or during a phone call where the calling application will need exclusive access to the audio hardware.

This feature is being discussed in WebAudio/web-audio-api#2392 and its development in Chromium is being tracked in https://chromestatus.com/feature/5172068166139904.

@jernoble
Copy link

jernoble commented Oct 4, 2024

WebKit is supportive of the goal to add the "interrupted" state to AudioContext. Me may need to align with the future spec changes, however it will be great to align with other implementors.

@othermaciej othermaciej added topic: media Spec relates to audio, video, or other timed media from: Microsoft Proposed, edited, or co-edited by Microsoft. venue: Edge Explainers Proposal exists in the Microsoft Edge Explainers repo labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from: Microsoft Proposed, edited, or co-edited by Microsoft. topic: media Spec relates to audio, video, or other timed media venue: Edge Explainers Proposal exists in the Microsoft Edge Explainers repo
Projects
None yet
Development

No branches or pull requests

3 participants