Temasys / SkylinkJS

SkylinkJS Javascript WebRTC SDK
http://skylink.io/web
Other
275 stars 57 forks source link

Change audio source when screensharing #374

Closed HemanthEverest closed 5 years ago

HemanthEverest commented 5 years ago

Hi,

Is there any way i could change the audio source while sharing screen. I couldn't find a way by going through your documentation.

paoloposadas commented 5 years ago

Hi Hemanth,

You can use sendStream({ audio: { deviceId: xxx }, video: { deviceId: xxx } });

Do note that this method inherits options from getUserMedia(). You can read more about getUserMedia() on the link below. https://cdn.temasys.com.sg/skylink/skylinkjs/latest/doc/classes/Skylink.html#method_getUserMedia