firefox不支持mediastreamtrack.getsources,如何做等效 [英] mediastreamtrack.getsources not supported in firefox, how to do the equivalent

查看:2168
本文介绍了firefox不支持mediastreamtrack.getsources,如何做等效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有相当的方式来获得连接到PC的视频设备的列表?除了内置的外,我还有一个外部摄像头连接。

mediastreamtrack.getsources在chrome中工作,但firefox报告TypeError:MediaStreamTrack.getSources不是函数。我正在运行firefox版本25.0.1



谢谢!

解决方案

MediaDevices.enumerateDevices()

is there an equivalent way to get the list of video devices connected to the PC? I have an external webcam connection in addition to the build-in one.

mediastreamtrack.getsources is working in chrome but firefox reported "TypeError: MediaStreamTrack.getSources is not a function". I am running firefox version 25.0.1

Thanks!

解决方案

MediaDevices.enumerateDevices() is now supported by Firefox and Chrome.

这篇关于firefox不支持mediastreamtrack.getsources,如何做等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆