Merge pull request '修复了返回播放' (#328) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/328
This commit is contained in:
commit
85fce676e5
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<video :src="url" class="vodio" autoplay="true" :show-fullscreen-btn="false" :show-play-btn="false" :enable-progress-gesture="false" :show-center-play-btn="false" :show-progress="false" :controls="false" :style="{'height':height}" @error="errors">
|
<video :src="url" class="vodio" :autoplay="true" id="myVideo" :show-fullscreen-btn="false" :show-play-btn="false" :enable-progress-gesture="false" :show-center-play-btn="false" :show-progress="false" :controls="false" :style="{'height':height}" @error="errors">
|
||||||
|
|
||||||
</video>
|
</video>
|
||||||
<view class="user" :style="{'top': top}">
|
<view class="user" :style="{'top': top}">
|
||||||
@ -337,7 +337,8 @@ export default {
|
|||||||
danmu:false,
|
danmu:false,
|
||||||
room:{},
|
room:{},
|
||||||
chatRoomService:{},
|
chatRoomService:{},
|
||||||
danmulist:[]
|
danmulist:[],
|
||||||
|
videoContext:{}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onBackPress(options) {
|
onBackPress(options) {
|
||||||
@ -347,14 +348,10 @@ export default {
|
|||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
if(this.url != '' && this.url){
|
this.videoContext.play()
|
||||||
let url = this.url
|
|
||||||
this.url = ""
|
|
||||||
this.url = url
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
onLoad(a) {
|
onLoad(a) {
|
||||||
|
this.videoContext = uni.createVideoContext('myVideo')
|
||||||
this.url = a.url;
|
this.url = a.url;
|
||||||
this.id = a.id
|
this.id = a.id
|
||||||
console.log(this.url);
|
console.log(this.url);
|
||||||
|
Loading…
Reference in New Issue
Block a user