mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 833|reply: 6
打印 prevThread nextThread

WEB在关闭推流无法发送BVCU_EVENT_DIALOG_CLOSE

[copyURL]

29

主题

93

帖子

309

积分

midMem

Rank: 3Rank: 3

积分
309
jumpTo
owner
poston 2021-10-21 09:57 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
我们自己写的WEB端代码如下:
function testCloseVideo() {
    var szpuid = document.getElementById("puid").value;
    var channelindex = document.getElementById("id_cindex").value;
    var chanel = session.swGetPuChanel(szpuid, channelindex);
    var result = chanel.swClose();
    if (result != jSW.RcCode.RC_CODE_S_OK) {
      alert("打开对讲失败: " + result);
    }
  }

这个代码发送关闭推流,无法调用android端的BVCU_EVENT_DIALOG_CLOSE事件,导致推流无法被关闭。

使用https://47.98.135.115:9443/demo/intercom.html这个链接的关闭Video或者直接关闭浏览器, android端都可以收到BVCU_EVENT_DIALOG_CLOSE事件。

请问https://47.98.135.115:9443/demo/intercom.html 在”关闭Video“或者关闭浏览器,还缺少那个方法没有被调用到。

reply

使用道具 report

6

主题

407

帖子

1614

积分

vipMem

Rank: 6Rank: 6

积分
1614
sofa
poston 2021-10-21 10:20 | authorOnly
你好,调用swOpen打开通道的时候,如果入参ismuti为true,表示这个通道可以被多次打开,回调会返回打开的句柄,关闭的时候需要传入这个句柄。
如果通道ismuti为false,关闭的时候,不需要传入这个句柄。
请检查下
reply agree Against

使用道具 report

29

主题

93

帖子

309

积分

midMem

Rank: 3Rank: 3

积分
309
bench
 Owner| poston 2021-10-21 10:26 | authorOnly
现在的问题是, web端没有发送BVCU_EVENT_DIALOG_CLOSE事件过来, 和多次没有关系。
reply agree Against

使用道具 report

29

主题

93

帖子

309

积分

midMem

Rank: 3Rank: 3

积分
309
ground
 Owner| poston 2021-10-21 12:40 | authorOnly
https://47.98.135.115:9443/demo/intercom.html  这里登陆的代码给我们一份。 拜托了
reply agree Against

使用道具 report

11

主题

200

帖子

925

积分

advMem

Rank: 4

积分
925
5#
poston 2021-10-21 12:52 | authorOnly
服务器安装目录\BesoVideo\Server\webapi_nginx\html\Demo 有全部代码
reply agree Against

使用道具 report

29

主题

93

帖子

309

积分

midMem

Rank: 3Rank: 3

积分
309
6#
 Owner| poston 2021-10-21 13:15 | authorOnly
github连接地址有么
reply agree Against

使用道具 report

3

主题

341

帖子

1783

积分

vipMem

Rank: 6Rank: 6

积分
1783
7#
poston 2021-10-21 17:19 | authorOnly
无线图传智能移动视频类~典型产品&方案及常用技术支持资料(包含软件下载网盘目录结构,设备模拟器/平台软件, 平台对接融合-二次开发SDK源代码,视频教程,产品手册/文档等),所有常用信息资料均在此页面,
https://www.besovideo.com/detail?t=1&i=85
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-6 23:52 , Processed in 0.059572 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList