WebAudio / web-audio-api

The Web Audio API v1.0, developed by the W3C Audio WG
https://webaudio.github.io/web-audio-api/
Other
1.04k stars 165 forks source link

Review mute/unmute/ended and constraints on track in audioContext.createMediaStreamDestination().stream #2571

Open jan-ivar opened 4 months ago

jan-ivar commented 4 months ago

As per https://github.com/w3c/mediacapture-main/issues/984, please review mute/unmute/ended and constraints on the track in MediaStreamAudioDestinationNode's stream.

This is a spec cleanup to remove any implicitly inherited behaviors, requiring each spec that defines a source of new MediaStreamTracks to follow these extension guidelines, specifically:

image

A quick perusal revealed no mention of muted, ended or constraints related to MediaStreamAudioDestinationNode's track.

If a MediaStreamAudioDestinationNode's track is never muted or ended, and cannot be constrained (with applyConstraints), this is now the default behavior, but it might be good to call it out if it is intentional. E.g. something like "The MediaStreamAudioDestinationNode's stream's track is never muted or ended, and has no constraints."

mjwilson-google commented 2 months ago

2024-04-04 Audio WG teleconference conclusion:

If a MediaStreamAudioDestinationNode's track is never muted or ended, and cannot be constrained (with applyConstraints), this is now the default behavior, but it might be good to call it out if it is intentional. E.g. something like "The MediaStreamAudioDestinationNode's stream's track is never muted or ended, and has no constraints."

We will make the default behavior explicit as suggested above. Thank you for bringing this up.