jhuckaby / webcamjs

HTML5 Webcam Image Capture Library with Flash Fallback
MIT License
2.5k stars 1.11k forks source link

WebcamJS does not work through VPN portal #246

Open aanekrasov opened 7 years ago

aanekrasov commented 7 years ago

when working through the VPN portal, the link reverted links and the application can not access the video stream I tested the attached changes in the code (the link is replaced with an HTML5 object), namely: In the file webcam.js 315 the string: video.src = window.URL.createObjectURL (stream) || stream; replaced by: video.srcObject = stream;

In the webcam.min.js file line: n.src = e.URL.createObjectURL (t) || t replaced by: n.srcObject = t

this fix allows the camera to work through the VPN portal (Cisco SSL VPN) and without the portal also works, can you check this change and apply it to this product? (make changes in the code) webcamjs-master-modification.zip