使用Jquery或Javascript检测相机

时间:2017-12-13 05:57:00

标签: javascript jquery photobooth

我正在使用photobooth js在localhost上工作正常但是当我在实时服务器上使用时我收到错误**请让Photobooth使用您的网络摄像头。请在Google Chrome中重试。请让我知道如何解决这个问题。

enter image description here

的Javascript

$( '#example' ).photobooth().on( "image", function( event, dataUrl ){
    $( "#gallery" ).show().html( '<img src="' + dataUrl + '" ><input type="hidden" id="imgdata" value="' + dataUrl + '" >');
});

0 个答案:

没有答案