直播暖场设置(视频)
new Vue({ el: '#player', data() { return { vodPlayerJs: 'https://player.polyv.net/script/player.js', vid: '88083abbf5dd6ee9cf98c280ed696fc9_8', }; }, mounted(){ this.loadPlayerScript(this.loadPlayer); }, methods: { loadPlayerScript(callback) { if (!window.polyvPlayer) { const myScript = document.createElement('script'); myScript.setAttribute('src', this.vodPlayerJs); myScript.onload = callback; document.body.appendChild(myScript); } else { callback(); } }, loadPlayer() { const polyvPlayer = window.polyvPlayer; this.player = polyvPlayer({ wrap: '#player', vid: this.vid , autoplay:false }); } }, destroyed() { if (this.player) { this.player.destroy(); } } })
视频说明
1.在直播后台里找到并点击【频道列表】,然后点击需要修改的频道号。 2.点击左侧菜单的【播放器设置】,再点击【暖场设置】,选择暖场的类型(图片或者视频),然后上传对应的暖场素材,并填写跳转链接(视频暂不支持跳转),设置完毕后,点击【提交】保存。
Last updated