Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Local audio not working in Icecomm

I'm going through the icecomm webrtc documentation and trying to find how to set local user audios on by default. I can get video working with these lines, but is there an audio parameter for the options?

comm.on(‘local’, function(options) {
    localVideo.src = options.stream;
});
like image 273
FloofyDoug Avatar asked Oct 20 '22 15:10

FloofyDoug


1 Answers

In Icecomm, local audio is turned off by default to eliminate feedback from local audio for video conferencing, but can be accessed by the rawStream property of the options parameter in the comm.on(‘local’, callback) event handler. Like so:

comm.on('local', function(options) {
    localVideo.src = options.rawStream;
});
like image 105
Tony Rizko Avatar answered Oct 27 '22 00:10

Tony Rizko