Open mjwilson-google opened 1 month ago
AudioContext.setSinkId is only allowed in secure contexts.
However, a sink ID may also be passed into the AudioContext contructor, and the constructor may be called from an insecure context.
We don't specify what happens if this occurs in an insecure context. I think it should probably throw a NotAllowedError.
We can specify this right below the "If sinkId is specified, [...]" section of the AudioContext constructor steps.
AudioContext.setSinkId is only allowed in secure contexts.
However, a sink ID may also be passed into the AudioContext contructor, and the constructor may be called from an insecure context.
We don't specify what happens if this occurs in an insecure context. I think it should probably throw a NotAllowedError.
We can specify this right below the "If sinkId is specified, [...]" section of the AudioContext constructor steps.