jhuckaby / webcamjs

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

Flash missing errors are not raised #192

Open shime opened 8 years ago

shime commented 8 years ago

I'm using Safari 9.0.2 on OSX.

    <div id="my-camera" class="image"></div>

      <a class="button" href="javascript:void(take_snapshot())">
         <i class="fa fa-camera"></i>
      </a>
function take_snapshot() {
  Webcam.snap( function(dataUri) {
    document.getElementById('my-result').innerHTML = '<img src="'+dataUri+'"/>';
    currentImage = dataUri;
  } );
}
Webcam.attach( '#my-camera' );

I don't have Flash installed so I guess this should raise an error message informing me that Flash is missing. I only receive alert with this message "Webcam.js Error: Webcam is not loaded yet".

tom94zoe commented 8 years ago

+1

jhuckaby commented 8 years ago

I cannot explain your error. I have Safari 9.1.2 on OS X 10.11.6 and I receive the correct error message when Flash is not installed:

screenshot 2016-09-30 22 45 43

Does the demo page work for you?

https://pixlcore.com/demos/webcamjs/demos/basic.html

Sorry I could not help.

shime commented 8 years ago

No problem, yeah the demo page correctly reports the error.

bedeviere commented 8 years ago

+1

sunilomrey commented 7 years ago

same for me, not able to customise the error message image