mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 14143|reply: 2
打印 prevThread nextThread

ASP.Net MVC web application error Non-OCX application

[copyURL]

9

主题

22

帖子

129

积分

member

Rank: 2

积分
129
jumpTo
owner
poston 2019-1-24 09:22 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
I have been working on integrating the Besa sample code into our ASP.Net MVC web application to connect to the cameras remotely. I have tried a number of the automated login code samples and I keep getting this error:  (Please see attachments)

Here is a sample of the code I'm working with. Just want to get it to connect before moving on.
@{
ViewBag.Title = "TEST";
}

@section scripts {
<script src="~/Scripts/jsw.js"></script>
<script>

// 192.168.11.230:9701

window.onload = function () {
jSW.swInit ({
Url: 'http://192.168.11.230:9701', // bv_nginx.exe server address
Calltype: jSW.CallProtoType.HTTP,
});
}
window.onbeforeunload = function () {
jSW.swDeInit ();
}

if (this.session) { delete this.session; }
this.session = new jSW.SWSession({
Server: 'http://127.0.0.1',
port: '9701',
onopen: function(sess) {
sess.swLogin ({
user: 'admin',
password: '123456'
})
},
onclose: function(sess, evt) {
console.log(sess)
}
});

// Register event callback function
this.session.swAddCallBack('login', function (sender, event, json) {
alert(JSON.stringify(json, null, 4));
});

this.session.swLogin();

</script>
}


I have included the jsw.js file in the project. This is a non-OCX application. Am I missing any other components that may be required?

本帖子中包含更多资源

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

x
reply

使用道具 report

60

主题

1428

帖子

5953

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5953
sofa
poston 2019-1-24 09:29 | authorOnly
hello, did you try our demo on http://61.191.27.18:8081
?
kindly pls try for compare.
reply agree Against

使用道具 report

6

主题

438

帖子

1722

积分

vipMem

Rank: 6Rank: 6

积分
1722
bench
poston 2019-1-24 09:53 | authorOnly
hello, i see you load jsw.js for ~/Scripts/jsw.js.
the jsw.js depend on many js from jswlib Folder.
you must make sure jsw.js and jswlib folder in same folder.

本帖子中包含更多资源

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

x
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-12-23 06:32 , Processed in 0.055666 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList