CameraError: Camera Could Not Be Captured on iOS Mobile Safari

In my Next.js v9.5.1 project, I've integrated live streaming using Amazon IVS services. Everything is functioning flawlessly across various browsers except for iPhone's Safari browser. When attempting to initiate the stream in Safari, I encounter the following error: "CameraError: Camera could not be captured." If anyone has encountered this issue before, please share your insights so I can address it accordingly.


iPhone 6s, iOS 15

Posted on Oct 11, 2023 10:06 PM

Reply

Similar questions

3 replies

Oct 12, 2023 6:41 AM in response to webbninja-developer

Contact the Next.JS and React folks for assistance, as those are the platform you’re building to. Not to iOS and the native frameworks. I would not assume that iOS is even involved in any of this save incidentally, but rather that this is a Next.js or React bug.


Yes, iOS is present, but you’re building your apps to an immensely complex platform that seeks to entirely abstract and manage that iOS (or Android/AOSP or whatever else) access for you.


And Next.js and React (the platform you’re based on) are not working here.


This is no different than seeking help with Facebook or Instagram or other apps. It’s the app maintainers that are the contact, not anybody around here.


You’re not developing for iOS, you’re developing for Next.js and React.

Oct 13, 2023 8:01 AM in response to webbninja-developer

webbninja-developer wrote:

I agree with all your points, but the main issue is on iOS Safari, it doesn't support the camera and microphone. Sometimes I get this error: 'CameraError: Camera Could Not Be Captured' on iOS Mobile Safari. That's why I raised the question: has anyone else faced this type of problem? Otherwise, it's not a React or Next.js issue. Behind the scenes, Next.js and React.js are using JavaScript. Sometimes the 'Navigator: getUserMedia() method' doesn't work on Safari, which is why I added the query on 'discussions.apple.com'."


You have a whole lot of framework code lurking here between what you are writing, and what the folks around here might familiar with. You are not dependent on, not using, and not building for iOS and iPhone apps, you are building for Next.js and React. Yes, React is dependent on iOS and iPhone. You’re not. And as with most of these cross-platform frameworks, these frameworks are always also chasing issues and changes in the underlying platforms. Unless you get exceedingly lucky around here, nobody (here) is going to wade through the framework code to figure out what happened. The framework folks are usually willing to wade though, and can then work with iOS developers or WebKit or whatever other dependency is failing.


If you have an isolated app that calls a WebKit function and fails, put together a reproducer and report that to the WebKit team.

Oct 12, 2023 9:35 PM in response to MrHoffman

I agree with all your points, but the main issue is on iOS Safari, it doesn't support the camera and microphone. Sometimes I get this error: 'CameraError: Camera Could Not Be Captured' on iOS Mobile Safari. That's why I raised the question: has anyone else faced this type of problem? Otherwise, it's not a React or Next.js issue. Behind the scenes, Next.js and React.js are using JavaScript. Sometimes the 'Navigator: getUserMedia() method' doesn't work on Safari, which is why I added the query on 'discussions.apple.com'."

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

CameraError: Camera Could Not Be Captured on iOS Mobile Safari

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.