navigator.getMediaDevices / navigator.enumerateDevices / MediaStreamTrack.getSources using RTCMultiConnection.js!

HOME © Muaz Khan . @WebRTCWeb . Github . Latest issues . What's New?

Select Media Device






How to get media devices?

                connection.enumerateDevices(function(devices) { devices.forEach(function (device) { // device.kind == 'audioinput' || 'audiooutput' || 'audio' // device.kind == 'videoinput' || 'videooutput' || 'video' // device.deviceId // connection.selectDevices('deviceId'); // connection.captureUserMedia(); }); });
            

Reference Links

  1. http://www.rtcmulticonnection.org/docs/getDevices/
  2. http://www.rtcmulticonnection.org/docs/selectDevices/

Feedback

Enter your email too; if you want "direct" reply!

Latest Updates