# 聊天室后台的管理设置（视频）

new Vue({ el: '#player', data() { return { vodPlayerJs: '<https://player.polyv.net/script/player.js>', vid: '88083abbf521c7c7f98f8c174417571f\_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. 可以通过点击按钮，开启或者关闭对应的功能。

　
