Jump to content
  • 0

Sharing a Chrome tab using ant media server


Jose Israel Diaz Zapata
 Share

Question

Hi, there is a strange behavior when I share a Chrome tab with audio(the little checkbox checked). So the problem is that I have to turn on my mic so that the other participants in the room can listen to the audio from the tab, and obviously they can hear my voice too if I talk. My question is what should I do if I want to have the 2 audio streams separately so that the participants can hear the audio and I can turn off my mic.

Ant media server js sdk

Have a good day.

Israel Díaz 
Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Hi Israel,

Thank you for this question. It relates to some configuration parameter.
As per our users request we have mixed the microphone audio and chrome tab audio into a single audio so this is an expected behaviour.

However, we have some parameters that can be changed to separate microphone gain and chrome audio.

under webrtc_adaptor.js there's mixAudioStreams section under which

https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/js/webrtc_adaptor.js#L741

and you can declare this.secondStreamGainNode.gain.value = 0

to change the gain in the microphone.

 

--
Best Regards,
Mohit Dubey
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...