I guess you could do something like this in the client, wherever you have access to your RTCPeerConnection object
var audioTracks = pc.getLocalStreams()[0].getAudioTracks();
// if MediaStream has reference to microphone
if (audioTracks[0]) {
audioTracks[0].enabled = false;
}
--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
function muteMicrophone(name) {
participants[name].rtcPeer.userMediaConstraints = {audio : false};
}function muteMicrophone(name) {
participants[name].rtcPeer.audioEnabled = false;
}function muteMicrophone(name) {
participants[name].rtcPeer.peerConnection.getLocalStreams()[0].getAudioTracks()[0].enabled = false;
}--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
function muteMicrophone(name) {
var audioTracks = participants[name].rtcPeer.pc.getLocalStreams()[0].getAudioTracks();
// if MediaStream has reference to microphone
if (audioTracks[0]) {
audioTracks[0].enabled = false;
}
}function muteMicrophone(name) {
participants[name].rtcPeer.audioEnabled = false;
}function muteMicrophone(name) {
participants[name].rtcPeer.peerConnection.getLocalStreams()[0].getAudioTracks()[0].enabled = false;
}Hi all,