wangguoyu 3 settimane fa
parent
commit
f2b9cfc272
1 ha cambiato i file con 19 aggiunte e 16 eliminazioni
  1. 19 16
      pages/client/Kecheng/study.vue

+ 19 - 16
pages/client/Kecheng/study.vue

@@ -6,7 +6,7 @@
 			@play-pause="onPause" @play-timeupdate="onTimeupdate"></videoPlayVue> -->
 
 		<video v-if="showVideo" :src="videoUrl" :poster="videoPoster" controls class="phone-video-box"
-			@play="onVideoPlay" @pause="onVideoPause" @ended="onVideoEnd" @error="onVideoError" id="myVideo"></video>
+			@play="onVideoPlay" @pause="onVideoPause" @ended="onVideoEnd" @error="onVideoError" id="myVideo" ></video>
 
 		<!-- 视频背景图 -->
 		<view v-else class="phone-video-box master-image" :style="{ backgroundImage: 'url(' + imgsArr.videoBj + ')' }">
@@ -293,21 +293,24 @@
 				}
 				console.log('data', data);
 				this.curPlayData = data;
-				kechengApi.getVideoId({
-					videoId: data.url
-				}).then(res => {
-
-					this.videoUrl = res.data
-					console.log('res', res);
-					// const progress = data.curProcess || 0;
-					// this.$refs.videoRef.init({
-					// 	videoId: data.url,
-					// 	playAuth: res.data,
-					// 	seekTime: data.duration * progress / 100,
-					// 	isPlay: false
-					// })
-
-				})
+				
+				this.videoUrl = 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/2minute-demo.mp4'
+				
+				// kechengApi.getVideoId({
+				// 	videoId: data.url
+				// }).then(res => {
+
+				// 	this.videoUrl = res.data
+				// 	console.log('res', res);
+				// 	// const progress = data.curProcess || 0;
+				// 	// this.$refs.videoRef.init({
+				// 	// 	videoId: data.url,
+				// 	// 	playAuth: res.data,
+				// 	// 	seekTime: data.duration * progress / 100,
+				// 	// 	isPlay: false
+				// 	// })
+
+				// })
 			},
 			initFirstVideo() {