mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 5479|reply: 3
打印 prevThread nextThread

jsw-session.js:81 WebSocket connection to 'ws://61.191.27.18:9443/jswapi' fai...

[copyURL]

14

主题

25

帖子

114

积分

member

Rank: 2

积分
114
jumpTo
owner
poston 2020-6-16 16:33 | authorOnly 回帖奖励 |倒序浏览 |阅读模式

Start Jsw Init
dependency_mgr.js:40 GET http://localhost:8762/youshi/js/jswlib/thlib/HttpFlv/codec/libffmpeg_265.js net::ERR_ABORTED 404 (Not Found)
jSWUtils.js:364 using broswer websocket
jSWProtocol.js:43 ws url: ws://61.191.27.18:9443/jswapi
jsw-session.js:176 websoket connect ...
jsw-session.js:81 WebSocket connection to 'ws://61.191.27.18:9443/jswapi' failed: Error during WebSocket handshake: Unexpected response code: 400
jsw-session.js:195 http websoket connect closed:1006 reason:
jsw-session.js:226 session did not login, should not reconnect




<script src="../Jquery/jquery-3.1.1.min.js"></script>
<script src="BootStrap4.0.0/bootstrap.min.js"></script>
<script src="../js/jsw.js"></script>
<link rel="stylesheet" type="text/css" href="logindemo.css"/>
<link rel="stylesheet" type="text/css" href="BootStrap4.0.0/bootstrap.min.css" />
window.onload = function () {
  jSW.swInit({
    url: 'https://61.191.27.18:9443', // bv_nginx.exe服务器地址
    calltype: jSW.CallProtoType.AUTO, // AUTO: IE优先使用OCX, 如果希望IE仍然使用HTTP通信, 请使用jSW.CallProtoType.HTTP
  });
};
window.onbeforeunload = function () {
  jSW.swDeInit();
};

var session = null;
  /*手动登录*/
function testLogin() {
  if (session) {
    delete session;
  }
  session = new jSW.SWSession({
    server: '61.191.27.18', // 如果是jSW.CallProtoType.OCX方式,这里需要填写具体的IP
    port: 9701,
    onopen: function (sess) {
      sess.swLogin({
        user: 'test',
        password: '123'
      });
    }
  });

  // 注册事件的回调函数
  session.swAddCallBack('login', function (sender, event, json) {
    alert(JSON.stringify(json, null, 4));
  });
  session.swAddCallBack('logout', sessionCallback);
  session.swAddCallBack('pulist', sessionCallback);

本帖子中包含更多资源

pls login 才可以下载或查看,没有帐号?registerNow

x
reply

使用道具 report

11

主题

203

帖子

935

积分

advMem

Rank: 4

积分
935
sofa
poston 2020-6-16 16:39 | authorOnly
当前在用的web服务是什么版本的
reply agree Against

使用道具 report

14

主题

25

帖子

114

积分

member

Rank: 2

积分
114
bench
 Owner| poston 2020-6-16 18:35 | authorOnly
这个问题是因为请求了 http 而不是 https,已经解决
reply agree Against

使用道具 report

13

主题

373

帖子

2037

积分

vipMem

Rank: 6Rank: 6

积分
2037
ground
poston 2020-6-17 04:00 | authorOnly
感谢分享
reply

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-11-1 08:01 , Processed in 0.065432 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList