|
@@ -921,6 +921,7 @@ export default {
|
|
|
// stream: null,
|
|
|
faceUrl: "",
|
|
|
erJianErZao: false,
|
|
|
+ pauseTime: 0,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -937,6 +938,7 @@ export default {
|
|
|
if (n) {
|
|
|
// var polyvPlayerContext = this.selectComponent("#playerVideo")
|
|
|
if (polyvPlayerContext) {
|
|
|
+ console.log(3213213);
|
|
|
// #ifdef MP-WEIXIN
|
|
|
polyvPlayerContext.pause();
|
|
|
// #endif
|
|
@@ -2278,6 +2280,14 @@ export default {
|
|
|
},
|
|
|
// 随机拍摄时间
|
|
|
randomConfig(totalVideoTime, duration) {
|
|
|
+ // // #ifdef MP-WEIXIN
|
|
|
+ // let totalVideoTime = polyvPlayerContext.getDuration();
|
|
|
+ // let duration = polyvPlayerContext.getCurrentTime();
|
|
|
+ // // #endif
|
|
|
+ // // #ifdef H5
|
|
|
+ // let totalVideoTime = polyvPlayerContext.j2s_getDuration();
|
|
|
+ // let duration = polyvPlayerContext.j2s_getCurrentTime();
|
|
|
+ // // #endif
|
|
|
this.photoHistoryList = [];
|
|
|
let photoList = [duration];
|
|
|
let pre = duration;
|
|
@@ -3046,10 +3056,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
if (newstate.detail.newstate == "pause") {
|
|
|
+ this.pauseTime = Date.now();
|
|
|
+ console.log("小程序暂停",this.pauseTime);
|
|
|
clearInterval(this.timer);
|
|
|
- //暂停提交记录
|
|
|
- /* this.ossAvatarUrl = ""
|
|
|
- this.postStudyRecord() */
|
|
|
}
|
|
|
if (newstate.detail.newstate == "ended") {
|
|
|
clearInterval(this.timer);
|
|
@@ -3060,7 +3069,6 @@ export default {
|
|
|
this.hasStart = false;
|
|
|
this.postStudyRecord(1);
|
|
|
this.nextSection();
|
|
|
- // uni.$emit('playNext') //播放重修下一节
|
|
|
}
|
|
|
},
|
|
|
//播放下一节
|