window.EnxRtc.getSelectedDevice()
method is used to get the currently selected or in-use Audio Device for the Stream.
Method: getSelectedDevice( successCallback, errorCallback )
Parameters:
@param {CallableFunction} successCallback
@param {CallableFunction} errorCallback
window.EnxRtc.getSelectedDevice(function (data) { console.log(JSON.stringify(data.data)); }, function (err) { console.log('JSON.stringify(err)); });