You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
129 lines
4.8 KiB
129 lines
4.8 KiB
<!DOCTYPE html> |
|
<html> |
|
|
|
<head> |
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
<link rel="stylesheet" href='policeGroup.css' type='text/css' /> |
|
<script type="text/javascript" src="jquery-1.10.2.min.js"></script> |
|
<script type='text/javascript' src='policeGroup.js'></script> |
|
<title>缉查报警对讲组</title> |
|
</head> |
|
|
|
<body scroll="no"> |
|
<OBJECT ID='IPDispatcherCtrl' CLASSID='CLSID:A1347CC2-E5A5-4717-A8DA-CD0AA97A68D9' CODEBASE='IPDispatcherCOM.cab#version=1,0,0,1' |
|
width='0' height='0'></OBJECT> |
|
<div class="cardContainer"> |
|
<div class="cardLineGroup"> |
|
<!--card 1--> |
|
<div class="card" id='card0'> |
|
<div class="cardText"></div> |
|
<div class="cardVideo"> |
|
<object id="VideoWindow0" classid="CLSID:FD968A91-02A5-4596-AA56-4368ED02DDD2" width="100%" height="100%"></object> |
|
</div> |
|
</div> |
|
<!--card 2--> |
|
<div class="card" id='card1'> |
|
<div class="cardText"></div> |
|
<div class="cardVideo"> |
|
<object id="VideoWindow1" classid="CLSID:FD968A91-02A5-4596-AA56-4368ED02DDD2" width="100%" height="100%"></object> |
|
</div> |
|
</div> |
|
<!--card 3--> |
|
<div class="card" id='card2'> |
|
<div class="cardText"></div> |
|
<div class="cardVideo"> |
|
<object id="VideoWindow2" classid="CLSID:FD968A91-02A5-4596-AA56-4368ED02DDD2" width="100%" height="100%"></object> |
|
</div> |
|
</div> |
|
</div> |
|
<div class="cardLineGroup"> |
|
<!--card 4--> |
|
<div class="card" id='card3'> |
|
<div class="cardText"></div> |
|
<div class="cardVideo"> |
|
<object id="VideoWindow3" classid="CLSID:FD968A91-02A5-4596-AA56-4368ED02DDD2" width="100%" height="100%"></object> |
|
</div> |
|
</div> |
|
<!--card 5--> |
|
<div class="card" id='card4'> |
|
<div class="cardText"></div> |
|
<div class="cardVideo"> |
|
<object id="VideoWindow4" classid="CLSID:FD968A91-02A5-4596-AA56-4368ED02DDD2" width="100%" height="100%"></object> |
|
</div> |
|
</div> |
|
<!--card 6--> |
|
<div class="card" id='card5'> |
|
<div class="cardText"></div> |
|
<div class="cardVideo"> |
|
<object id="VideoWindow5" classid="CLSID:FD968A91-02A5-4596-AA56-4368ED02DDD2" width="100%" height="100%"></object> |
|
</div> |
|
</div> |
|
</div> |
|
</div> |
|
<div class="footer"> |
|
<button type="button" class='btn' id='pttbtn' value="释放话权" onclick="pttSwitch()">释放话权</button> |
|
</div> |
|
<script> |
|
initMDSParam(); |
|
</script> |
|
<!--*************************事件回调区***************************--> |
|
|
|
<!--登录成功事件--> |
|
<script type="text/javascript" FOR="IPDispatcherCtrl" EVENT="OnPhoneStateEvent(nState)"> |
|
console.log(nState + '--------------init'); |
|
// 创建对讲组 |
|
if (nState == 2 && !isLoginG) { |
|
isLoginG = true; |
|
window.createCustomPttGroup(); |
|
} |
|
</script> |
|
|
|
<!-- 话机线路变化事件--> |
|
<script type="text/javascript" for="IPDispatcherCtrl" event="OnPhoneLineStateEvent(nLine,nState,nMediaType)"> |
|
DEVMODE && console.log('OnPhoneLineStateEvent---', nLine, nState); |
|
if (nState == 4) { |
|
for (var i = 0; i < MAXMEMBERS; i += 1) { |
|
var videoWin = document.getElementById('VideoWindow' + i); |
|
IPDispatcherCtrl.SetVideoWindow(i, videoWin.GetWindow()); |
|
} |
|
} |
|
if (nMediaType == 2 || nMediaType == 3) { |
|
var videoWin = document.getElementById('VideoWindow' + nLine); |
|
if (videoWin) { |
|
videoWin.RefreshWindow(); |
|
} |
|
if (nState == 4) { |
|
IPDispatcherCtrl.HoldCall(nLine); |
|
} |
|
} |
|
</script> |
|
|
|
<!--对讲组通知事件--> |
|
<script type="text/javascript" FOR="IPDispatcherCtrl" EVENT="OnCustomGroupNotify(nError,bstrMessage)"> |
|
DEVMODE && console.log(bstrMessage + '--------------OnCustomGroupNotify'); |
|
try { |
|
var newGroupInfo = JSON.parse(bstrMessage); |
|
currentGroupG = newGroupInfo; |
|
if (newGroupInfo.Type == 'update') { //对讲组更新成功事件,初次创建成功时也会回调这个 |
|
var lineState = IPDispatcherCtrl.GetLineState(PTTLINE); |
|
if (lineState == 0) { |
|
var a = IPDispatcherCtrl.MakeCall(PTTLINE, currentGroupG.GroupNum, 1); |
|
console.log(a, 'OnCustomGroupNotify,MakeCall-----', currentGroupG.GroupNum); |
|
} |
|
} else if (newGroupInfo.Type == 'add') { //添加成员事件 |
|
// groupVideoMonitor(); |
|
} else if (newGroupInfo.Type == 'del') { //删除成员事件 |
|
// offMemberVideoHangup(); |
|
} |
|
} catch (exception) { |
|
DEVMODE && console.log(exception); |
|
} |
|
</script> |
|
|
|
<script type="text/javascript" for="IPDispatcherCtrl" event="OnCustomGroupResult(nError,bstrMessage)"> |
|
var cade = "自建对讲组操作结果事件,"; |
|
DEVMODE && console.log(cade + 'nError:' + nError + ',bstrMessage:' + bstrMessage); |
|
</script> |
|
</body> |
|
|
|
</html>
|
|
|