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

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

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/

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745398715a4626000.html

相关推荐

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

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

    4小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信