|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
|
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
|
|
<%@ include file="/common/ctx.jsp"%>
|
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
|
|
|
<html xmls="http://www.w3.org/1999/xhtml">
|
|
|
<head>
|
|
|
<title>综合视频监控</title>
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
|
|
<!-- 字体图标 -->
|
|
|
<link href="${ctx}/assets/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
|
|
|
<link href="${ctx}/assets/ionicon/css/ionicons.min.css" rel="stylesheet"/>
|
|
|
<link href="${ctx}/css/material-design-iconic-font.min.css" rel="stylesheet">
|
|
|
|
|
|
<link type="text/css" rel="stylesheet" href="${ctx }/hbcyjc/resource/css/cjy_style.css" />
|
|
|
<link type="text/css" rel="stylesheet" href="${ctx }/hbcyjc/resourceNew/css/cjy_style.css"/>
|
|
|
<link type="text/css" rel="stylesheet" href="${ctx }/hbcyjc/resourceNew/css/cjy_style2.css" />
|
|
|
<link type="text/css" rel="stylesheet" href="${ctx }/hbcyjc/resourceNew/css/cjy_zlmxg.css" />
|
|
|
<!--ztree 的js和css 开始 -->
|
|
|
<script type="text/javascript" src="${ctx }/js/jquery-3.7.0.min.js"></script>
|
|
|
<link rel="stylesheet" href="${ctx }/js/JQuery zTree v3.4/css/demo.css" type="text/css">
|
|
|
<link rel="stylesheet" href="${ctx }/js/JQuery zTree v3.4/css/zTreeStyle/zTreeStyle.css" type="text/css">
|
|
|
<script type="text/javascript" src="${ctx }/js/JQuery zTree v3.4/js/jquery.ztree.all-3.4.js"></script>
|
|
|
<!--ztree 的js和css 结束 -->
|
|
|
|
|
|
<link type="text/css" rel="stylesheet"
|
|
|
href="/oss/screen/skins/static/plugins/playUtil/css/playerUtil.css">
|
|
|
<script src="/oss/screen/skins/static/plugins/playUtil/ckplayer/jquery-smartMenu.js"></script>
|
|
|
<script src="/oss/screen/skins/static/plugins/playUtil/ckplayer/ckplayer.js"></script>
|
|
|
<script src="/tourResource/js/video/playUtil_v2.js"></script>
|
|
|
<script src="/oss/tourism-projects/static/js/jquery.slimscroll.min.js"></script>
|
|
|
|
|
|
<script>
|
|
|
if(window.location.protocol == 'https:'){
|
|
|
$("head").append('<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />');
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
var URL = "${ctx}/zhspjkvideomanage/getzhspjklist.do";
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
initMyZtree();
|
|
|
initr();
|
|
|
});
|
|
|
|
|
|
var zNodes="";
|
|
|
var setting = {
|
|
|
view: {
|
|
|
selectedMulti: false
|
|
|
},
|
|
|
async: {
|
|
|
enable: true,
|
|
|
type : "get",
|
|
|
url:URL,
|
|
|
autoParam: ["id"]
|
|
|
},
|
|
|
callback : {
|
|
|
onClick : zTreeOnClick
|
|
|
}
|
|
|
};
|
|
|
|
|
|
function initMyZtree(){
|
|
|
var id = "${id}";
|
|
|
URL = "${ctx}/zhspjkvideomanage/getzhspjklist.do?id="+id;
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
dataType: "json",
|
|
|
url: URL,
|
|
|
success: function(data) {
|
|
|
zNodes=data;
|
|
|
$.fn.zTree.init($("#spjk_shujg"), setting, zNodes);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
//单击事件
|
|
|
function zTreeOnClick(event, treeId, treeNode, clickFlag){
|
|
|
var rtmpurl = treeNode.id;
|
|
|
if (parseFloat(rtmpurl).toString() == "NaN") {//判断不是数字
|
|
|
var pddh = treeNode.id;
|
|
|
pddh = pddh.substring(pddh.length-1, pddh.length)
|
|
|
if (rtmpurl && rtmpurl[0]) {
|
|
|
var videoName = treeNode.name;
|
|
|
videoNodePlay(rtmpurl[0], videoName);
|
|
|
} else {
|
|
|
notify("该视频暂无法进行播放", "warning");
|
|
|
}
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
function initr() {
|
|
|
var sysName = "综合视频监控系统";
|
|
|
var userName = "test";
|
|
|
$("#sysName").html(sysName);
|
|
|
var pageName = "视频管理";
|
|
|
$("#pageName").html(pageName);
|
|
|
$("#userName").html(userName);
|
|
|
var html = "<a href=\"${ctx}/zhspjkvideomanage/tozhspjklist.do\" class=\"caid_xiang active \">视频播放</a>" +
|
|
|
"<a href=\"${ctx}/zhspjkvideomanage/searchZhspjkVideoManageList.do\" class=\"caid_xiang \">视频管理</a>";
|
|
|
$("#menuList").html(html);
|
|
|
}
|
|
|
</script>
|
|
|
<style>
|
|
|
.video-win {
|
|
|
background: rgba(0, 0, 0, .4);
|
|
|
position: absolute;
|
|
|
bottom: 0;
|
|
|
width: 100%;
|
|
|
height: 30px;
|
|
|
line-height: 30px;
|
|
|
text-align: center;
|
|
|
color: #fff;
|
|
|
}
|
|
|
|
|
|
.video-win-record {
|
|
|
position: absolute;
|
|
|
margin-left: 10px;
|
|
|
}
|
|
|
|
|
|
.video-win-record-stop {
|
|
|
background: url(http://enjoy-skins.oss-cn-hangzhou.aliyuncs.com/screen/skins/static/plugins/playUtil/ckplayer/stop.png) no-repeat center center;
|
|
|
background-size: 20px 20px;
|
|
|
display: inline-block;
|
|
|
width: 20px;
|
|
|
height: 20px;
|
|
|
margin-left: 15px;
|
|
|
position: relative;
|
|
|
top: 5px;
|
|
|
}
|
|
|
|
|
|
.loading .gif {
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
text-align: center;
|
|
|
color: #15b2ff;
|
|
|
font-weight: bold;
|
|
|
font-size: 18px;
|
|
|
}
|
|
|
.loading {
|
|
|
position: absolute;
|
|
|
width: 300px;
|
|
|
height: 60px;
|
|
|
left:calc(50% - 150px);
|
|
|
top:120px;
|
|
|
background: rgba(0,0,0,.3);
|
|
|
z-index: 999;
|
|
|
padding-top:5px;
|
|
|
border-radius: 10px;
|
|
|
display: none;
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="xingk"></div>
|
|
|
<%@include file="/common/menu.jsp" %>
|
|
|
|
|
|
|
|
|
<div class="spjk_con">
|
|
|
<div class="spjk_left">
|
|
|
<h3 class="spjk_left_lbbt" style="color: #ffffff">视频列表</h3>
|
|
|
<div class="spjk_shujg ztree" id="spjk_shujg">
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div style="width: 80%;height:100%; padding: 10px;float: right;position: relative;">
|
|
|
<div style="height: 50px;width: 100%;" class="video-icon">
|
|
|
<ul id="play_tool">
|
|
|
<li title="1*1" onClick="setRowCol(1,1);"></li>
|
|
|
<li title="2*2" class="active" onClick="setRowCol(2,2);"></li>
|
|
|
<li title="3*3" onClick="setRowCol(3,3);"></li>
|
|
|
<!--<li title="4*4" onClick="setRowCol(4,4);"></li>-->
|
|
|
</ul>
|
|
|
</div>
|
|
|
<!---关键部位-->
|
|
|
<div id="video-content"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<script type="text/javascript">
|
|
|
var totalNum = 4;
|
|
|
$(function () {
|
|
|
initVideo();
|
|
|
//asyncLoadData();
|
|
|
$("#play_tool li").click(function () {
|
|
|
var index = $(this).index();
|
|
|
$("#play_tool").find("li").removeClass("active");
|
|
|
$("#play_tool").find("li").eq(index).addClass("active");
|
|
|
});
|
|
|
});
|
|
|
|
|
|
function initVideo() {
|
|
|
if (I_CheckPluginVersion()) {//检查是否安装或者flash
|
|
|
var playerDirectory = "/tourResource/";
|
|
|
var directory = "/oss/screen/skins/static/plugins/playUtil/";
|
|
|
setDirectory(directory);
|
|
|
setPlayerDirectory(playerDirectory);
|
|
|
var options = {
|
|
|
topElementId: "video-content",
|
|
|
elementId: "video-content",
|
|
|
maxRow: 4,
|
|
|
maxColumn: 4,
|
|
|
szWidth: '100%',
|
|
|
szHeight: 'calc(100% - 50px)',
|
|
|
subBorder: '#fff',
|
|
|
panelAppendHTML: '<div class="video-win"><div class="video-win-record video-win-content"></div><div class="video-win-title video-win-content"></div></div>'
|
|
|
// videoScale: "4:3,16:9,满屏"
|
|
|
};
|
|
|
I_initPlugin(options);
|
|
|
I_stylePlayer({row: 2, column: 2});
|
|
|
totalNum = 4;
|
|
|
//自定义播放器右键
|
|
|
var rightMenuData = [
|
|
|
[{
|
|
|
text: "全屏播放",
|
|
|
iconUrl: '${ctx}/oss/bigscreen/video/images/if-full-screen.png',
|
|
|
func: function () {
|
|
|
I_FullScreen();
|
|
|
}
|
|
|
}, {
|
|
|
text: "关闭播放",
|
|
|
iconUrl: '${ctx}/oss/bigscreen/video/images/close-player.png',
|
|
|
func: function () {
|
|
|
I_Stop();
|
|
|
}
|
|
|
}, {
|
|
|
text: "全部关闭",
|
|
|
iconUrl: '${ctx}/oss/bigscreen/video/images/all-close-player.png',
|
|
|
func: function () {
|
|
|
I_StopAll();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: '多窗口全屏播放',
|
|
|
iconUrl: '${ctx}/oss/bigscreen/video/images/mul-screen.png',
|
|
|
func: function () {
|
|
|
I_MultiFullScreen();
|
|
|
}
|
|
|
}, {
|
|
|
text: '重新连接',
|
|
|
iconUrl: '${ctx}/oss/bigscreen/video/images/reconnection.png',
|
|
|
func: function () {
|
|
|
I_Reconnect();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: '按比例播放',
|
|
|
iconUrl: '${ctx}/oss/bigscreen/video/images/mul-screen.png',
|
|
|
data: [
|
|
|
[
|
|
|
{
|
|
|
text: '满屏',
|
|
|
func: function () {
|
|
|
I_setPlayerResize();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: '4:3',
|
|
|
func: function () {
|
|
|
I_setPlayerResize(4, 3);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: '16:9',
|
|
|
func: function () {
|
|
|
I_setPlayerResize(16, 9);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: '自定义',
|
|
|
className: 'smart_disabled'//鼠标不可点击啊添加此属性
|
|
|
}
|
|
|
]
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
text: "清晰度",
|
|
|
iconUrl: '${ctx}/oss/bigscreen/video/images/definition.png',
|
|
|
data: [
|
|
|
[
|
|
|
{
|
|
|
text: '标清',
|
|
|
func: function () {
|
|
|
I_setDefinition(0);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: '高清',
|
|
|
func: function () {
|
|
|
I_setDefinition(1);
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
[
|
|
|
{
|
|
|
text: "取消"
|
|
|
}
|
|
|
]
|
|
|
];
|
|
|
//自定义播放器右键
|
|
|
var rightMenuWithRecordData = [
|
|
|
[
|
|
|
{
|
|
|
text: "全屏播放",
|
|
|
iconUrl: '/oss/bigscreen/video/images/if-full-screen.png',
|
|
|
func: function () {
|
|
|
I_FullScreen();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: "关闭播放",
|
|
|
iconUrl: '/oss/bigscreen/video/images/close-player.png',
|
|
|
func: function () {
|
|
|
I_Stop();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: "全部关闭",
|
|
|
iconUrl: '/oss/bigscreen/video/images/all-close-player.png',
|
|
|
func: function () {
|
|
|
I_StopAll();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: '多窗口全屏播放',
|
|
|
iconUrl: '/oss/bigscreen/video/images/mul-screen.png',
|
|
|
func: function () {
|
|
|
I_MultiFullScreen();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: '重新连接',
|
|
|
iconUrl: '/oss/bigscreen/video/images/reconnection.png',
|
|
|
func: function () {
|
|
|
I_Reconnect();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: '按比例播放',
|
|
|
iconUrl: '/oss/bigscreen/video/images/mul-screen.png',
|
|
|
data: [
|
|
|
[
|
|
|
{
|
|
|
text: '满屏',
|
|
|
func: function () {
|
|
|
I_setPlayerResize();
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: '4:3',
|
|
|
func: function () {
|
|
|
I_setPlayerResize(4, 3);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: '16:9',
|
|
|
func: function () {
|
|
|
I_setPlayerResize(16, 9);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: '自定义',
|
|
|
className: 'smart_disabled'//鼠标不可点击啊添加此属性
|
|
|
}
|
|
|
]
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
text: "清晰度",
|
|
|
iconUrl: '/oss/bigscreen/video/images/definition.png',
|
|
|
data: [
|
|
|
[
|
|
|
{
|
|
|
text: '标清',
|
|
|
func: function () {
|
|
|
I_setDefinition(0);
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: '高清',
|
|
|
func: function () {
|
|
|
I_setDefinition(1);
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
text: "录制视频",
|
|
|
iconUrl: '/oss/bigscreen/video/images/record_video.png',
|
|
|
func: function () {
|
|
|
I_StartRecordVideo()
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
text: "视频截图",
|
|
|
iconUrl: '/oss/bigscreen/video/images/screenShot.png',
|
|
|
func: function () {
|
|
|
I_StartShotVideo()
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
[
|
|
|
{
|
|
|
text: "取消"
|
|
|
}
|
|
|
]
|
|
|
];
|
|
|
if ("0" && "0" == 1) {
|
|
|
I_initRightMenu(rightMenuWithRecordData);
|
|
|
}else {
|
|
|
I_initRightMenu(rightMenuData);
|
|
|
}
|
|
|
}
|
|
|
else document.write('<div id="flushNOWarn" style="color: rgb(0, 102, 204); text-align: center;">您没有安装flash插件,无法播放视频,<a href="http://www.macromedia.com/go/getflashplayer" target="_blank">请点击此处下载安装最新的flash插件</a></div>');
|
|
|
}
|
|
|
|
|
|
|
|
|
// function I_RecordVideo(url, recordMinutes, iWndIndex) {
|
|
|
// iWndIndex = iWndIndex || smart_currentRightMenuIndex;
|
|
|
// alert(iWndIndex);
|
|
|
// }
|
|
|
|
|
|
|
|
|
function getDetailPlayVideo() {
|
|
|
$.ajax({
|
|
|
type: "get",
|
|
|
url: "/tapi/video/getDetailPlayVideo",
|
|
|
success: function (data) {
|
|
|
var playNum = 0;
|
|
|
for (var index = 0; index < data.length; index++) {
|
|
|
var obj = data[index];
|
|
|
if (index < totalNum && obj.rtmpAddress) {
|
|
|
play(obj.rtmpAddress, index);
|
|
|
playNum++;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
error: function () {
|
|
|
notify("获取默认播放的资源错误", "error", true);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
<script>
|
|
|
|
|
|
/******Ztree Start ******/
|
|
|
function asyncLoadData() {
|
|
|
var setting = {
|
|
|
view: {
|
|
|
showTitle: true,
|
|
|
showIcon: true,
|
|
|
showLine: true,
|
|
|
nameIsHTML: true,
|
|
|
fontCss: {size: 50},
|
|
|
dblClickExpand: false
|
|
|
},
|
|
|
async: {
|
|
|
enable: true,
|
|
|
url: 'http://localhost:8080/video/tree.json',
|
|
|
type: "get",
|
|
|
autoParam: ["id"], //自动提交的参数
|
|
|
// dataFilter: filter
|
|
|
},
|
|
|
callback: {
|
|
|
onClick: zTreeOnClick,
|
|
|
onRightClick: zTreeOnRightClick,
|
|
|
// onDblClick: zTreeOnDblClick,
|
|
|
onAsyncSuccess: onAsyncSuccess
|
|
|
}
|
|
|
};
|
|
|
$.fn.zTree.init($("#ztree"), setting);
|
|
|
}
|
|
|
|
|
|
function getUrl(treeId, treeNode) {
|
|
|
if (!treeNode) {
|
|
|
return "/tapi/video/getZtreeAreaNodeV2?t=" + Math.random();
|
|
|
} else {
|
|
|
if (treeNode.type == "area_province") {
|
|
|
return "130000000000" != "120000000000" ? "/tapi/video/getZtreeAreaNodeV2?t=" + Math.random() : "/tapi/video/getZtreeScenicNodesV2?t=" + Math.random();
|
|
|
} else if (treeNode.type == "area_city") {
|
|
|
return "/tapi/video/getZtreeScenicNodesV2?t=" + Math.random();
|
|
|
} else if (treeNode.type == "scenic" || treeNode.type == "hotel") {
|
|
|
return "/tapi/video/getZtreeVideoNodes?t=" + Math.random();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function filter(treeId, parentNode, childNodes) {
|
|
|
if (!childNodes) return null;
|
|
|
if (parentNode && parentNode.type == "area_city") {
|
|
|
for (var i = 0; i < childNodes.length; i++) {
|
|
|
childNodes[i].name = "<span class='node_name'>" + childNodes[i].name + " [" + childNodes[i].videoCount + "个视频]</span>";
|
|
|
}
|
|
|
return childNodes;
|
|
|
} else if (parentNode && parentNode.type == "area_province") {
|
|
|
for (var i = 0; i < childNodes.length; i++) {
|
|
|
childNodes[i].name = "<span class='node_name'>" + childNodes[i].name + " [" + childNodes[i].scenicCount + "个景区," + childNodes[i].videoCount + "个视频]</span>";
|
|
|
}
|
|
|
return childNodes;
|
|
|
} else if (!parentNode) {
|
|
|
for (var i = 0; i < childNodes.length; i++) {
|
|
|
childNodes[i].name = "<span class='node_name'>" + childNodes[i].name + " [接入" + childNodes[i].scenicCount + "个景区," + childNodes[i].videoCount + "个视频]</span>";
|
|
|
}
|
|
|
return childNodes;
|
|
|
} else {
|
|
|
return childNodes;
|
|
|
}
|
|
|
}
|
|
|
/******Ztree End ******/
|
|
|
//默认9个窗口播放
|
|
|
var playMany = false;
|
|
|
function zTreeOnClick(event, treeId, treeNode) {
|
|
|
var hasChildren = treeNode.hasChildren;
|
|
|
//当选中的节点没有子节点时
|
|
|
if (!hasChildren) {
|
|
|
var rtmp = treeNode.rtmpAddressList;
|
|
|
|
|
|
if (rtmp && rtmp[0]) {
|
|
|
var videoName = treeNode.getParentNode().name_temp + " - " + treeNode.name_temp;
|
|
|
|
|
|
videoNodePlay(rtmp[0], videoName);
|
|
|
} else {
|
|
|
|
|
|
notify("该视频暂无法进行播放", "warning");
|
|
|
}
|
|
|
} else {
|
|
|
var treeObj = $.fn.zTree.getZTreeObj(treeId);
|
|
|
treeObj.expandNode(treeNode);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function zTreeOnDblClick(event, treeId, treeNode) {
|
|
|
}
|
|
|
|
|
|
/*播放多个视频(双击选择非底部子节点)*/
|
|
|
function playManyVideo(event, treeId, treeNode) {
|
|
|
var selectValue = treeNode.id;
|
|
|
var url = "/tapi/video/videoPlayList?sort=b.object_level,desc";
|
|
|
if (selectValue != null) url = url + "&id=" + treeNode.id + "&type=" + treeNode.type + "&size=" + totalNum + "&areaId=130000000000&t=" + Math.random();
|
|
|
$http.get(url, {}, function (data) {
|
|
|
if (data) {
|
|
|
var playList = "";
|
|
|
for (var index = 0; index < totalNum; index++) {
|
|
|
if (index >= data.content.length) {
|
|
|
break;
|
|
|
}
|
|
|
playList += getVideoPath(data.content[index], index);
|
|
|
}
|
|
|
if (playList) {
|
|
|
CCTVActiveX.playbylist(playList, false);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function zTreeOnRightClick(event, treeId, treeNode) {
|
|
|
// alert("right" + treeNode);
|
|
|
}
|
|
|
function onAsyncSuccess(event, treeId, treeNode, msg) {
|
|
|
if (!treeNode) {
|
|
|
var treeObj = $.fn.zTree.getZTreeObj(treeId);
|
|
|
var rootNode = treeObj.getNodes()[0];
|
|
|
treeObj.expandNode(rootNode, true, false, false);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
function setRowCol(row, col) {
|
|
|
totalNum = row * col;
|
|
|
I_stylePlayer({row: row, column: col});
|
|
|
}
|
|
|
//视频播放
|
|
|
function play(rtmpAddress, iWndIndex) {
|
|
|
if (!iWndIndex) {
|
|
|
iWndIndex = getSelectIndex();
|
|
|
iWndIndex = iWndIndex == -1 ? 0 : iWndIndex;
|
|
|
}
|
|
|
I_StartRealPlay(rtmpAddress, {iWndIndex: iWndIndex});
|
|
|
}
|
|
|
|
|
|
//视频节点点击播放
|
|
|
function videoNodePlay(rtmpAddress, videoName, iWndIndex) {
|
|
|
if (!iWndIndex) {
|
|
|
iWndIndex = getSelectIndex();
|
|
|
iWndIndex = iWndIndex == -1 ? 0 : iWndIndex;
|
|
|
}
|
|
|
|
|
|
var parentId = getVideoPaneId(iWndIndex);
|
|
|
$("#" + parentId).find("div.video-win-title").html(videoName);
|
|
|
I_StartRealPlay(rtmpAddress, {iWndIndex: iWndIndex});
|
|
|
}
|
|
|
|
|
|
function smartPlayerStop(iWndIndex) {
|
|
|
var parentId = getVideoPaneId(iWndIndex);
|
|
|
// $("#" + parentId).find("div.video-win-title").html("");
|
|
|
$("#" + parentId).find(".video-win-content").html("");
|
|
|
}
|
|
|
|
|
|
function smartPlayerStopAll() {
|
|
|
// $(".video-win-title").html("");
|
|
|
$(". video-win-content").html("");
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
<!--高度自适应
|
|
|
<script>
|
|
|
window.onload=function (){
|
|
|
function auto_height(){
|
|
|
document.getElementById("spjk_shujg").style.height=document.documentElement.clientHeight-224+"px";
|
|
|
document.getElementById("spjk_listqhnr").style.height=document.documentElement.clientHeight-144+"px";
|
|
|
document.getElementById("spjk_zssp1").style.height=document.documentElement.clientHeight-150+"px";
|
|
|
}
|
|
|
auto_height();
|
|
|
onresize=auto_height;
|
|
|
}
|
|
|
</script> -->
|
|
|
|
|
|
|
|
|
|
|
|
<!--选项卡-->
|
|
|
<%-- <script src="${ctx }/hbcyjc/resourceNew/js/jquery.min.js"></script> --%>
|
|
|
<script>
|
|
|
function showitem(e,id){
|
|
|
$(e).parent().find('li').removeClass('active');
|
|
|
$(e).addClass('active');
|
|
|
|
|
|
$('.spjk_listnrlb').css("display",'none');
|
|
|
$('#'+id).css("display",'');
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
</body>
|
|
|
</html>
|
|
|
|
|
|
|