scriptcam不会初始化

时间:2013-09-21 21:26:08

标签: javascript jquery webcam

我在scriptcam上设置了我的帐户,但无法加载相机。我已经创建了一个测试页面,只是让视频播放器启动,这是行不通的。我甚至无法加载错误,所以我怀疑这与scriptcam.js文件甚至没有被加载有关?见下文:

<!DOCTYPE html>

<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="chrome=1" />
    <title>iseYoo video test</title>
    <script language="JavaScript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <script language="JavaScript" src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
    <script language="JavaScript" src="scriptcam.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $("#webcam").scriptcam({ 
                onError: oopsError,
                showDebug: true
            });
        });
        function oopsError(errorId,errorMsg) {
            alert(errorMsg);
        }
        function showCurrentVersion() {
            alert($.scriptcam.version());
        };
    </script>
</head>

<body>
    <div id="webcam"></div>
</body>
</html>

0 个答案:

没有答案