mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
Owner: fanghj90
打印 prevThread nextThread

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

 关闭 [copyURL]

60

主题

1415

帖子

5819

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5819
11#
poston 2018-4-18 17:10 | authorOnly
您参阅我们提供的代码了吗?我们的WEB页面就是参考代码,可先用起来,看到图像后,查看HTML源代码。
reply agree Against

使用道具 report

6

主题

408

帖子

1618

积分

vipMem

Rank: 6Rank: 6

积分
1618
12#
poston 2018-4-18 17:24 | authorOnly
aa1029340516 post on2018-4-18 17:09
var session = null;
    function testLogin() {
        if (session) { delete session; }

您好,看了代码段,基本没问题。
在调用登录之前需要初始化库,初始化会指定是库的调用方式是插件还是非插件方式。
注意只有在插件的方式下,才需要填写具体的smartEye服务器IP。 HTTP方式请填127.0.0.1这个地址,也可以不传,没有Server这个key。

同时在我们Web插件的安装目录下,是有单独的登录Demo,可以做个参考,以下登录Demo在安装目录的相对路径。
BesoVideo\Server\webAPI_nginx\html\login.html
reply agree Against

使用道具 report

0

主题

16

帖子

40

积分

newBie

Rank: 1

积分
40
13#
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

主题

408

帖子

1618

积分

vipMem

Rank: 6Rank: 6

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

使用道具 report

0

主题

16

帖子

40

积分

newBie

Rank: 1

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

使用道具 report

0

主题

16

帖子

40

积分

newBie

Rank: 1

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

使用道具 report

60

主题

1415

帖子

5819

积分

Moderator

Rank: 7Rank: 7Rank: 7

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

使用道具 report

0

主题

16

帖子

40

积分

newBie

Rank: 1

积分
40
19#
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

主题

1415

帖子

5819

积分

Moderator

Rank: 7Rank: 7Rank: 7

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

reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-17 14:30 , Processed in 0.062502 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList