Temasys / AdapterJS

AdapterJS Javascript Polyfill and Tools for WebRTC - Skylink WebRTC
http://skylink.io/web
Other
429 stars 100 forks source link

Recommended way to mute video audio? #215

Closed dmurtari closed 8 years ago

dmurtari commented 8 years ago

We're looking for a way to receive video without playing back audio from the video. From the documentation, as well as issue #34, it looks like <video muted></video> is not supported by the plugin. The workaround that we found is to disable audio using getAudioTracks()[0].enabled = false. Is this the current recommended way to mute audio from video?

johache commented 8 years ago

You can either use getAudioTracks()[0].enabled = false, or you can use videoPlayer.muted = true once the