Commit 7f1eba0f authored by caicaicai's avatar caicaicai

修改

parent d0db5561
...@@ -59,8 +59,8 @@ ...@@ -59,8 +59,8 @@
</template> </template>
<script> <script>
// import Hls from "hls.js" import Hls from "hls.js"
// import EZUIKit from "ezuikit-js"; //import EZUIKit from "ezuikit-js";
import { Tools, HttpReq, Dates} from '@/assets/js/common.js'; import { Tools, HttpReq, Dates} from '@/assets/js/common.js';
var noPtzhls = null; var noPtzhls = null;
export default { export default {
...@@ -155,7 +155,8 @@ export default { ...@@ -155,7 +155,8 @@ export default {
this.$nextTick(()=>{ this.$nextTick(()=>{
this.itemList.forEach(function(item,index){ this.itemList.forEach(function(item,index){
item.hls = new Hls(); item.hls = new Hls();
item.hls.loadSource(item.url) //item.hls.loadSource(item.url)
item.hls.loadSource('http://kbs-dokdo.gscdn.com/dokdo_300/_definst_/dokdo_300.stream/playlist.m3u8')
item.hls.attachMedia(that.$refs[item.ref][0]); item.hls.attachMedia(that.$refs[item.ref][0]);
item.hls.on(Hls.Events.MANIFEST_PARSED,function() { item.hls.on(Hls.Events.MANIFEST_PARSED,function() {
that.$refs[item.ref][0].play(); that.$refs[item.ref][0].play();
...@@ -174,7 +175,8 @@ export default { ...@@ -174,7 +175,8 @@ export default {
this.$nextTick(()=>{ this.$nextTick(()=>{
this.itemList.forEach(function(item,index){ this.itemList.forEach(function(item,index){
item.hls = new Hls(); item.hls = new Hls();
item.hls.loadSource(item.url) //item.hls.loadSource(item.url)
item.hls.loadSource('http://kbs-dokdo.gscdn.com/dokdo_300/_definst_/dokdo_300.stream/playlist.m3u8')
item.hls.attachMedia(that.$refs[item.ref][0]); item.hls.attachMedia(that.$refs[item.ref][0]);
item.hls.on(Hls.Events.MANIFEST_PARSED,function() { item.hls.on(Hls.Events.MANIFEST_PARSED,function() {
that.$refs[item.ref][0].play(); that.$refs[item.ref][0].play();
...@@ -289,7 +291,7 @@ export default { ...@@ -289,7 +291,7 @@ export default {
} else { } else {
this.btnChildren = false; this.btnChildren = false;
if (data.motorcadeId == 1) { if (data.motorcadeId == 1) {
HttpReq.truckDispatching.mineMonitoringHowYuntaiQuery({ip:data.cameraIp}).then((res) => { HttpReq.truckDispatching.mineMonitoringHowYuntaiQuery({ip:data.ip}).then((res) => {
if(!res){ if(!res){
let noPtzVideo = document.getElementById('noPtzVideo'); let noPtzVideo = document.getElementById('noPtzVideo');
noPtzhls = new Hls(); noPtzhls = new Hls();
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
<router-view :key="key" /> <router-view :key="key" />
</keep-alive> </keep-alive>
</transition> </transition>
<div v-if="$store.state.settings.showFooter" id="el-main-footer"> <!-- <div v-if="$store.state.settings.showFooter" id="el-main-footer">
<span v-html="$store.state.settings.footerTxt" /> <span v-html="$store.state.settings.footerTxt" />
<span></span> <span></span>
<a href="https://beian.miit.gov.cn" target="_blank">{{ $store.state.settings.caseNumber }}</a> <a href="https://beian.miit.gov.cn" target="_blank">{{ $store.state.settings.caseNumber }}</a>
</div> </div> -->
<!-- <div class="page-inline"> <!-- <div class="page-inline">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment