Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The MediaTrackConstraints
dictionary's suppressLocalAudioPlayback
property is a ConstrainBoolean
describing the requested or mandatory constraints placed upon the value of the suppressLocalAudioPlayback
constrainable property. This property controls whether the audio playing in a tab will continue to be played out of a user's local speakers when the tab is captured.
If needed, you can determine whether or not this constraint is supported by checking the value of MediaTrackSupportedConstraints.suppressLocalAudioPlayback
as returned by a call to MediaDevices.getSupportedConstraints()
. However, typically this is unnecessary since browsers will ignore any constraints they're unfamiliar with.