|
@@ -1147,11 +1147,15 @@ export default {
|
|
|
},
|
|
|
erJianErZaoPauseTip() {
|
|
|
if (this.playSecIsLearn && this.erJianErZao) {
|
|
|
+ if (this.pauseTimer) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.pauseTime = Date.now();
|
|
|
+ console.log("开启定时器");
|
|
|
this.pauseTimer = setInterval(() => {
|
|
|
- console.log("暂停时间", Date.now() - this.pauseTime);
|
|
|
- if (Date.now() - this.pauseTime > 15 * 60 * 1000) {
|
|
|
- // 15 * 60 * 1000
|
|
|
+ console.log("暂停时间", Date.now() - this.pauseTime, this.pauseTime);
|
|
|
+ if (Date.now() - this.pauseTime > 5 * 60 * 1000) {
|
|
|
+ // 5 * 60 * 1000
|
|
|
let text = this.photoPopup ? "拍照停留" : "暂停";
|
|
|
this.photoPopup = false;
|
|
|
uni.showModal({
|
|
@@ -1289,6 +1293,7 @@ export default {
|
|
|
},
|
|
|
clearPauseTimer() {
|
|
|
if (this.pauseTimer) {
|
|
|
+ console.log(this.pauseTimer, "清除定时器");
|
|
|
this.pauseTime = 0;
|
|
|
clearInterval(this.pauseTimer);
|
|
|
this.pauseTimer = null;
|
|
@@ -3037,6 +3042,7 @@ export default {
|
|
|
async onStateChange(newstate, oldstate) {
|
|
|
polyvPlayerContext = this.selectComponent("#playerVideo");
|
|
|
if (newstate.detail.newstate == "playing") {
|
|
|
+ console.log("播放");
|
|
|
if (this.needSeek) {
|
|
|
// var polyvPlayerContext = this.selectComponent("#playerVideo");
|
|
|
if (this.recordObj.videoCurrentTime) {
|
|
@@ -3081,7 +3087,6 @@ export default {
|
|
|
this.hasStart = false;
|
|
|
await this.postStudyRecord(1);
|
|
|
this.nextSection();
|
|
|
- // uni.$emit('playNext') //播放重修下一节
|
|
|
}
|
|
|
},
|
|
|
//播放下一节
|
|
@@ -3418,6 +3423,7 @@ export default {
|
|
|
* 进入全屏
|
|
|
*/
|
|
|
fullscreenchange(event) {
|
|
|
+ console.log(event.detail.direction, 666);
|
|
|
if (event.detail.direction == "vertical") {
|
|
|
this.navShow = true;
|
|
|
} else if (event.detail.direction == "horizontal") {
|
|
@@ -3723,7 +3729,6 @@ export default {
|
|
|
if (this.H5isAllowSeek == "on" && !this.barTimer) {
|
|
|
this.barTimer = setInterval(function () {
|
|
|
const currentTime = polyvPlayerContext.j2s_getCurrentTime();
|
|
|
- // console.log(currentTime, originTime)
|
|
|
if (
|
|
|
currentTime - originTime > 1 ||
|
|
|
currentTime - originTime < 0
|
|
@@ -3783,7 +3788,6 @@ export default {
|
|
|
|
|
|
this.player.on("s2j_onPlayOver", async () => {
|
|
|
// 当前视频播放完毕时触发
|
|
|
- console.log("结束了结束了");
|
|
|
this.hasStart = false;
|
|
|
clearInterval(this.studyTimer);
|
|
|
clearInterval(this.timer);
|
|
@@ -3809,7 +3813,6 @@ export default {
|
|
|
exitFullscreen() {
|
|
|
try {
|
|
|
var de = document;
|
|
|
- // console.log(de);
|
|
|
if (de.exitFullscreen) {
|
|
|
de.exitFullscreen();
|
|
|
} else if (de.mozCancelFullScreen) {
|