|
@@ -294,23 +294,22 @@
|
|
|
console.log('data', data);
|
|
console.log('data', data);
|
|
|
this.curPlayData = data;
|
|
this.curPlayData = data;
|
|
|
|
|
|
|
|
- this.videoUrl = 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/2minute-demo.mp4'
|
|
|
|
|
|
|
+ //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
|
|
|
|
|
- // // })
|
|
|
|
|
-
|
|
|
|
|
- // })
|
|
|
|
|
|
|
+ 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() {
|
|
initFirstVideo() {
|
|
|
|
|
|