%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentInfo.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.RecordEquipment.EquipmentInfo" %>
<%= this.RecordEquipment.Name %> 状态
<%= Import.Theme() %>
<%= Import.CSS("/zh-cn/bootstrap/css/bootstrap.css") %>
<%= Import.CSS("/zh-cn/bootstrap/css/bootstrap-theme.css") %>
<%= Import.CSS("/zh-cn/bootstrap/admin.css") %> <%-- <%= Import.CSS("/zh-cn/Admin_StyleSheet.css") %>--%>
<%= Import.Script("/jquery.1.9.js")%>
<%= Import.Script("/app.js")%> <%= Import.Script("/bootstrap/bootstrap.min.js")%>
设备名称:<%= this.RecordEquipment.Name %>
<%
if (RecordEquipment.FactoryType != (int)AVA.ResourcesPlatform.Model.Pub.RecordEquipmentFactoryTypeEnum.奥威亚录播)
{
%>
- 录播厂商:不为奥威亚录播,无法进行检测
<%
}
else if (RecordEquipment.EquipmentType == (int)AVA.ResourcesPlatform.Model.Pub.RecordEquipmentEquipmentTypeEnum.远程设备)
{
%>
- 远程录播设备,必须在录播所在本地才可以进行检测
<%
if (this.RecordEquipment.ParentAgentServer == null)
{
%>
- 关联转播服务:未设置转播信息
<%
}
else
{
%>
- 关联转播服务:<%= this.RecordEquipment.ParentAgentServer.Name %>
<%
var asStatus = CreateInstance.AgentServerDao.ASStatus(this.RecordEquipment.ParentAgentServer);
%>
- 转播服务状态:<%= asStatus %>
<%
if (asStatus.IndexOf("转播服务器已启动") != -1)
{
//说明已经启动,那显示转播地址
%>
- 转播地址:<%= CreateInstance.AgentServerDao.AVAASURL(this.RecordEquipment) %>
<%
}
}
}
else
{
var managerUrl = CreateInstance.RecordEquipmentDao.ManageUrl(this.RecordEquipment);
var result = AVA.ResourcesPlatform.Config.Helper.GetResponse(managerUrl, 3000);
if (result == Z.Core.Lang.Define.Get("RecordEquipment_无法连接"))
{
if (AVA.ResourcesPlatform.Config.Helper.PingService(this.RecordEquipment.IPAddress) == "1")
{
%>
- 目标地址:ping录播网络连接成功,请确认端口号是否设置正确。
<%
}
else
{
%>
- 目标地址:ping录播网络连接失败,请确认IP地址是否设置正确,录播是否为正常开机状态
<%
}
}
else
{
%>
- 目标连接成功
<%
}
%>
- 录播状态:
<%
var status = CreateInstance.RecordEquipmentDao.GetRecordEquipmentStatus(this.RecordEquipment);
if (status == Z.Core.Lang.Define.Get("RecordEquipment_登录失败"))
{
%>
用户名密码验证失败
<%
}
else if (status == Z.Core.Lang.Define.Get("RecordEquipment_错误"))
{
%>
录播程序检测出错或者通信失败,请检查录播是否正常!
<%
if (this.RecordEquipment.ProductVersion == (int)AVA.ResourcesPlatform.Model.Pub.RecordEquipmentProductVersionEnum.第三代
&& this.RecordEquipment.ProgramID != 0)
{
%>
当前录播节目号设置为"<%= this.RecordEquipment.ProgramID %>",三代录播设置节目ID一般为0
<%
}
else if (this.RecordEquipment.ProductVersion == (int)AVA.ResourcesPlatform.Model.Pub.RecordEquipmentProductVersionEnum.第二代
&& this.RecordEquipment.ProgramID != 137
&& this.RecordEquipment.ProgramID != 139)
{
%>
当前录播节目号设置为"<%= this.RecordEquipment.ProgramID %>",三代录播设置节目ID一般为137或139
<%
}
%>
<%
}
else if (status == Z.Core.Lang.Define.Get("RecordEquipment_无法连接"))
{
%>
录播接口连接失败,请检查录播是否正常
<%
}
else
{
%>
<%= status %>
<%--RTSP端口:--%>
<%
var versionInfo = CreateInstance.RecordEquipmentDao.QUERY_VERSION_INFO(this.RecordEquipment);
if (versionInfo != null)
{
%>
- 应用程序版本:<%= versionInfo.GetValue("AppVersion") %>
<%--- 硬件版本:<%= versionInfo.GetValue("PcbVersion") %>
--%>
<%
}
var sdkInfo = CreateInstance.RecordEquipmentDao.GET_RTSP_INFO(this.RecordEquipment);
if (sdkInfo != null)
{
var rtpMode = "未知";
if (sdkInfo.GetValue("RtpMode") == "0")
{
rtpMode = "UDP";
}
else if (sdkInfo.GetValue("RtpMode") == "1")
{
rtpMode = "TCP";
}
%>
<%-- <%= sdkInfo.Count %> --%>
- RTSP模式:<%= rtpMode %>
- RTSP端口:<%= sdkInfo.GetValue("RtspPort") %>
<%
if(sdkInfo.GetValue("RtspPort") != this.RecordEquipment.RecordPort)
{
%>
当前设置为<%= this.RecordEquipment.RecordPort %>请修改
<%
}
else
{
%>
<%
}
%>
- RTSP最大连接数:<%= sdkInfo.GetValue("MaxRtspOnlineCount").ToInt(8) %>
- RTSP当前连接数:<%= sdkInfo.GetValue("RtspOnlineCount") %>
<%
}
else if (this.RecordEquipment.ProductVersion == (int)AVA.ResourcesPlatform.Model.Pub.RecordEquipmentProductVersionEnum.第二代)
{
%>
- 二代录播不支持RTSP检测(一般节目号为137或139,端口号为9000)
<%
}
else
{
%>
- 无返回信息
<%
}
%>
<%
if (this.RecordEquipment.ParentAgentServer == null)
{
%>
- 关联转播服务:未设置转播信息
<%
}
else
{
%>
- 关联转播服务:<%= this.RecordEquipment.ParentAgentServer.Name %>
<%
var asStatus = CreateInstance.AgentServerDao.ASStatus(this.RecordEquipment.ParentAgentServer);
%>
- 转播服务状态:<%= asStatus %>">
<%
if (asStatus.IndexOf("转播服务器已启动") != -1)
{
//说明已经启动,那显示转播地址
%>
- 转播地址:<%= CreateInstance.AgentServerDao.AVAASURL(this.RecordEquipment) %>
<%
}
}
%>
<%
}
%>
<%
}
%>