想问下大佬如果默认一个src,有某权限,替换另外一个src的对象,是在哪个事件里面替换呢,loadstart会无限循环
shilianmalaxiangguo opened this issue · 1 comments
shilianmalaxiangguo commented
let _audio_buy_info = 'xxxxx'
if (_audio_buy_info) {
let _pre_info = _this.audioInfo
_pre_info.src = _audio_buy_info.src
_this.audioInfo = Object.assign({}, _pre_info)
}
audioInfo是music的对象,但是在loadstart事件里面会无限循环,canplay也是
shilianmalaxiangguo commented
目前只能在mounted 或者watch created 里面替换,想的是 video标签也有的ready事件,那么audio应该也有类似的吧