Webview camera feed open a video player on iOS

Hi !

I have a webview and sometimes i need to scan a QR code to do something, so i have a canvas html element with a JS library to scan. But when the app is running on a iOS device, when we open the scanning div, it opens a video player with black screen. like and say live broadcasting. but is a black screen and i don’t want the app to open the video player because the webapp already have a div for that.

I have experienced the same issue on iOS:

  • Webview is loading an external HTML page
  • HTML contains a canvas element
  • Sometimes (but not always) the video player will pop-up and it will be empty (0:00 - 0:00).

Hard to create an “always reproducible example”.