addyosmani / getUserMedia.js

Shim for getUserMedia(). Uses native implementation for modern browsers and a Flash fallback for everyone else.
MIT License
903 stars 158 forks source link

cam.capture always undefined #71

Open cubosystemsInternational opened 4 years ago

cubosystemsInternational commented 4 years ago

Hello, I am in need of integrating web cam and access its audio/video streams in IE. I have tried your shim and it works fine up to a certain point.

In getUserMedia.js, line no 103, here, there is a condition where you check if the capture is not undefined. In my case, it always becomes undefined .

I have console logged that particular element and it looks like this: <!--[if IE]>--><object width="320" height="240" id="XwebcamXobjectX" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="/Scripts/jscam_canvas_only.swf"><!--<![endif]--><!--[if !IE]>--><object width="320" height="240" id="XwebcamXobjectX" data="/Scripts/jscam_canvas_only.swf" type="application/x-shockwave-flash"><!--<![endif]--><param name="FlashVars" value="mode=callback&amp;quality=85"><param name="allowScriptAccess" value="always"></object></object>

Is there any particular reason why this is happening? Am I missing something? Please help me on this.

Thank you