mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
Owner: fanghj90
打印 prevThread nextThread

Web 二次开发支持(请勿回帖,另起新帖)

 关闭 [copyURL]

0

主题

16

帖子

40

积分

newBie

Rank: 1

积分
40
11#
poston 2018-4-19 10:09 | authorOnly
function openVideo() {
        var chanel = session.swGetPuChanel('PU_55AA0000', 0);
        var strVideoDivId = document.getElementById('monitorVideoBodyId');
        if (chanel) {
            var result = chanel.swOpenEx({
                div: 'monitorVideoBodyId',
                prototype: 'auto', //rtmp > hls
                callback: function (options, response) {
                    alert(response.emms.code + "视频打开成功,可以获取URl了");
                    document.getElementById('id_GetUrl_Button').disabled = false;
                }
            });

            if (result != jSW.RcCode.RC_CODE_S_OK) {
                alert('打开视频失败: ' + result);
                document.getElementById('id_GetUrl_Button').disabled = true;
            }
        } else {
            alert('没有该设备通道');
        }
    }

我们这边安卓端已经连上了云端的服务器,服务器上也能看到安卓端的视频,但是我通过上面的方式去获取我们云端上的视频,却获取不到,为什么呢?
reply agree Against

使用道具 report

6

主题

407

帖子

1614

积分

vipMem

Rank: 6Rank: 6

积分
1614
12#
poston 2018-4-19 10:39 | authorOnly
你可以打浏览器的调试模式,看看失败的打印信息,截个图贴在这里。
reply agree Against

使用道具 report

0

主题

16

帖子

40

积分

newBie

Rank: 1

积分
40
13#
poston 2018-4-19 10:52 | authorOnly
IBeli post on2018-4-19 10:39
你可以打浏览器的调试模式,看看失败的打印信息,截个图贴在这里。

我已经解决了,谢谢
reply agree Against

使用道具 report

0

主题

16

帖子

40

积分

newBie

Rank: 1

积分
40
14#
poston 2018-4-19 10:54 | authorOnly
为什么云端接收到的视频延迟会那么高呢?延迟15秒左右,就是说接收到的画面是安卓端15秒前的画面
reply agree Against

使用道具 report

0

主题

16

帖子

40

积分

newBie

Rank: 1

积分
40
15#
poston 2018-4-19 10:59 | authorOnly
而且即使我把网络从wifi切换成4G,延迟也是很高
reply agree Against

使用道具 report

60

主题

1413

帖子

5799

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5799
16#
poston 2018-4-19 11:13 | authorOnly
你估计是走HLS的,那个就是那么大延迟。
用OCX插件就很小,跟C/S接近,用非插件的RTMP也比较小。
reply agree Against

使用道具 report

0

主题

16

帖子

40

积分

newBie

Rank: 1

积分
40
17#
poston 2018-4-19 11:24 | authorOnly
besovideo post on2018-4-19 11:13
你估计是走HLS的,那个就是那么大延迟。
用OCX插件就很小,跟C/S接近,用非插件的RTMP也比较小。

那非插件的RTMP该怎么实现呢?
reply agree Against

使用道具 report

60

主题

1413

帖子

5799

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5799
18#
poston 2018-4-19 11:36 | authorOnly
PC安装FLASH插件。软件是自动检测的,看你PC是否有安装FLASH播放器,如果有,就自动走RTMP,如果没有,则走HLS。
HLS会增加8-10秒的延迟。

reply agree Against

使用道具 report

0

主题

16

帖子

40

积分

newBie

Rank: 1

积分
40
19#
poston 2018-4-19 11:40 | authorOnly
function openVideo() {
            var chanelArr =  session._arr_pu[0]._arr_channel;
        /* var chanel = session.swGetPuChanel('PU_55AA0000', 0); */
        var chanel = chanelArr[0];
        var strVideoDivId = document.getElementById('monitorVideoBodyId');
        if (chanel) {
            var result = chanel.swOpenEx({
                div: 'monitorVideoBodyId',
                prototype: 'auto', //rtmp > hls
                callback: function (options, response) {
                    alert(response.emms.code + "视频打开成功,可以获取URl了");
                }
            });
            
            chanel.swOpenIntercom({
                    callback: function (options, response) {
                    if (response.emms.code == jSW.RcCode.RC_CODE_S_OK) {
                        alert('打开对讲成功: ' + result);
                    }
                },
                tag: chanel
                   });

            if (result != jSW.RcCode.RC_CODE_S_OK) {
                alert('打开视频失败: ' + result);
            }
        } else {
            alert('没有该设备通道');
        }
    }

我想实现对讲功能,但是程序跑到chanel.swOpenIntercom这里的时候就报错:
only ocx support Intercom
on open chanle, result Failed
cmd: openchanle fail 20106
        _internalOnResponseSuccess
http://120.79.160.104:8081/js/jsw.js:1:46661
success
http://120.79.160.104:8081/js/jsw.js:1:136252
libInit/</</t.txOnResponse/<
http://120.79.160.104:8081/js/jsw.js:1:135329
attribute
http://localhost:8080/easyee-sm/doc/controlplatform/map.jsp:93:4
x.lang.Ca.prototype.dispatchEvent
http://api.map.baidu.com/getscript:1:8865
ca/<
http://api.map.baidu.com/getscript:1:1291

internal error: openchanlecmd: openchanle fail 20106
_internalOnResponseFail
http://120.79.160.104:8081/js/jsw.js:1:19783
_internalOnResponseSuccess
http://120.79.160.104:8081/js/jsw.js:1:46679
success
http://120.79.160.104:8081/js/jsw.js:1:136252
libInit/</</t.txOnResponse/<
http://120.79.160.104:8081/js/jsw.js:1:135329
attribute
http://localhost:8080/easyee-sm/doc/controlplatform/map.jsp:93:4
x.lang.Ca.prototype.dispatchEvent
http://api.map.baidu.com/getscript:1:8865
ca/<
reply agree Against

使用道具 report

0

主题

16

帖子

40

积分

newBie

Rank: 1

积分
40
20#
poston 2018-4-19 11:47 | authorOnly
besovideo post on2018-4-19 11:36
PC安装FLASH插件。软件是自动检测的,看你PC是否有安装FLASH播放器,如果有,就自动走RTMP,如果没有,则走 ...

那我怎么知道是走了RTMP呢?从哪些地方可以看得到?
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-4-26 07:51 , Processed in 0.067386 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList