腾讯插件播放视频时报Cannot read property 'top' of undefined?
发布于 6 年前 作者 lshi 3682 次浏览 来自 问答

腾讯视频插件

基础库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
1 回复

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部