|
@@ -674,7 +674,6 @@
|
|
|
this.isFinish = res.isFinish || 0
|
|
|
this.duration = res.course && res.course.duration ? res.course.duration : 0
|
|
|
this.playDuration = res.playDuration || 0
|
|
|
- this.playDurationSeek = res.playDuration || 0
|
|
|
this.tipsTime = res.tipsTime || 0
|
|
|
let lineList = []
|
|
|
if (res.course && res.course.lineOne) {
|
|
@@ -707,6 +706,7 @@
|
|
|
this.videoUrl = lineList[this.lineIndex]
|
|
|
this.poster= res.course && res.course.imgUrl ? res.course.imgUrl : ''
|
|
|
this.playTime = this.playDuration >= this.duration ? 0 : this.playDuration
|
|
|
+ this.playDurationSeek = this.playTime
|
|
|
setTimeout(()=>{
|
|
|
this.player = uni.createVideoContext('video-content-box');
|
|
|
this.player.seek(this.playTime)
|
|
@@ -714,6 +714,7 @@
|
|
|
},500);
|
|
|
} else {
|
|
|
this.playTime = this.playTime > this.playDuration ? this.playTime : this.playDuration >= this.duration ? 0 : this.playDuration
|
|
|
+ this.playDurationSeek = this.playTime
|
|
|
this.player.seek(this.playTime)
|
|
|
this.player.play();
|
|
|
}
|
|
@@ -1498,22 +1499,17 @@
|
|
|
}
|
|
|
|
|
|
.video-controls-box {
|
|
|
- width: 100%;
|
|
|
- height: calc(100% - 44px);
|
|
|
+ height: 72rpx;
|
|
|
+ width: 72rpx;
|
|
|
overflow: hidden;
|
|
|
position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
+ top: 50%;
|
|
|
+ left: 50%;
|
|
|
z-index: 2;
|
|
|
- // background: rgba(0, 0, 0, 0.2);
|
|
|
-
|
|
|
+ transform: translate(-50%, -50%);
|
|
|
.video-play {
|
|
|
height: 72rpx;
|
|
|
width: 72rpx;
|
|
|
- position: absolute;
|
|
|
- top: calc(50% + 22px);
|
|
|
- left: 50%;
|
|
|
- transform: translate(-50%, -50%);
|
|
|
}
|
|
|
}
|
|
|
|