Polyv Cloud Live Mini Program Player Plugin
The Polyv Cloud Live Mini Program Player Plugin provides an out-of-the-box live player, offering strong support for customers to quickly integrate live streaming capabilities into their mini programs.
Prerequisites
- Mini programs applying to use the "Polyv Watch" plugin must be non-personal entities based in Mainland China.
- The following categories represent the current access scope for the "Polyv Watch" plugin and do not reflect WeChat's unified requirements for all live streaming plugins.
- Final eligibility to apply for and use the plugin is subject to the plugin application page display and WeChat review results.
| Mini Program Live Streaming Scenario | Requirements |
|---|---|
| Educational live streaming such as online courses, training, lectures | Education Services - Online Video Courses |
| E-commerce live streaming providing a trading venue for multiple operators | E-commerce Platform - E-commerce Platform |
For detailed category and qualification requirements, see Polyv Watch Plugin Category Application Qualification Requirements. For general WeChat plugin rules, refer to Mini Program Plugin Feature Introduction and Mini Program Plugin Usage Instructions.
If the category requirements are not met, you may choose the WeChat Mini Program Live Streaming Playback Custom Component based on actual permissions.
Quick Start
1. Add the Plugin
Add the plugin in the Mini Program management backend under "Settings - Third-party Settings - Plugin Management":

Search using the plugin AppID or plugin name in the search bar (relevant categories are required).
- Plugin AppID:
wxfb2e591959a8bacf - Plugin Name:
Polyv观看
After adding, contact your account manager or the official "Polyv" customer service to apply for review approval.

2. Configure the Plugin
2.1 Declare the Plugin in app.json
{
"plugins": {
"polyv-live-player": {
"version": "1.0.2",
"provider": "wxfb2e591959a8bacf"
}
}
}
2.2 Import the Component in the Page JSON
{
"usingComponents": {
"polyv-live-player": "plugin://polyv-live-player/live-player"
}
}
3. Basic Usage Example
3.1 Page Structure (WXML)
<!-- pages/live/live.wxml -->
<view class="container">
<polyv-live-player
config="{{playerConfig}}"
bind:videoPlay="onVideoPlay"
/>
</view>
3.2 Page Logic (JS)
// pages/live/live.js
Page({
data: {
playerConfig: {
// 鉴权设置
auth: {
appId: '',
sign: '',
timestamp: xxx
},
// 账户信息
uid: '',
// 频道信息
cid: '',
// 统计信息
statistics: {
param1: '',
param2: ''
}
}
},
onLoad() {
console.log('直播页面加载完成');
},
// 播放器事件处理
onVideoPlay() {
console.log('视频播放事件');
}
});
Configuration Parameters
This plugin uses the same configuration parameters as custom components. For detailed parameter descriptions, please refer to:
- Parameter Configuration Documentation - Complete parameter list and type descriptions
- Event Listening Documentation - Player event descriptions
- API Documentation - Player interface methods
Extended Features
This plugin only provides video playback capabilities. To implement the following features, refer to the Watch Page Mini Program SDK:
- Live streaming introduction page
- Chat room functionality
- Live co-hosting functionality
- More interactive features
