question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[IFRAME API] The video facing mode constraint is not working anymore in IOS safari

See original GitHub issue

Problem: The facing mode constraint config is not working anymore in IOS safari.

Config:

configOptions.configOverwrite = {
   constraints: {
     video: {
       facingMode: 'environment'
     }
   }
}

Expected:
The facing mode config should be working. Working sample: https://philnash.github.io/mediadevices-camera-selection/

@jallamsetty1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
nadeliciouscommented, Jun 22, 2021

@nadelicious, Do you use the resolution config.js option for specifying the resolution ?

Yes, I used resolution config. Sorry I didn’t notice this response.

1reaction
nadeliciouscommented, Jun 22, 2021

Can you please check if this commit fixes your issue ?

I think so. When this will be merged to 8x8.vc?

Thanks for verifying the fix. We pushed out a release on 8x8.vc last Friday. I am not sure when the next release is planned. Until then, you can use a workaround. Instead of using resolution option in config.js, you can specify the resolution under constraints along with the camera facing mode. Something like this.

constraints: {
        video: {
            height: {
                ideal: 720
            },
            facingMode: 'environment'
        }
    },

Okay. thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS/Safari does not work if camera facingMode has ... - GitHub
Steps to reproduce the behavior: Instantiate new video element and use getUserMedia to start it up; Change the facingMode of the video element ......
Read more >
MediaTrackConstraints.facingMode - Web APIs | MDN
An object based on ConstrainDOMString specifying one or more acceptable, ideal, and/or exact (mandatory) facing modes are acceptable for a video ...
Read more >
iOS 15 Safari WebRTC Issue | Apple Developer Forums
We're encountering an issue on the iOS 15 Beta when establishing a WebRTC connection through Safari, where we are not receiving the remote...
Read more >
getUserMedia constraints ignored on Safari 12 - Stack Overflow
The issue is enforcement of the supported constraints ( facingMode in this case). This problem can be easily replicated with the code provided, ......
Read more >
Media Capture and Streams - W3C
This document defines a set of JavaScript APIs that allow local media, including audio and video, to be requested from a platform.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found