<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
|
<%Session.CodePage=65001%>
|
<%
|
CarLicense=Request("CarLicense")
|
CarLicense=Replace(CarLicense,"(奔)","")
|
CarLicense=Replace(CarLicense,"(奔驰)","")
|
channel=Request("channel")
|
state=request("state")
|
If state<>"" Then
|
stateSP=split(state,"|")
|
for i = 0 to UBOUND(stateSP)
|
If InStr(stateSP(i),"searchTXT=")=1 Then
|
searchTXT=Replace(stateSP(i),"searchTXT=","")
|
ElseIf InStr(stateSP(i),"CarLicense=")=1 Then
|
ReportType=Replace(stateSP(i),"CarLicense=","")
|
ElseIf InStr(stateSP(i),"channel=")=1 Then
|
channel=Replace(stateSP(i),"channel=","")
|
End If
|
Next
|
End If
|
If ReportType="" Then ReportType="2"
|
If channel="" Then channel=3
|
'if OrdState="" then Response.Redirect "/"
|
state=ReportType%>
|
<!--include virtual="/weixin/OAuth2.gds"-->
|
<!--#include virtual="/inc/function.gds"-->
|
<%Set rs = Server.CreateObject("ADODB.Recordset")
|
%>
|
<html><head>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no">
|
<title><%=CarLicense%></title>
|
<link href="css/main.css" type="text/css" rel="stylesheet">
|
|
</head><body>
|
<%
|
'jsession
|
appUrl="http://v1.966120.com.cn:8088/StandardApiAction_login.action"
|
Origin="account=966120&password=cms966120"
|
HTMLCODE= GetBody(appUrl,Origin)
|
'Response.Write HTMLCODE &"<br>"
|
If Mid(HTMLCODE,12,InStr(HTMLCODE,",""")-12)="false" Then
|
Response.Write HTMLCODE
|
Else
|
'结果写入数据库
|
reserve=ShopOrdID
|
json=HTMLCODE
|
%>
|
<script language="JScript" runat="Server">
|
function toObject(json) {
|
eval("var o=" + json);
|
return o;
|
}
|
function toArray(s){
|
var dic = Server.CreateObject("Scripting.Dictionary")
|
eval("var a=" + json);
|
for(var i=0;i<a.length;i++){
|
var obj = Server.CreateObject("Scripting.Dictionary")
|
for(x in a[i]) obj.Add(x,a[i][x])
|
dic.Add(i, obj);
|
}
|
return dic
|
}
|
</script>
|
<%
|
|
'Response.Write json &"<BR>"
|
|
|
%>
|
<script language="jscript" runat="server">
|
Array.prototype.get = function(i)
|
{
|
return this[i];
|
};
|
function getjson(str){
|
try{
|
eval("var jsonStr = (" + str + ")");
|
}catch(ex){
|
var jsonStr = null;
|
}
|
return jsonStr;
|
}
|
</script>
|
<%
|
str="["&json&"]"
|
'str=right(str,len(str)-instr(str,"[")+1)
|
'str=left(str,InstrRev(str,"]"))
|
dim obj
|
set obj = getjson(str)
|
str0=""
|
for i=0 to obj.length-1
|
|
JSESSIONID=obj.get(i).JSESSIONID
|
Next
|
End If
|
|
'jsession
|
appUrl="http://v1.966120.com.cn:8088/StandardApiAction_getDeviceByVehicle.action"
|
Origin="jsession="&JSESSIONID&"&vehiIdno=粤A68CJ6(广州)"
|
Response.Write appUrl&"?"&Origin &"<br>"
|
HTMLCODE= GetBody(appUrl,Origin)
|
'Response.Write HTMLCODE &"<br>"
|
If Mid(HTMLCODE,12,InStr(HTMLCODE,",""")-12)="false" Then
|
Response.Write HTMLCODE
|
Else
|
'结果写入数据库
|
reserve=ShopOrdID
|
json=HTMLCODE
|
%>
|
<script language="JScript" runat="Server">
|
function toObject(json) {
|
eval("var o=" + json);
|
return o;
|
}
|
function toArray(s){
|
var dic = Server.CreateObject("Scripting.Dictionary")
|
eval("var a=" + json);
|
for(var i=0;i<a.length;i++){
|
var obj = Server.CreateObject("Scripting.Dictionary")
|
for(x in a[i]) obj.Add(x,a[i][x])
|
dic.Add(i, obj);
|
}
|
return dic
|
}
|
</script>
|
<%
|
|
Response.Write json &"<BR>"
|
|
|
%>
|
<script language="jscript" runat="server">
|
Array.prototype.get = function(i)
|
{
|
return this[i];
|
};
|
function getjson(str){
|
try{
|
eval("var jsonStr = (" + str + ")");
|
}catch(ex){
|
var jsonStr = null;
|
}
|
return jsonStr;
|
}
|
</script>
|
<%
|
str="["&json&"]"
|
'str=right(str,len(str)-instr(str,"[")+1)
|
'str=left(str,InstrRev(str,"]"))
|
set obj = getjson(str)
|
str0=""
|
for i=0 to obj.length-1
|
for j=0 to obj.get(i).devices.length-1
|
vid=obj.get(i).devices.get(j).vid
|
'Response.Write vid
|
If vid=CarLicense Then
|
did=obj.get(i).devices.get(j).did
|
End If
|
Next
|
|
Next
|
End If
|
|
Response.Write did &"<br>"
|
%>
|
<!--<iframe id="iframe" src="http://v1.966120.com.cn:8088/808gps/open/hls/index.html?lang=zh&vehiIdno=<%=CarLicense%>&account=966120&password=a966120&channel=<%=channel%>" width="100%" height="50%" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>-->
|
<video controls preload="none" width="352" height="288" data-setup="{}"><source src="http://183.6.154.122:6604/hls/1_<%=did%>_<%=channel%>_0.m3u8?JSESSIONID=<%=JSESSIONID%>" type="application/x-mpegURL"></video>
|
|
<!--
|
<video id="videoA" width="320" height="240" >
|
<source src="http://v1.966120.com.cn:6604/hls/1_<%=did%>_<%=channel%>_0.m3u8?JSESSIONID=<%=JSESSIONID%>" type="application/x-mpegURL">
|
</video>
|
<script>
|
var yaoVideo = document.getElementById("videoA")
|
|
function play(){
|
if (yaoVideo.paused)
|
yaoVideo.play()
|
else
|
yaoVideo.pause()
|
}
|
function makeBig(){
|
yaoVideo.width = "640"
|
yaoVideo.height = "480"
|
|
}
|
function makeSmall(){
|
yaoVideo.width = "160"
|
yaoVideo.height = "120"
|
|
}
|
function makeNormal(){
|
yaoVideo.width = "320"
|
yaoVideo.height = "240"
|
|
}
|
</script>
|
<button onclick="play()">播放/暂停</button>
|
<button onclick="makeBig()">放大</button>
|
<button onclick="makeSmall()">缩小</button>
|
<button onclick="makeNormal()">普通</button>
|
<br>
|
-->
|
<br>
|
<a href="?CarLicense=<%=CarLicense%>&channel=0">CH1</a>
|
<a href="?CarLicense=<%=CarLicense%>&channel=1">CH2</a>
|
<a href="?CarLicense=<%=CarLicense%>&channel=2">CH3</a>
|
<a href="?CarLicense=<%=CarLicense%>&channel=3">CH4</a>
|
</body></html>
|