|
@@ -90,6 +90,9 @@
|
|
|
this.isReady = true
|
|
|
},
|
|
|
onPlayerTimeupdate( player ){
|
|
|
+ if( this.media.isFinish ){
|
|
|
+ return;
|
|
|
+ }
|
|
|
let myPlayer = this.$refs.videoPlayer.player;
|
|
|
let curTimes = player.cache_.currentTime;
|
|
|
if( curTimes>30 && curTimes > this.media.position+15 && !this.media.isFinish){
|
|
@@ -100,11 +103,9 @@
|
|
|
},
|
|
|
setposition( position ) {
|
|
|
if( position > this.media.duration) position = this.media.duration;
|
|
|
- if( !this.media.isFinish ){
|
|
|
- let player = this.$refs.videoPlayer.player;
|
|
|
- player.currentTime( position );
|
|
|
- }
|
|
|
let player = this.$refs.videoPlayer.player;
|
|
|
+ player.currentTime( position );
|
|
|
+ if( this.media.isFinish) return;
|
|
|
if( this.media.position >= this.media.duration-30 && !this.media.isFinish){
|
|
|
this.tick( true )
|
|
|
}
|
|
@@ -188,6 +189,7 @@
|
|
|
if (res.code == 200) {
|
|
|
let {skip, position, pause} = res.data
|
|
|
if( pause ) {
|
|
|
+ console.log("tickpause")
|
|
|
this.doPause();
|
|
|
this.$emit("close")
|
|
|
return
|