|
@@ -64,9 +64,11 @@
|
|
|
},
|
|
|
watch:{
|
|
|
mediaType( ){
|
|
|
+ console.log("mediaType", this.mediaType)
|
|
|
this.selectMediaType = this.mediaType;
|
|
|
if( !this.mediaType ) return;
|
|
|
-
|
|
|
+ this.onPlay = false
|
|
|
+ // this.doPause()
|
|
|
},
|
|
|
dialog( showDilog ){
|
|
|
if( !showDilog){
|
|
@@ -171,7 +173,7 @@
|
|
|
if( this.media.position >= this.media.duration-10 && !this.media.isFinish){
|
|
|
this.tick( true )
|
|
|
}
|
|
|
- this.onPlay = true
|
|
|
+ // this.onPlay = true
|
|
|
},
|
|
|
onPlayerPause(event) {
|
|
|
this.reportErr("play", 'pause' );
|
|
@@ -188,12 +190,14 @@
|
|
|
this.$emit("close")
|
|
|
},
|
|
|
doPause( ){
|
|
|
+ // console.log("doPause")
|
|
|
this.stopTick()
|
|
|
+ this.onPlay = false
|
|
|
let myPlayer = this.$refs.videoPlayer.player;
|
|
|
myPlayer && myPlayer.pause()
|
|
|
- this.onPlay = false
|
|
|
},
|
|
|
doPlay(){
|
|
|
+ // console.log("doPlay")
|
|
|
this.onPlay = true
|
|
|
this.startTick();
|
|
|
if( !this.$refs.videoPlayer || !this.$refs.videoPlayer.player ) return;
|
|
@@ -203,6 +207,7 @@
|
|
|
this.tickNum = 0
|
|
|
},
|
|
|
onPlayerStart() {
|
|
|
+ // console.log("onPlayerStart")
|
|
|
this.reportErr("play", 'start');
|
|
|
this.startTick();
|
|
|
this.onPlay = true
|