11wqe1 8 месяцев назад
Родитель
Сommit
81d4f9c024
1 измененных файлов с 12 добавлено и 12 удалено
  1. 12 12
      pages/playBack/playBack.vue

+ 12 - 12
pages/playBack/playBack.vue

@@ -8,7 +8,7 @@
 				<view>
 					<!-- 只渲染当前视频 -->
 					<video :src="currentVideoUrl" show-loading show-play-btn
-						show-center-play-btn controls @ended="playNextVideo"></video>
+						show-center-play-btn controls></video>
 				</view>
 			</template>
 		</view>
@@ -93,17 +93,17 @@
 			playVideo() {
 				this.currentVideoUrl = this.videoList[this.currentVideoIndex];
 			},
-			playNextVideo() {
-				// 播放下一个视频
-				if (this.currentVideoIndex+1 < this.videoList.length) {
-					this.currentVideoUrl = this.videoList[this.currentVideoIndex];
-					this.currentVideoIndex++;
-				} 
-				// else {
-				// 	this.currentVideoIndex = 0;
-				// 	this.currentVideoUrl = this.videoList[this.currentVideoIndex];
-				// }
-			},
+			// playNextVideo() {
+			// 	// 播放下一个视频
+			// 	if (this.currentVideoIndex+1 < this.videoList.length) {
+			// 		this.currentVideoUrl = this.videoList[this.currentVideoIndex];
+			// 		this.currentVideoIndex++;
+			// 	} 
+			// 	// else {
+			// 	// 	this.currentVideoIndex = 0;
+			// 	// 	this.currentVideoUrl = this.videoList[this.currentVideoIndex];
+			// 	// }
+			// },
 
 
 			// 获取页面数据