purple-technology / react-camera-pro

Mobile first camera component for React.
MIT License
182 stars 89 forks source link

Cannot load the camera into the canvas for iOS WKWebView #40

Open riyanpratamap opened 1 year ago

riyanpratamap commented 1 year ago

Hi, i am using WKWebView running on iOS 16.5. I tried to load the example https://purple-technology.github.io/react-camera-pro/ but I cannot see the camera loaded into the canvas. It just completely white

Screenshot 2023-06-08 at 09 00 24

I already give the permission for camera access but still didn't load the live camera. I get error on my xcode when running the project

RealtimeMediaSource::selectSettings failed constraint 10

Is there any issue? Thanks

Raphael-Schulz commented 1 year ago

We are also experiencing issues since ios version 16.5.1

It looks like Apple is changing various things in their Webkit which results in problems while using the Camera in Safari. See https://support.apple.com/en-us/HT213841

Right now we are struggeling with the issue that occasionally the result of takePhoto is data:, instead of the base64 encoded picture.