修复大华视频播放
This commit is contained in:
@@ -37,9 +37,9 @@ import {mapState} from 'vuex'
|
||||
import AiSwiper from './AiSwiper.vue'
|
||||
import chartList from './AiEchart/echartTpls'
|
||||
import AiMonitor from "./AiMonitor/AiMonitor";
|
||||
import AiDvPanel from "../layout/AiDvPanel/AiDvPanel";
|
||||
import AiDvDisplay from "../layout/AiDvDisplay/AiDvDisplay";
|
||||
import AiDvSummary from "../layout/AiDvSummary/AiDvSummary";
|
||||
import AiDvPanel from "./layout/AiDvPanel/AiDvPanel";
|
||||
import AiDvDisplay from "./layout/AiDvDisplay/AiDvDisplay";
|
||||
import AiDvSummary from "./layout/AiDvSummary/AiDvSummary";
|
||||
import AiSprite from "./AiSprite";
|
||||
|
||||
|
||||
|
||||
@@ -21,13 +21,12 @@ export default {
|
||||
const promise = url => new Promise(resolve => this.$injectLib(url, () => resolve())),
|
||||
promiseCss = url => new Promise(resolve => this.$injectCss(url, () => resolve()))
|
||||
return Promise.all([
|
||||
promiseCss("//cdn.cunwuyun.cn/videojs/video-js.min.css"),
|
||||
promise("//cdn.cunwuyun.cn/videojs/video.min.js"),
|
||||
promise("//cdn.cunwuyun.cn/videojs/videojs-contrib-hls.js"),
|
||||
])
|
||||
promiseCss("https://cdn.cunwuyun.cn/videojs/video-js.min.css"),
|
||||
promise("https://cdn.cunwuyun.cn/videojs/video.min.js"),
|
||||
]).then(() => promise("https://cdn.cunwuyun.cn/videojs/videojs-contrib-hls.js"))
|
||||
},
|
||||
initVideoJs(count = 0) {
|
||||
if (!!videojs) {
|
||||
if (!!window.videojs) {
|
||||
videojs(this.id, {
|
||||
autoplay: true
|
||||
}, function () {
|
||||
@@ -42,16 +41,13 @@ export default {
|
||||
src: {
|
||||
handler(val) {
|
||||
if (val) {
|
||||
this.initVideoJs()
|
||||
this.loadLib().then(() => this.initVideoJs())
|
||||
}
|
||||
},
|
||||
immediate: true,
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.loadLib()
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
import {fullScreenContainer} from '@jiaminghi/data-view'
|
||||
import Vue from "vue";
|
||||
import RightTopBorder from "./rightTopBorder";
|
||||
import AiSprite from "../../components/AiSprite";
|
||||
import AiSprite from "../../AiSprite";
|
||||
|
||||
Vue.use(fullScreenContainer)
|
||||
|
||||
@@ -182,8 +182,7 @@ export default {
|
||||
font-family: DIN;
|
||||
src: url("assets/D-DINExp.otf");
|
||||
}
|
||||
|
||||
@import url('../../lib/animation.scss');
|
||||
@import "components/animation";
|
||||
.AiDvWrapper {
|
||||
.viewPanel {
|
||||
display: flex;
|
||||
|
||||
@@ -13,10 +13,12 @@
|
||||
|
||||
<script>
|
||||
import AppGigscreenViewer from "../../viewer/AppGigscreenViewer";
|
||||
import AiDvWrapper from "../../../../components/layout/AiDvWrapper/AiDvWrapper";
|
||||
import AiDvBackground from "../../../../components/layout/AiDvBackground";
|
||||
|
||||
export default {
|
||||
name: "preview",
|
||||
components: {AppGigscreenViewer},
|
||||
components: {AiDvBackground, AiDvWrapper, AppGigscreenViewer},
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
|
||||
@@ -23,8 +23,10 @@
|
||||
|
||||
<script>
|
||||
|
||||
import AiDvRender from "../../../components/AiDvRender";
|
||||
export default {
|
||||
name: 'AppGigscreenViewer',
|
||||
components: {AiDvRender},
|
||||
label: '大屏预览',
|
||||
props: {
|
||||
instance: Function,
|
||||
|
||||
Reference in New Issue
Block a user