diff --git a/components/video-player/video-player.vue b/components/video-player/video-player.vue index 5b6d635..590b1bc 100644 --- a/components/video-player/video-player.vue +++ b/components/video-player/video-player.vue @@ -1,6 +1,6 @@ @@ -22,35 +21,35 @@ export default{ data(){ return { - url2:'', - title:'', + fileUrl:'http:/127.0.0.1:9090/cdn/upload/course/2022/8/1013883711839379456.mp4', + title:'测试播放', author:'', } }, mounted() { - this.startAudioPlay(); + //this.startAudioPlay(); }, methods:{ startAudioPlay(){ - this.url2='http://localhost:9090/cdn/upload/course/2022/5/979321410778959872.mp3'; + this.fileUrl='http://localhost:9090/cdn/upload/course/2022/5/979321410778959872.mp3'; this.title='标题内容111'; this.author='作者信息'; }, changeSrc(){ - this.url2='http://localhost:9090/cdn/upload/course/2022/4/964853684964700160.mp3'; + this.fileUrl='http://localhost:9090/cdn/upload/course/2022/4/964853684964700160.mp3'; this.title='标题内容22'; this.author='作者信息'; }, - audioPlay(){ + videoPlay(){ console.log('audioPlay'); }, - audioEnd(){ + videoEnd(){ console.log('audioEnd'); }, - audioPause(){ + videoPause(){ console.log('audioPause'); }, - audioPlaying(){ + videoPlaying(){ console.log('audioPlaying'); } }