Explorar el Código

fix 随机拍

he2802 hace 3 años
padre
commit
8cb5d52a27
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      pages3/polyv/detail.vue

+ 2 - 2
pages3/polyv/detail.vue

@@ -1027,14 +1027,14 @@ export default {
 			if (polyvPlayerContext != null) {
 				
 				this.playTime = polyvPlayerContext.getCurrentTime() //播放时刻
-				console.log(this.photoIndex,789)
+			//	console.log(this.playTime,789,this.photoHistoryList)
 				//判断是否需要拍照
 				if (this.photoNum > 0) {
 					this.configPhoto()
 					let photoTime =0; //获取拍照秒数
 					for(let i=0;i<this.photoList.length;i++){
 						photoTime = Number(this.photoList[i]); //获取拍照秒数
-						if (photoTime < this.playTime&&photoTime>this.playTime-4) { //3秒区间内才触发拍照,避免拉动滚动条
+						if (photoTime < this.playTime&&photoTime>this.playTime-8) { //3秒区间内才触发拍照,避免拉动滚动条
 							if(this.photoHistoryList.indexOf(i)<0){ //不存在拍照历史则拍照
 								//启动拍照
 								//暂停