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.

Camera only works the first time on iOS safari. (Alpha release)

See original GitHub issue

I am trying to connect to a meeting from iOS safari browser. It works fine the first time I start the camera. But if I switch it off and then try turning it on again, it doesn’t start.

On browser console I can see the following warning : 2020-05-29T04:16:11.316Z [modules/RTC/RTCUtils.js] Failed to get access to local media. Error: Invalid constraint [object Object]

And the following error : [native code]:1 2020-05-29T04:16:11.320Z [features/base/tracks] set track unmute failed s {gum: Object, name: "gum.general", message: "Invalid constraint", stack: "s@https://alpha.jitsi.net/libs/lib-jitsi-meet.min.…s?v=4163:1:92377↵promiseReactionJob@[native code]", constructor: function}

I am using the alpha version to test this because the current stable version doesn’t even start the camera not even the first time.

Can anyone help? Is it the web thing or something related to the video bridge?

Steps to reproduce:

  1. Open the web version of alpha.jitsi.net on iOS safari.
  2. Grant access to camera
  3. Open the camera by clicking the camera icon: It will open up your camera
  4. Stop the camera by clicking again on the same button
  5. Then click on the button to start again : Camera won’t start and it will give the above error in the browser console.

Client information:

  • Browser / app version: Safari/ Safari 12
  • Operating System: iOS

Expected behavior:

The camera should start again after clicking the button.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
nathankurtykacommented, Jun 13, 2020

@jallamsetty1 - I can’t even imagine how tricky it must have been to bring this feature to life… great job!

1reaction
jallamsetty1commented, Jun 10, 2020

I’m happy to pull console logs, but I believe the iOS problems are a tad broader than miscellaneous JS or connection errors. For example, loading any room on iOS (on the beta site) displays the local video in some Apple media player completely on top of Safari (Jitsi isn’t even visible any longer).

@jallamsetty1 Maybe we need those CSS classes to hide the inline media controls?

    video::-webkit-media-controls-overlay-play-button {
      display: none;
    }

And maybe some more…

Yeah, I can give those a try but we also have “playsinline” atrribute set to true on the video element so theoretically the preview should not start in full screen mode on iOS 10 and newer versions. I will try to hide the media controls, thanks for the suggestion @saghul.

@nathankurtyka, you can exit full screen with a pinch gesture and the preview will continue to play inline and you should be able to continue with the conference.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Camera only works the first time on iOS safari (iphone). (Alpha ...
I am trying to connect to a meeting from iOS safari browser. It works fine the first time I start the camera.
Read more >
Camera not working on iOS16 | Apple Developer Forums
The camera does not work in any application, in the Camera, in iMessage, Halide, Instagram, WhatsApp,...
Read more >
Safari Technology Preview Release Notes - Apple Developer
With this release, Safari Technology Preview is now available for betas of macOS Big Sur. If you already have Safari Technology Preview installed,...
Read more >
If the camera or flash on your iPhone, iPad, or iPod touch isn't ...
If the flash works only sometimes, open the Camera app and tap the flash button to choose a different setting.
Read more >
Apple Watch SE
Use Apple Watch as a viewfinder for your iPhone camera. See a preview, then set a timer or just snap away. Maps. Get...
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