|
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/< |
|