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.