This commit is contained in:
unknown 2023-12-11 17:46:20 +08:00
commit 79adb5477c
8 changed files with 4675 additions and 38 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -6,11 +6,6 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<!-- 引入 Vue CDN -->
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<!-- 引入 jQuery CDN -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="../src/assets/module/PlayerControl.js"></script>
<title> <title>
<%= htmlWebpackPlugin.options.title %> <%= htmlWebpackPlugin.options.title %>
</title> </title>

View File

@ -19,10 +19,3 @@
</body> </body>
</html> </html>
<style>
.h5-play-wrap {
height: 100%;
width: 100%;
}
</style>

View File

@ -139,6 +139,7 @@ const setVideoDom = () => {
$canvas_ivs = $("#h5_ivs_" + WndIndex); $canvas_ivs = $("#h5_ivs_" + WndIndex);
$videoLoading = $("#h5_loading_" + WndIndex); $videoLoading = $("#h5_loading_" + WndIndex);
}; };
/** /**
/** /**
* @description 预览 * @description 预览
@ -148,6 +149,7 @@ const setVideoDom = () => {
* @param {boolean} isChangeStream 是否是切换码流导致的重新拉流 * @param {boolean} isChangeStream 是否是切换码流导致的重新拉流
*/ */
const onPreview = (isPlayback, url, playbackIndex, isChangeStream) => { const onPreview = (isPlayback, url, playbackIndex, isChangeStream) => {
let channel = window.location.href.split("?")[1];
if ( if (
playerInstance[WndIndex] && playerInstance[WndIndex] &&
onlineChannel.indexOf(channel) > -1 && onlineChannel.indexOf(channel) > -1 &&
@ -157,7 +159,7 @@ const onPreview = (isPlayback, url, playbackIndex, isChangeStream) => {
return; return;
} }
onStopPreview(); onStopPreview();
var player = null var player = null;
let options = { let options = {
wsURL: "ws://" + "221.214.127.18" + ":" + "8200" + "/rtspoverwebsocket", wsURL: "ws://" + "221.214.127.18" + ":" + "8200" + "/rtspoverwebsocket",
rtspURL: rtspURL:
@ -165,7 +167,7 @@ const onPreview = (isPlayback, url, playbackIndex, isChangeStream) => {
"221.214.127.18" + "221.214.127.18" +
":" + ":" +
"8200" + "8200" +
"/cam/realmonitor?channel=1" + `/cam/realmonitor?channel=${channel}` +
"&subtype=0" + "&subtype=0" +
"&proto=Private3", "&proto=Private3",
username: "admin", username: "admin",
@ -187,9 +189,6 @@ const onPreview = (isPlayback, url, playbackIndex, isChangeStream) => {
if (!player.isPlayback) { if (!player.isPlayback) {
onlineChannel.push(channel); onlineChannel.push(channel);
updateChannelList(); updateChannelList();
// if(curWndType !== 1) {
// clickNextWnd();
// }
} }
}); });

View File

@ -17,7 +17,7 @@
<div id="dqsxtxx"> <div id="dqsxtxx">
<div class="headers"> <div class="headers">
<iframe <iframe
:src="'module/webs/index.html'" :src="'module/webs/index.html?1'"
frameborder="0" frameborder="0"
width="100%" width="100%"
height="100%" height="100%"
@ -59,7 +59,12 @@
<div id="spjk"> <div id="spjk">
<div class="spjk_one" v-for="(item, index) in sxtlist" :key="index"> <div class="spjk_one" v-for="(item, index) in sxtlist" :key="index">
<div class="jiankong"> <div class="jiankong">
<video :src="item.src" autoplay muted></video> <iframe
:src="'module/webs/index.html?' + item.channel"
frameborder="0"
width="100%"
height="100%"
></iframe>
</div> </div>
<div class="spjk_title">{{ item.name }}</div> <div class="spjk_title">{{ item.name }}</div>
</div> </div>
@ -383,36 +388,40 @@ export default {
], ],
sxtlist: [ sxtlist: [
{ {
src: require("../../assets/videos/G.E.M.邓紫棋 - 不想回家.mp4"), channel: "D19",
name: "SP锅炉", name: "3号煤磨在线监测",
}, },
{ {
src: require("../../assets/videos/G.E.M.邓紫棋 - 句号.mp4"), channel: "D14",
name: "回转窑", name: "水泥散12#发货口",
}, },
{ {
src: require("../../assets/videos/G.E.M.邓紫棋 - GLORIA.mp4"), channel: "69",
name: "西侧垃圾发电", name: "1#回转窑",
}, },
{ {
src: require("../../assets/videos/林俊杰 - 愿与愁.mp4"), channel: "70",
name: "北侧垃圾发电", name: "辊压机",
}, },
{ {
src: require("../../assets/videos/G.E.M.邓紫棋 - 不想回家.mp4"), channel: "71",
name: "SP锅炉", name: "2#窑",
}, },
{ {
src: require("../../assets/videos/G.E.M.邓紫棋 - 句号.mp4"), channel: "33",
name: "回转窑", name: "矿区全貌",
}, },
{ {
src: require("../../assets/videos/G.E.M.邓紫棋 - GLORIA.mp4"), channel: "40",
name: "西侧垃圾发电", name: "3#煤磨",
}, },
{ {
src: require("../../assets/videos/林俊杰 - 愿与愁.mp4"), channel: "63",
name: "北侧垃圾发电", name: "垃圾处理北门外",
},
{
channel: "71",
name: "2#窑",
}, },
], ],
dates: new Date(), dates: new Date(),
@ -703,8 +712,7 @@ export default {
justify-content: space-around; justify-content: space-around;
flex-wrap: wrap; flex-wrap: wrap;
align-items: center; align-items: center;
align-content: space-around; overflow-y: auto;
overflow-y: scroll;
// //
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 5px; width: 5px;