getusermedia implementation in Firefox

149 views
Skip to first unread message

Dan Hotz

unread,
Sep 22, 2016, 7:22:28 AM9/22/16
to discuss-webrtc
Hi,  I am constrained to using Firefox for WebRTC, I cannot use Chrome.  However Chrome seems to be the only browser that supports the getusermedia, which, I believe, allows the user to select cameras when more than one camera is in use for the session.  there is a drop down on the upper right of the user's screen in Chrome that allows this selection.
When will Firefox support this function?
Thanks!
Dan

Christoffer Jansson

unread,
Sep 22, 2016, 7:24:36 AM9/22/16
to discuss-webrtc
Hi,

GetUserMedia has been supported for a long time in Firefox. The drop down has nothing to do with the getUserMedia implementation.

Just use the javascript api enumerateDevices and getUserMedia in order to select devices in Chrome or Firefox.

Demo page here.

/Chris

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/e7309f21-16ca-4775-88e5-ae4b8c6d7927%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
/Chris

Vineeth Bhargavan

unread,
Jan 5, 2017, 2:23:10 AM1/5/17
to discuss-webrtc
Hi Chris,

The enumerateDevice , works fine in Chrome to fetch both the input and output devices. However when it comes to firefox only the Input devices gets displayed and not the output devices. I am using firefox 50.1.0 and I tried using the demp page mentioned in your post.

Appreciate if you could throw some pointers on how I can get to select the Audio output devices in Firefox.

Regards
Vineeth.

Christoffer Jansson

unread,
Jan 5, 2017, 3:08:58 AM1/5/17
to discuss...@googlegroups.com, Maire Reavy, Jan-Ivar Bruaroey
Not sure if you can, maybe Maire or Jan-Ivar knows?

/Chris


For more options, visit https://groups.google.com/d/optout.
--
/Chris

Philipp Hancke

unread,
Jan 5, 2017, 8:22:25 AM1/5/17
to discuss...@googlegroups.com, Maire Reavy, Jan-Ivar Bruaroey
this relies on setSinkId which is not yet implemented in Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1264375

You can check whether this is supported by looking at this:
  (window.HTMLMediaElement && ("sinkId" in window.HTMLMediaElement.prototype))
and only display the option to select the output device accordingly.

/Chris


To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
--
/Chris

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAAdOTUM8s7OD%2Bcwbc885B7wBpVFX3ThC5SMgPrcO6e8mP_MtBg%40mail.gmail.com.

Vineeth Bhargavan

unread,
Jan 12, 2017, 5:49:37 PM1/12/17
to discuss-webrtc, maire...@gmail.com, j...@mozilla.com
Thanks Philipp. I did look for SinkId in Firefox under the location you mentioned. Unfortunately, I couldn't find it - does this mean that the option for Output media device selection is not possible in firefox? Isn't there any other workaround?
Appreciate your inputs.

Regards
Vineeth.
/Chris


--
/Chris

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages