mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
12
backToList newPost
Owner: chengwei
打印 prevThread nextThread

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

[copyURL]

0

主题

22

帖子

162

积分

member

Rank: 2

积分
162
11#
poston 2020-8-13 10:02 | authorOnly
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

7

主题

42

帖子

211

积分

midMem

Rank: 3Rank: 3

积分
211
12#
 Owner| poston 2020-8-13 13:57 | authorOnly
shirtiny post on2020-8-13 10:02
设备上下线通知的载荷: http://61.191.27.18:8081/doc/class/OptionNotifyPuOnOffline.html

设备对象 ...

好的,我先试试这个方法获取设备信息列表,关于录像视频播放问题后续开发中再进行沟通
reply agree Against

使用道具 report

12
backToList newPost

creditRule

QQ|wireless surveillance

GMT+8, 2024-4-27 07:33 , Processed in 0.061519 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList