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