赞
踩
最近公司派我去完成一个有关推流翻译音频的桌面应用,近期的博客会围绕着这方面展开,包括使用到的相关技术以及相关的学习到的新东西。
首先是通过js来获取电脑上的音视频设备,这边我做了处理只拿了音频相关的设备
- navigator
- .mediaDevices
- .enumerateDevices()
- .then(function(devices) {
- let audioDevices = devices.filter(device => device.kind === 'audioinput' && device.deviceId !== "default" && device.deviceId !== "communications");
- console.log(audioDevices,devices);
- })
这个东西最终没有用上因为推流是使用ffmpeg来展开的但是这里还是记录下。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。