Re: Mute audio

69 views
Skip to first unread message

Jean-David Bonicel

unread,
May 15, 2013, 1:32:44 PM5/15/13
to discuss...@googlegroups.com
I need help please,

How can i mute audio when i'm in video conversation

            getUserMedia({ audio: true, video: true }, function (stream) {
              //selfView.src = webkitURL.createObjectURL(stream);
              streamToAttach = stream;
              document.getElementById('camImg').setAttribute("src", "images/btn_camera_on.png");
              myCam = true;
              document.getElementById('micImg').setAttribute("src", "images/btn_micro_on.png");
              myMic = true;
            
              attachMediaStream(selfView, stream);
              selfView.localStream = stream;
              //selfView.testReadiness();
            });



Le mercredi 15 mai 2013 12:27:36 UTC+2, Jean-David Bonicel a écrit :
hy,

I need some example to mute audio conversation in P2P with HTML tag button.
wich function in javascript do this.

Vikas

unread,
May 15, 2013, 1:41:37 PM5/15/13
to discuss-webrtc
You can use the enabled property in audio tracks to mute an audio. You
can refer to toggleAudioMute() function in apprtc demo source code.
(apprtc.appspot.com)

/Vikas

Vikas

unread,
May 16, 2013, 3:00:22 PM5/16/13
to discuss-webrtc
You can download apprtc code from
https://code.google.com/p/webrtc/source/browse/#svn%2Ftrunk%2Fsamples%2Fjs%2Fapprtc.
Also you need Google App Engine launcher to test with localhost.

/Vikas

On May 16, 2:59 am, jean-da...@videodesk.com wrote:
> how can i install the demo webrtc reference app
> (https://apprtc.appspot.com/)  in my localhost :
>
> i have :
> -Windows 8
> -WampServer
Reply all
Reply to author
Forward
0 new messages