From 85c5fafda53f21697499ff0587ff6dc0f2b00f0a Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期四, 16 三月 2023 09:34:20 +0800
Subject: [PATCH] 更新前后端分离部署文档
---
web_src/src/components/dialog/easyPlayer.vue | 35 +++++++++++++++++++----------------
1 files changed, 19 insertions(+), 16 deletions(-)
diff --git a/web_src/src/components/dialog/easyPlayer.vue b/web_src/src/components/dialog/easyPlayer.vue
index c79f65d..daf7207 100644
--- a/web_src/src/components/dialog/easyPlayer.vue
+++ b/web_src/src/components/dialog/easyPlayer.vue
@@ -1,7 +1,5 @@
<template>
- <div id="player">
- <div id="easyplayer"></div>
- </div>
+ <div id="easyplayer"></div>
</template>
<script>
@@ -12,7 +10,7 @@
easyPlayer: null
};
},
- props: ['videoUrl', 'error', 'hasaudio'],
+ props: ['videoUrl', 'error', 'hasaudio', 'height'],
mounted () {
let paramUrl = decodeURIComponent(this.$route.params.url)
this.$nextTick(() =>{
@@ -20,30 +18,35 @@
this.videoUrl = paramUrl;
}
console.log("鍒濆鍖栨椂鐨勫湴鍧�涓�: " + this.videoUrl)
- this.easyPlayer = new WasmPlayer(null, 'easyplayer', this.eventcallbacK)
- this.easyPlayer.play(this.videoUrl, 1)
+ this.play(this.videoUrl)
})
},
watch:{
videoUrl(newData, oldData){
- this.easyPlayer.destroy()
- this.easyPlayer = new WasmPlayer(null, 'easyplayer', this.eventcallbacK)
- this.easyPlayer.play(newData, 1)
+ this.play(newData)
},
immediate:true
},
methods: {
play: function (url) {
- this.easyPlayer = new WasmPlayer(null, 'easyplayer', this.eventcallbacK)
+ console.log(this.height)
+ if (this.easyPlayer != null) {
+ this.easyPlayer.destroy();
+ }
+ if (typeof (this.height) == "undefined") {
+ this.height = false
+ }
+ this.easyPlayer = new WasmPlayer(null, 'easyplayer', this.eventcallbacK, {Height: this.height})
this.easyPlayer.play(url, 1)
},
pause: function () {
- this.easyPlayer.destroy();
+ this.easyPlayer.destroy();
+ this.easyPlayer = null
},
eventcallbacK: function(type, message) {
- console.log("player 浜嬩欢鍥炶皟")
- console.log(type)
- console.log(message)
+ // console.log("player 浜嬩欢鍥炶皟")
+ // console.log(type)
+ // console.log(message)
}
},
destroyed() {
@@ -57,8 +60,8 @@
min-width: 70px;
}
/* 闅愯棌logo */
- /* .iconqingxiLOGO {
+ .iconqingxiLOGO {
display: none !important;
- } */
+ }
</style>
--
Gitblit v1.8.0