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

demo not working in firefox 29.0.1 #28

Open andrea-spotsoftware opened 10 years ago

andrea-spotsoftware commented 10 years ago

check-out http://addyosmani.github.io/getUserMedia.js/face-detection-demo/index.html

the permission popup is showed, but the webcam stream is not rendered on the box

andrea-spotsoftware commented 10 years ago

i fixed it.

Based on the example: http://www.sitepoint.com/introduction-getusermedia-api/

In the success callback of the demo, instead of: video.src = stream;

type this: createSrc(stream);

where createSrc is the function below (add it somewhere): var createSrc = window.URL ? window.URL.createObjectURL : function(stream) {return stream;};

...and i just saw that you wrote something like this in github readme! ;) So the only need is to update the demo, then close