<player-component id="tvp-id" playerId="tvp" :controls="false" object-fit="cover" :loop="true" @play="play" @ended="playended"> </player-component
const store = requirePlugin('player'); const player = store.get('tvp');
使用this.selectComponent('#tvp-id'); 可以获取到实例获取时代码会报错 并阻止scroll-view的 锚点跳转。
报错信息:
TypeError: Converting circular structure to JSON
--> starting at object with constructor 't'
| property 'msg' -> object with constructor 'i'
| property '_events' -> object with constructor 'n'
| ...
| property 'context' -> object with constructor 't'
--- property 'player' closes the circle
at JSON.stringify (<anonymous>)
基础库版本号:2.30.2
开发者工具版本号:RC 1.06.2210141
腾讯视频插件版本号:2.1.12