Jump to content
  • 0

HTML5: Access Back Camera?


Lauren Kelly
 Share

Question

Right now if you view any of the WebRTC broadcast examples (root, peer, conference, etc.) it auto-defaults to the front camera if you're on a mobile device.

Is there a way to allow the user to toggle between front and back camera? I know you offer this in iOS but I am hoping it's possible in javascript.
Link to comment
Share on other sites

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0
Is there any way to select the back camera when streaming WebRTC from an iPhone? 

On Tuesday, April 14, 2020 at 12:30:43 PM UTC+2, mahmut asım Onat wrote:
Hi Lauren.

We are going to include it in our future releases, in the meantime, you can still use back camera, by setting
 mediaConstraints to { audio: true, video: { facingMode: { exact: "environment" } } }

Best,
Asim
Link to comment
Share on other sites

  • 0
This feature is now available in the latest snapshot.

It supports both mobile(back, front) and desktop browsers(usb cameras).  

On Monday, May 25, 2020 at 12:16:35 PM UTC+3, Glen Farley wrote:
Is there any way to select the back camera when streaming WebRTC from an iPhone? 

On Tuesday, April 14, 2020 at 12:30:43 PM UTC+2, mahmut asım Onat wrote:
Hi Lauren.

We are going to include it in our future releases, in the meantime, you can still use back camera, by setting
 mediaConstraints to { audio: true, video: { facingMode: { exact: "environment" } } }

Best,
Asim
Link to comment
Share on other sites

  • 0
Great news and it does work well, but important to note in Safari but NOT in Chrome

On Friday, May 29, 2020 at 1:41:39 AM UTC+2, ahmet oguz mermerkaya wrote:
This feature is now available in the latest snapshot.

It supports both mobile(back, front) and desktop browsers(usb cameras).  

On Monday, May 25, 2020 at 12:16:35 PM UTC+3, Glen Farley wrote:
Is there any way to select the back camera when streaming WebRTC from an iPhone? 

On Tuesday, April 14, 2020 at 12:30:43 PM UTC+2, mahmut asım Onat wrote:
Hi Lauren.

We are going to include it in our future releases, in the meantime, you can still use back camera, by setting
 mediaConstraints to { audio: true, video: { facingMode: { exact: "environment" } } }

Best,
Asim
Link to comment
Share on other sites

 Share

×
×
  • Create New...