voxeet / voxeet-sdk-web

The Dolby.io Communications SDK for Web.
https://www.npmjs.com/package/@voxeet/voxeet-web-sdk
Other
4 stars 2 forks source link

muteOutput #15

Closed MarkusPint closed 1 year ago

MarkusPint commented 1 year ago

Hi, I noticed the iOS SDK has this function: https://docs.dolby.io/communications-apis/docs/ios-client-sdk-conferenceservice#muteoutput

Would be very useful to us. Is there any way to do this right now with Web SDK?

Or is the only way to grab "vxt-audio" element from DOM and set it's volume property to "0" ?

FabienLavocat commented 1 year ago

Hi @MarkusPint, This is not an API we have for the Web SDK, however you can set the volume on the audio element.

const audio = document.getElementById('audio-00000000-0000-0000-0000-000000000000');
audio.volume = 0;

Fabien

FabienLavocat commented 1 year ago

We have introduced the muteOutput function in the Web SDK version 3.10.