簡體   English   中英

無法連接到scriptcam服務器

[英]Won't connect to scriptcam server

我已將scriptcam放入2台主機服務器。 Bluehost和Hostinger仍然得到相同的結果,如下所示:(通過chrome web開發工具進行控制台檢查)

ScriptCam version 1.4.0 booting...
Running on Flash PlugIn (WIN 11,6,602,180)
Adding global error handler
Adding right mousehandler
Retrieving flashvars
id:webcam
zoomChat:1
fileReady:function fileReady(qfileName) {
                //$('#recorder').hide();
                $('#message').html('Please wait for the file conversion to finish...');
                waitForMovie(qfileName);
            }
zoom:1
skewX:0
filename:testfile
rotate:0
noFlashFound:<p>You need <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player 11.4</a> to use this software.<br/>Please click on the link to download the installer.</p>
flip:0
cornerRadius:0
width:550
setVolume:function setVolume(value) {
            $('#currentVolume').val(value);
            alert('Current Volume is ' + value);
            $.scriptcam.changeVolume(50);
            }
chatWindow:chatWindow
height:320
maximumTime:30
onError:function onError(errorId,errorMsg) {
                alert(errorMsg);
            }
path:scriptcam/
connected:function showRecord() {
                alert('Connect !!!');
                $( "#recordStartButton" ).attr( "disabled", false );
                //$('#b-screen').fadeIn(500);
                //$('#start-btn').attr( "disabled", false );
            }
skewY:0
timeLeft:function timeLeft(value) {
                $('input#timeLeft').val(value);
            }
Correcting video dimensions
Correcting scale
Drawing masks in memory
Starting ZXing
Setting AMF3 encoding
Init H264 encoder
h264Settings: Video codec used for compression: H264Avc
h264Settings: Level used for H.264/AVC encoding: 3
h264Settings: Profile used for H.264/AVC encoding: baseline
h264Settings: Bandwidth: 0
h264Settings: FPS: -1
h264Settings: Keyframe interval: 30
h264Settings: Quality: 90
Adding camera
Setting camera size to width: 550 height:320
Hardware acceleration used for camera: STAGEVIDEO
Hardware acceleration is available
License file loaded
Camera: Bandwidth: 0
Camera: Current FPS: 0
Camera: FPS: 30
Camera: Keyframe Interval: 30
Camera: Quality: 90

雖然如果我在演示中查看他們的網站來錄制相機,則會看到以下內容:(通過chrome web開發者工具進行控制台檢查)

ScriptCam version 1.4.0 booting...
Running on Flash PlugIn (WIN 11,6,602,180)
Adding global error handler
Adding right mousehandler
Retrieving flashvars
cornerColor:e3e5e2
id:webcam
cornerRadius:20
timeLeft:function timeLeft(value) {
                $('#timeLeft').val(value);
            }
skewX:0
onError:function onError(errorId,errorMsg) {
                alert(errorMsg);
            }
skewY:0
fileName:demo430142
rotate:0
promptWillShow:function promptWillShow() {
                alert('A security dialog will be shown. Please click on ALLOW.');
            }
noFlashFound:<p>You need <a href="http://www.adobe.com/go/getflashplayer">Adobe Flash Player 11.4</a> to use this software.<br/>Please click on the link to download the installer.</p>
width:320
connected:function showRecord() {
                $( "#recordStartButton" ).attr( "disabled", false );
            }
flip:0
height:240
onWebcamReady:function onWebcamReady(cameraNames,camera,microphoneNames,microphone,volume) {
                $( "#slider" ).slider( "option", "disabled", false );
                $( "#slider" ).slider( "option", "value", volume );
                $.each(cameraNames, function(index, text) {
                    $('#cameraNames').append( $('<option></option>').val(index).html(text) )
                }); 
                $('#cameraNames').val(camera);
                $.each(microphoneNames, function(index, text) {
                    $('#microphoneNames').append( $('<option></option>').val(index).html(text) )
                }); 
                $('#microphoneNames').val(microphone);
            }
path:
showMicrophoneErrors:false
chatWindow:chatWindow
fileReady:function fileReady(fileName) {
                $('#recorder').hide();
                $('#message').html('Please wait for the file conversion to finish...');
                waitForMovie(fileName);
            }
zoom:1
setVolume:function setVolume(value) {
                value=parseInt(32 * value / 100) + 1;
                for (var i=1; i < value; i++) {
                    $('#LedBar' + i).css('visibility','visible');
                }
                for (i=value; i < 33; i++) {
                    $('#LedBar' + i).css('visibility','hidden');
                }
            }
zoomChat:1
Correcting video dimensions
Correcting scale
Drawing masks in memory
Starting ZXing
Setting AMF3 encoding
Init H264 encoder
h264Settings: Video codec used for compression: H264Avc
h264Settings: Level used for H.264/AVC encoding: 3
h264Settings: Profile used for H.264/AVC encoding: baseline
h264Settings: Bandwidth: 0
h264Settings: FPS: -1
h264Settings: Keyframe interval: 30
h264Settings: Quality: 90
Adding camera
Setting camera size to width: 320 height:240
Hardware acceleration used for camera: STAGEVIDEO
Hardware acceleration is available
GET https://www.scriptcam.com/scriptcam.lic 404 (Not Found) demo_2.cfm:804
License could not be found
Camera: Bandwidth: 0
Camera: Current FPS: 0
Camera: FPS: 30
Camera: Keyframe Interval: 30
Camera: Quality: 90
Connecting to server
The page at https://www.scriptcam.com/demo_2.cfm displayed insecure content from http://europe.scriptcam.com:443/fcs/ident2.
 (program):1
POST http://europe.scriptcam.com:443/fcs/ident2 404 (Not Found) europe.scriptcam.com:443/fcs/ident2:1
The page at https://www.scriptcam.com/demo_2.cfm displayed insecure content from http://europe.scriptcam.com:443/open/1.
 (program):1
POST http://europe.scriptcam.com:443/open/1 404 (Not Found) europe.scriptcam.com:443/open/1:1
conectionOK
connectionOK-connect
connectionOK-connect-past
ncstatusevent fired
NetConnection.Connect.Success
NetConnection connected with protocol rtmp, proxy type none, connected proxy type none

如果看到的話,我上傳的頁面是他們的demo2.html,我相信它們的設置與他們網站上的演示頁面相同。 他們的連接不是我的,我在做錯什么嗎? 有沒有人有使用scriptcam(1.40版)的經驗? 還是有人對Javascript Webcam Flash Lib有更好的建議?

任何建議都會大受贊賞...

在此先感謝Arung Isyadi

js代碼中有一個函數:

function fileReady(fileName) {
                $('#recorder').hide();
                $('#message').html('This file is now dowloadable for five minutes over &lt;a href='+fileName+'"&gt;here&lt;/a&gt;.');

[...]

哪個將文件上傳到網絡攝像頭服務器。

錯誤在href值中。

替換: href='+fileName+'"

使用: href='+fileName+'

(刪除最后一個“”)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM