2

我已经在 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>
4

0 回答 0