audio mute / unmute problem

41 views
Skip to first unread message

vigneshwaran s

unread,
Sep 23, 2015, 7:45:24 AM9/23/15
to discuss-webrtc
  Hello ,


       I tried to Mute the Audio of the Local Stream , But Still  the audio is not getting muted.Please correct me if I m wrong or suggest me the wright way to mute the sudio of locla stream

        std::vector<rtc::scoped_refptr<webrtc::AudioTrackInterface> > audioTrack = mainApp->GetLocalMediaStream()->GetAudioTracks();
for (int i = 0; i < audioTrack.size(); i++)
{
audioTrack[i]->set_enabled(false);
}
return S_OK;

Christoffer Jansson

unread,
Nov 9, 2015, 5:41:42 AM11/9/15
to discuss-webrtc
Hi,

Could you try the approach in this test instead?

/Chris
Reply all
Reply to author
Forward
0 new messages