microsoft / WebRTC-universal-samples

WebRTC samples for the Universal Windows Platform.
177 stars 71 forks source link

Question: Supporting selectable audio/video devices #33

Open brooksyott opened 6 years ago

brooksyott commented 6 years ago

The readme indicates that the current webrtc api does not support selecting the audio device (microphone/speaker).

Do you know when this is expected to be selectable? I would like to try creating a test app that uses an audio file to mimic the microphone (party a calls party b, party b answers automatically and plays back and audio file).

Thank you.

jamescadd commented 6 years ago

On selection we do (and have for some time) had plans to add this to WebRTC in a similar way that it's available on iOS and Android. There has been plenty of demand for the feature, it'll likely be up next once M66 is fully stable. No date yet but I'll update the thread when work starts.

For streaming a file this isn't currently planned. You could build it yourself though - start looking through these files: webrtc\xplatform\webrtc\webrtc\modules\audio_device\win\ audio_device_wasapi_win.h webrtc\xplatform\webrtc\webrtc\modules\audio_device\win\ audio_device_wasapi_win.cc