This commit is contained in:
parent
9263f9773d
commit
d1686607a3
|
|
@ -150,6 +150,7 @@ const setVideoDom = () => {
|
||||||
*/
|
*/
|
||||||
const onPreview = (isPlayback, url, playbackIndex, isChangeStream) => {
|
const onPreview = (isPlayback, url, playbackIndex, isChangeStream) => {
|
||||||
let channel = window.location.href.split("?")[1];
|
let channel = window.location.href.split("?")[1];
|
||||||
|
let ip = window.location.href.split("?")[2];
|
||||||
if (
|
if (
|
||||||
playerInstance[WndIndex] &&
|
playerInstance[WndIndex] &&
|
||||||
onlineChannel.indexOf(channel) > -1 &&
|
onlineChannel.indexOf(channel) > -1 &&
|
||||||
|
|
@ -161,10 +162,10 @@ const onPreview = (isPlayback, url, playbackIndex, isChangeStream) => {
|
||||||
onStopPreview();
|
onStopPreview();
|
||||||
var player = null;
|
var player = null;
|
||||||
let options = {
|
let options = {
|
||||||
wsURL: "ws://" + "221.214.127.18" + ":" + "8200" + "/rtspoverwebsocket",
|
wsURL: "ws://" + ip + ":" + "8200" + "/rtspoverwebsocket",
|
||||||
rtspURL:
|
rtspURL:
|
||||||
"rtsp://" +
|
"rtsp://" +
|
||||||
"221.214.127.18" +
|
ip +
|
||||||
":" +
|
":" +
|
||||||
"8200" +
|
"8200" +
|
||||||
`/cam/realmonitor?channel=${channel}` +
|
`/cam/realmonitor?channel=${channel}` +
|
||||||
|
|
@ -179,7 +180,6 @@ const onPreview = (isPlayback, url, playbackIndex, isChangeStream) => {
|
||||||
playbackIndex: playbackIndex,
|
playbackIndex: playbackIndex,
|
||||||
};
|
};
|
||||||
player = new PlayerControl(options);
|
player = new PlayerControl(options);
|
||||||
|
|
||||||
player.on("MSEResolutionChanged", function (e) {
|
player.on("MSEResolutionChanged", function (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
});
|
});
|
||||||
|
|
@ -191,7 +191,6 @@ const onPreview = (isPlayback, url, playbackIndex, isChangeStream) => {
|
||||||
updateChannelList();
|
updateChannelList();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
player.on("GetFrameRate", function (e) {
|
player.on("GetFrameRate", function (e) {
|
||||||
console.log("GetFrameRate: " + e);
|
console.log("GetFrameRate: " + e);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
<div id="dqsxtxx">
|
<div id="dqsxtxx">
|
||||||
<div class="headers">
|
<div class="headers">
|
||||||
<iframe
|
<iframe
|
||||||
:src="'module/webs/index.html?1'"
|
:src="'module/webs/index.html?1?221.214.127.18'"
|
||||||
frameborder="0"
|
frameborder="0"
|
||||||
width="100%"
|
width="100%"
|
||||||
height="100%"
|
height="100%"
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
<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">
|
||||||
<iframe
|
<iframe
|
||||||
:src="'module/webs/index.html?' + item.channel"
|
:src="'module/webs/index.html?' + item.channel + '?' + item.ip"
|
||||||
frameborder="0"
|
frameborder="0"
|
||||||
width="100%"
|
width="100%"
|
||||||
height="100%"
|
height="100%"
|
||||||
|
|
@ -389,38 +389,38 @@ export default {
|
||||||
sxtlist: [
|
sxtlist: [
|
||||||
{
|
{
|
||||||
channel: "D19",
|
channel: "D19",
|
||||||
|
ip: "221.214.127.18",
|
||||||
name: "3号煤磨在线监测",
|
name: "3号煤磨在线监测",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
channel: "D14",
|
channel: "D14",
|
||||||
|
ip: "221.214.127.18",
|
||||||
name: "水泥散12#发货口",
|
name: "水泥散12#发货口",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
channel: "69",
|
channel: "69",
|
||||||
|
ip: "221.214.127.18",
|
||||||
name: "1#回转窑",
|
name: "1#回转窑",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
channel: "70",
|
channel: "70",
|
||||||
|
ip: "221.214.127.18",
|
||||||
name: "辊压机",
|
name: "辊压机",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
channel: "71",
|
channel: "71",
|
||||||
|
ip: "221.214.127.18",
|
||||||
name: "2#窑",
|
name: "2#窑",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
channel: "33",
|
|
||||||
name: "矿区全貌",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
channel: "40",
|
|
||||||
name: "3#煤磨",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
channel: "63",
|
channel: "63",
|
||||||
|
ip: "221.214.127.18",
|
||||||
name: "垃圾处理北门外",
|
name: "垃圾处理北门外",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
channel: "71",
|
channel: "71",
|
||||||
|
ip: "221.214.127.18",
|
||||||
name: "2#窑",
|
name: "2#窑",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
@ -600,7 +600,6 @@ export default {
|
||||||
width: 184px;
|
width: 184px;
|
||||||
height: 37px;
|
height: 37px;
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
font-family: MicrosoftYaHei;
|
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue