Mediastreamtrack.getsources is not supported in firefox, how to make an equivalent

Is there an equivalent way to get a list of video devices connected to a PC? I have an external connection to the webcam in addition to the built-in.

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

Thanks!

+6
source share
3 answers

Starting with Nightly 28.0a1, Firefox has nothing to do with Chrome MediaStreamTrack.getSources. So no, there is currently no way to get a list of local audio and video devices in Firefox.

I asked the developers working on the Firefox WebRTC implementation, and they say that this is a planned feature, but not ETA when it lands. You can view the irc magazine (scroll to 16:17) if you're interested.

In addition, here is the relevant part in the draft W3C spec .

+2
source

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

+1
source

Starting with Firefox 34, MediaStreamTrack is now available.

https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack

-3
source

Source: https://habr.com/ru/post/958528/


All Articles