移动端直播引导图设置(视频)
new Vue({ el: '#player', data() { return { vodPlayerJs: 'https://player.polyv.net/script/player.js', vid: '88083abbf5ea6df070fc19be48d3ac16_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.点击【引导页】—【移动端引导图】,打开【引导图开关】,再点击【上传图片】,提交即可。 注:图片大小4M以内,图片分辨率1080*1740像素,支持PNG、JPG、JPEG格式
Last updated