mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 306|reply: 33
打印 prevThread nextThread

questions about smarteye WEB SDK/API

[copyURL]

1

主题

21

帖子

61

积分

member

Rank: 2

积分
61
jumpTo
owner
poston 2024-11-8 17:33 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
Dear …
We have a problem while trying to logon using the API’s {user logon} endpoint. So we have a question now.

Q1: Which documentation page correctly describes the login logic:

https://smarteye.besovideo.com/doc/bvcspapi/index.html
with password_encrypted = SHA256({username}_{password}) like “SHA256:6848d6405bf34bf9b2d82ed8822c756807632d3eaefedec90ac33cb32ac83671”

or

https://smarteye.besovideo.com/bvdoc/

with password_encrypted = SHA256( SHA256({username}_{password})_{timestamp} ) like “SHA256_T:ebc145ec6decbc3e7842f1fbc2bd6d0cf65e76f1dc3b7e21ebfd01a5c5a8c65a”

?

Even when I try both(!), I still get StatusCode=200(OK) but the JSON shows me an error like

{
    "code": 14
    , "msg ": "Password Error. remaining count:0"
    , "data":
        {"token": "_v0uoRImxxkTcwWnZ8_IYrw"
        , "timeout": 0
        , "appID": 0
        , "remaining": 0
        , "locking": 0
        , "change_password": false
        }
}

? What can be wrong here?

This is my C# code:



本帖子中包含更多资源

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

x
reply

使用道具 report

1

主题

589

帖子

2045

积分

vipMem

Rank: 6Rank: 6

积分
2045
sofa
poston 2024-11-8 17:48 | authorOnly
Q1: https://smarteye.besovideo.com/bvdoc/ 是最新的接口文档
看代码和数据都是对的,不应该返回账号密码错误,使用web客户端是否可以登录?密码123456是否正确
如果相同的账号密码web客户端可以登录,接口就是正常的,可以f12看浏览器发的请求参数
https://smarteye.besovideo.com/bvdoc/    is the latest document.
your source is all right, but try visit by the standard WEB URL to compare if  your user/passwd is correct, is your passwd is 123456  ?
if user/passwd is correct and standard WEB visit is ok, then pls show us info in F12 for us to check your parameters in URL request.
reply agree Against

使用道具 report

1

主题

21

帖子

61

积分

member

Rank: 2

积分
61
bench
 Owner| poston 2024-11-14 02:56 | authorOnly
Hi,
The API is working for us now so that is great.
Now we are busy with getting the live stream to work.

On our CMSV server we do the live streaming by a URL like this:
https://bodycam.mobiletrack.nl/8 ... eam=1&channel=1

How can we do this on your application?

We can not use the example because our programmers use C#

Please help us with this.

Kind regards

Arie
reply agree Against

使用道具 report

1

主题

21

帖子

61

积分

member

Rank: 2

积分
61
ground
 Owner| poston 2024-12-5 16:44 | authorOnly
Dear,

Can you please let us know how we can install the demo package. We tried the {npm install URL} but it did not work:

本帖子中包含更多资源

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

x
reply agree Against

使用道具 report

6

主题

438

帖子

1722

积分

vipMem

Rank: 6Rank: 6

积分
1722
5#
poston 2024-12-5 17:05 | authorOnly
arie post on2024-12-5 16:44
Dear,

Can you please let us know how we can install the demo package. We tried the {npm install U ...

Hi,
First  git clone https://gitee.com/besovideo/ewebdemo.git
Then Run npm install inside the dir

本帖子中包含更多资源

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

x
reply agree Against

使用道具 report

1

主题

21

帖子

61

积分

member

Rank: 2

积分
61
6#
 Owner| poston 2024-12-6 03:55 | authorOnly
Hi please help with this question from our developer:

Since we need to create 1 packed js file from all these Typescript/JS projects, please tell/show us what "build" command line in "scripts" should be used in the {package.json} file. We do not transpile, pack or bundle code files - we use plain simple Javascript. We are trying to make such a file to connect to the player.

THNAK YOU!
reply agree Against

使用道具 report

6

主题

438

帖子

1722

积分

vipMem

Rank: 6Rank: 6

积分
1722
7#
poston 2024-12-6 10:00 | authorOnly
arie post on2024-12-6 03:55
Hi please help with this question from our developer:

Since we need to create 1 packed js file fr ...

Hi
Did you mean that you want to call the api from player after using <scritp> element load a js file, just like use
the jquery?
reply agree Against

使用道具 report

1

主题

21

帖子

61

积分

member

Rank: 2

积分
61
8#
 Owner| poston 2024-12-6 17:59 | authorOnly
IBeli post on2024-12-6 10:00
Hi
Did you mean that you want to call the api from player after using  element load a js file, ju ...

Hi yes that is what we mean.
reply agree Against

使用道具 report

1

主题

21

帖子

61

积分

member

Rank: 2

积分
61
9#
 Owner| poston 2024-12-6 18:07 | authorOnly
arie post on2024-12-6 17:59
Hi yes that is what we mean.

We need to code the stream like this:

<script type="text/javascript" src="node_modules/@besovideo/webrtc-player/dist/main.es.js">
        let instance = new PuPlayer( { ... } );
        instance.open();
        instance.display();
        instance.play();
        ...
        instance.close();
        instance = null;
</script>
reply agree Against

使用道具 report

6

主题

438

帖子

1722

积分

vipMem

Rank: 6Rank: 6

积分
1722
10#
poston 2024-12-6 18:15 | authorOnly
arie post on2024-12-6 17:59
Hi yes that is what we mean.

Ok ok
After you loaded main.browser.js and main.browser.css, var bvPlayer (contains all exported apis) will mounted  in window, then call bvPlayer.xxx
See doc here: https://www.npmjs.com/package/@b ... er?activeTab=readmeYou can find those two file in https://www.npmjs.com/package/@b ... ayer?activeTab=code dist dir.



reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-12-22 20:55 , Processed in 0.116215 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList