[英]Which media device is WebRTC using
Following this question How to choose input video device for webrtc? 跟随这个问题如何为webrtc选择输入视频设备? , how can I know which device is currently used by WebRTC?
,我怎么知道WebRTC当前使用哪个设备? (let's say I just want to display its label in the page)
(假设我只想在页面中显示其标签)
MediaStreamTrack (您从getUserMedia成功回调获取的MediaStream的一部分;使用stream.getTracks()
获取所有轨道)具有label
属性,该属性指示使用的设备的名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.