因为新项目需求。第一次接触vue-video-player,发现只要视频地址正确,就会不断发起请求,暂停也没用,请问一下这个是正常的吗?有没有什么方法可以解决这个问题
这个是vue-video-player组件的option
playerOptions: {
overNative: true,
autoplay: false,
controls: true,
techOrder: ['html5'],
sourceOrder: true,
flash: {
hls: { withCredentials: false }
},
html5: { hls: { withCredentials: false } },
sources: [
{
withCredentials: false,
type: 'application/x-mpegURL',
src: ''
}
],
controlBar: {
timeDivider: false, // 时间分割线
durationDisplay: false, // 总时间
progressControl: true, // 进度条
customControlSpacer: true, // 未知
fullscreenToggle: true // 全屏
},
},