Commit 7f1eba0f authored by caicaicai's avatar caicaicai

修改

parent d0db5561
......@@ -59,8 +59,8 @@
</template>
<script>
// import Hls from "hls.js"
// import EZUIKit from "ezuikit-js";
import Hls from "hls.js"
//import EZUIKit from "ezuikit-js";
import { Tools, HttpReq, Dates} from '@/assets/js/common.js';
var noPtzhls = null;
export default {
......@@ -155,7 +155,8 @@ export default {
this.$nextTick(()=>{
this.itemList.forEach(function(item,index){
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.on(Hls.Events.MANIFEST_PARSED,function() {
that.$refs[item.ref][0].play();
......@@ -174,7 +175,8 @@ export default {
this.$nextTick(()=>{
this.itemList.forEach(function(item,index){
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.on(Hls.Events.MANIFEST_PARSED,function() {
that.$refs[item.ref][0].play();
......@@ -289,7 +291,7 @@ export default {
} else {
this.btnChildren = false;
if (data.motorcadeId == 1) {
HttpReq.truckDispatching.mineMonitoringHowYuntaiQuery({ip:data.cameraIp}).then((res) => {
HttpReq.truckDispatching.mineMonitoringHowYuntaiQuery({ip:data.ip}).then((res) => {
if(!res){
let noPtzVideo = document.getElementById('noPtzVideo');
noPtzhls = new Hls();
......
......@@ -5,11 +5,11 @@
<router-view :key="key" />
</keep-alive>
</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></span>
<a href="https://beian.miit.gov.cn" target="_blank">{{ $store.state.settings.caseNumber }}</a>
</div>
</div> -->
<!-- <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