mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 3327|reply: 8
打印 prevThread nextThread

RTMP url

[copyURL]

1

主题

5

帖子

13

积分

newBie

Rank: 1

积分
13
jumpTo
owner
poston 2017-11-30 15:49 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
how to get video preview from cam by RTMP url? How to create a rtmp url?

reply

使用道具 report

60

主题

1428

帖子

5953

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5953
sofa
poston 2017-11-30 15:52 | authorOnly
hi, you set up your own smarteye server?
and how about that URL you test that day?
rtmp://188.121.2.252:1935/bvapp/PU_29238465_00_20171128_124236_7623
reply agree Against

使用道具 report

1

主题

5

帖子

13

积分

newBie

Rank: 1

积分
13
bench
 Owner| poston 2017-11-30 15:58 | authorOnly
yes, client had installed smarteye server
reply agree Against

使用道具 report

1

主题

5

帖子

13

积分

newBie

Rank: 1

积分
13
ground
 Owner| poston 2017-11-30 16:03 | authorOnly
client added a line to java script and when he was starting player in web CMS it show him rtmp url

本帖子中包含更多资源

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

x
reply agree Against

使用道具 report

1

主题

5

帖子

13

积分

newBie

Rank: 1

积分
13
5#
 Owner| poston 2017-11-30 16:05 | authorOnly
but he does not know exactly how to create this url manually to get preview from each cam
reply agree Against

使用道具 report

1

主题

589

帖子

2045

积分

vipMem

Rank: 6Rank: 6

积分
2045
6#
poston 2017-11-30 16:22 | authorOnly
CamillaTang post on2017-11-30 16:05
but he does not know exactly how to create this url manually to get preview from each cam

hi, Did you change the web cms code?  
you want to play video in web CMS? not show rtmp url?
reply agree Against

使用道具 report

6

主题

438

帖子

1722

积分

vipMem

Rank: 6Rank: 6

积分
1722
7#
poston 2017-11-30 16:41 | authorOnly
In the Web Simple, We call the function named 'swOpenEx' to open a SWVideoChanel and preview on a div, So this  process include create a rtmp url and preview.
if want to create an url manually please follow steps below
1、 call function named 'swOpenEx' , it has 4 args , callback , div , prototype, media.  you should set prototype with string "rtmp" . others follow the document or ack here
2、if callback function be called, it mean rtmp url creatd OK, and you can call function 'swGetUrl' to get it


function testOpenVideo() {        var chanel = session.swGetPuChanel('PU_55AA0000', 0);          if (chanel) {            var result = chanel.swOpenEx({                div: null, //if you set a html div element id here we will preview on the div                prototype: 'rtmp', //rtmp > hls //                callback: function (options, response) {                    if(response.emms.code == jSW.RcCode.RC_CODE_S_OK){//if open successfully
                        var rtmpurl = chanel.swGetUrl()
                        alert(rtmpurl );
                    }                    document.getElementById('id_GetUrl_Button').disabled = 'false';                }            });            if (result != jSW.RcCode.RC_CODE_S_OK) {                alert('open error: ' + result);            }        } else {            alert('没有该设备通道');        }    }
reply agree Against

使用道具 report

1

主题

5

帖子

13

积分

newBie

Rank: 1

积分
13
8#
 Owner| poston 2017-11-30 16:43 | authorOnly
Yes ,he added one line to web cms code (to java script). because web cms has a flash player which plays rtmp streams,so he added popup to show url that player is currently play. but he need this rtmp to connect cms to external system,so he would be good to know if there is possibility to get directly video preview from cam by rtmp.how to create rtmp urls?
reply agree Against

使用道具 report

60

主题

1428

帖子

5953

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5953
9#
poston 2017-11-30 16:45 | authorOnly
let me explain,
first a smarteye server with WEB API plugin must be installed and runs up.
then a stream request must be done first manually or by code,
then you may find a RTMP URL based on this session with PU_ID+sessionID+channelNO+yyyymmdd_hhmmss+a random number,
such as you did last time,
rtmp://188.121.2.252:1935/bvapp/PU_29238465_00_20171128_124236_7623
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-12-23 01:25 , Processed in 0.060543 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList