smronju/vue-webcam

Vue-Webcam not working in iOS/Safari

Opened this issue · 0 comments

Hi There

Please can you provide some assistance. The Vue-Webcam plugin works as expected in all major browsers except for Safari. As of iOS 11, Safari natively supports WebRTC, however, this plugin does not work.

When trying to debug, I get the following error:
Unhandled Promise Rejection: TypeError: Type error
which is related to the following line in the VueWebcam.js:
this.src = window.URL.createObjectURL(stream);

I have tried to change window.URL to window.webkit.URL with no success. Is there something I am missing or getting wrong, as I cannot get this plugin to work correctly in Safari.

Thanks