最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

html - How to change audio input in Javascript - Stack Overflow

programmeradmin1浏览0评论

I'm developing a webRTC app, and I want to give users the ability to change their inputs devices (microphones).

I've found the way to display the available devices using navigator.mediaDevices.enumerateDevices() but i'm not able to find how to actually select one of the devices?

How can i set the input device to use in javascript?

Thanks.

I'm developing a webRTC app, and I want to give users the ability to change their inputs devices (microphones).

I've found the way to display the available devices using navigator.mediaDevices.enumerateDevices() but i'm not able to find how to actually select one of the devices?

How can i set the input device to use in javascript?

Thanks.

Share Improve this question edited Oct 13, 2017 at 10:06 Ole Haugset 3,8073 gold badges26 silver badges48 bronze badges asked Oct 13, 2017 at 10:04 A.I.SA.I.S 1113 silver badges10 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 3

You can acplish this by following the example here: https://webrtc.github.io/samples/src/content/devices/input-output/

发布评论

评论列表(0)

  1. 暂无评论