Camera demo - No picture shown on iOS

  1. The camera demo just does not work on my iPhone. No picture shown. It does work though on my MS Surface Pro. How to fix this?

  2. The TMS Web Core manual says: "[TWebCamera ] is not yet supported in iOS PWA". When will that change? Is there a workaround for this? Else this would be a showstopper for our project.

Delphi 10.4 Version 27.0.38860.1461
Web Core v1.5.6.0
iOS 13.4.1

Kind regards, Walter

Edit: On my MS Surface Pro, it only shows a picture when run through the Delphi IDE. It does NOT run on the very same MS Surface Pro when loaded from an external webserver. The picture just stays gray.

Hi,

  1. Does this concern our demos that are available online or did you run the project yourself? How did you try to test it, what were your exact steps?
  2. This was a bug in WebKit. It should be fixed in Safari browsers from iOS 13.4 (bugzilla) and it looks like it will be fixed in WKWebView-based browsers from iOS 14.3 (bugzilla).
  3. Keep in mind that you cannot access the camera without secure context. This means either you need to run your application on your localhost or you need HTTPS.

Dear Tünde,
thank you for your input. In fact, we had two issues here. We didn't use HTTPS and the iOS was outdated. At least I can tell you that with iOS 13.4.1 it does NOT work. With an up to date iOS it worked.
Kind regards
Walter

Dear Walter,

Thanks for confirming! Perhaps there were still issues with the fix introduced in 13.4, but I'm glad that a later version worked for you.