腾讯插件播放视频时报Cannot read property 'top' of undefined?
腾讯视频插件
基础库2.14.0
//当swiper滑动结束时播放当前视频
finish({ detail: { current } }) {
this.$nextTick(() => {
let context = TxvContext.getTxvContext(current);
context.play && context.play()
})
}
//报错信息
VM157:1 MiniProgramError Cannot read property 'top' of null
TypeError: Cannot read property 'top' of null