> For the complete documentation index, see [llms.txt](https://polyv.gitbook.io/document/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://polyv.gitbook.io/document/docs/live/solution/function_state/player_rebroadcast.md).

# 转播

## 功能展示

new Vue({ el: '#player', data() { return { vodPlayerJs: '<https://player.polyv.net/script/player.js>', vid: '1b448be323cabec39a8afcc258b39101\_1', }; }, 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(); } } })

## 后台配置

| 创建主频道                            | 创建子频道                            | 主频道的转播菜单关联子频道                    |
| -------------------------------- | -------------------------------- | -------------------------------- |
| ![](/files/ZeRO0YT0ItowQPyZmSJg) | ![](/files/OTdPR335eUy7wk9lhpZy) | ![](/files/z1mz1hXcbXuUr2QiUgIF) |

## 相关API接口

| 接口                                                                                                                                    | 备注                                      |
| ------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| [创建发起转播的频道](https://git.polyv.net/help-center/document-center/-/blob/master/live/api/v4/channel/create.md)                            | type字段设置为transmit                       |
| [创建接收转播的频道](https://git.polyv.net/help-center/document-center/-/blob/master/live/api/v4/channel/create.md)                            | type字段设置为receive                        |
| [绑定频道转播关系](https://git.polyv.net/help-center/document-center/-/blob/master/live/api/channel/operate/update_channel_detail_setting.md) | operation设置为Y，receiveChannelIds为接收转播的频道 |
| [批量创建接收转播的频道](https://git.polyv.net/help-center/document-center/-/blob/master/live/api/channel/operate/batch_add_transmit/README.md)  | 根据发起转播的频道，批量创建接收转播的频道                   |
| [查询转播频道信息](https://git.polyv.net/help-center/document-center/-/blob/master/live/api/channel/operate/get_transmit_associations.md)     | 查询账号或频道下的转播列表信息                         |

## 注意事项

* 最多可以关联500个接收转播频道
* 研讨会、MR直播暂不支持转播
* 主频道不支持登录聊天室
* `主频道仅仅负责视频开播，分发子频道功能，所有营销互动功能例如打赏、商品库、签到、公告、问卷、答题卡、抽奖、红包等都不能使用，不支持登录主频道聊天室发言；`
* `观众只能在自己的子频道聊天互动，子频道之间彼此隔离，不可跨子频道聊天互动，不可查看跨子频道的聊天内容；子频道的助教可以配合主频道主播管理当前子频道的观众，配合执行打赏、商品库、签到、公告、问卷、答题卡、抽奖、红包等互动营销功能，子频道助教的所有操作只在当前子频道生效。`
