mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
Owner: chengwei
打印 prevThread nextThread

关于指挥调度平台的录像回放功能模块

[copyURL]

0

主题

22

帖子

162

积分

member

Rank: 2

积分
162
owner
poston 2020-8-12 11:12 | 显示全部楼层
您好,”动态获取刷新设备列表“这个功能,
可以用:设备上下线通知的后端接口, 我们已经有了
reply agree Against

使用道具 report

0

主题

22

帖子

162

积分

member

Rank: 2

积分
162
sofa
poston 2020-8-12 11:53 | 显示全部楼层
您好,可以在文档 http://61.191.27.18:8081/doc/  点击 类参考/SWSession/全局事件 找到notify 全局事件,
自动更新可以通过swAddCallBack注册全局事件notify 来接收服务端发送的设备上下线通知,
如:session.swAddCallBack("notify", 回调函数),回调函数内通过http://61.191.27.18:8081/doc/class/jSW.MessageType.html来判断设备上下线。
可以参照http://61.191.27.18:8081/demo/pulist.html





本帖子中包含更多资源

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

x
reply agree Against

使用道具 report

0

主题

22

帖子

162

积分

member

Rank: 2

积分
162
bench
poston 2020-8-13 10:02 | 显示全部楼层
chengwei post on2020-8-12 15:20
可能是我没有表达清楚,目前我们需要获取设备名下的vidoe列表,设备上下线通知接口好像只能获取的设备的 ...

设备上下线通知的载荷: http://61.191.27.18:8081/doc/class/OptionNotifyPuOnOffline.html

设备对象: http://61.191.27.18:8081/doc/class/jSW.SWPu.html

您可以直接在上下线通知的内容里拿到设备对象,它包含设备的所有方法和设备信息, 可以用它来帮助您实现功能:

  //使用swSession注册通知事件
  session.swAddCallBack("notify", sessionCallback);

  // 事件回调函数
  function sessionCallback(sender, event, json) {
    if (event === "notify" && json.msg === "notify_pu_onoffline") {
      console.log(`设备上下线,服务器通知内容:`);
      console.table(json);
      return;
    }
  }

当有设备上下线时,输出:






本帖子中包含更多资源

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

x
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-7 12:02 , Processed in 0.060543 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList