<audio ref="player" crossOrigin="anonymous" controls style="width:400px"
controlsList="nodownload" />
属性说明:
1、开始播放
this.$refs.player.play()
2、 暂停播放
this.$refs.player.pause()
3、设置播放倍数
this.$refs.player.playbackRate()
4、设置开始播放时间
this.$refs.player.currentTime
5、设置播放路径
this.$refs.player.src = src
6、crossorigin:是否采用跨域的方式加载视频。它可以取两个值,分别是anonymous(跨域请求时,不发送用户凭证,主要是 Cookie),use-credentials(跨域时发送用户凭证)。
7、设置显示控件:controlslist="nodownload nofullscreen noremoteplayback"