修复分享功能

This commit is contained in:
panlinlin
2021-05-06 10:44:16 +08:00
parent d3d48d1d07
commit 429817b8c4
4 changed files with 44 additions and 15 deletions

View File

@@ -14,10 +14,14 @@ export default {
},
props: ['videoUrl', 'error', 'hasaudio'],
mounted () {
let paramUrl = decodeURIComponent(this.$route.params.url)
this.$nextTick(() =>{
console.log("初始化时的地址为: " + this.videoUrl)
this.easyPlayer = new WasmPlayer(null, 'easyplayer', this.eventcallbacK)
this.easyPlayer.play(this.videoUrl, 1)
if (typeof (this.videoUrl) == "undefined") {
this.videoUrl = paramUrl;
}
console.log("初始化时的地址为: " + this.videoUrl)
this.easyPlayer = new WasmPlayer(null, 'easyplayer', this.eventcallbacK)
this.easyPlayer.play(this.videoUrl, 1)
})
},
watch:{