Polyv Cloud Live Mini Program Playback Plugin
The Polyv Cloud Live Mini Program Playback Plugin provides an out-of-the-box live streaming player, offering strong support for customers to quickly integrate live streaming capabilities into their mini programs.
Prerequisites
- Mini programs applying to use the "Polyv Viewing" plugin must be non-individual entities in mainland China.
- The following categories are the current admission scope for the "Polyv Viewing" plugin and do not represent WeChat's unified requirements for all live streaming plugins.
- Whether the plugin can ultimately be applied for and used is subject to the display on the plugin application page and the WeChat review result.
| Mini Program Live Streaming Scenario | Requirements |
|---|---|
| Educational live streaming such as online courses, online training, and lectures | Education Services - Online Video Courses |
| E-commerce live streaming that provides a trading venue for multiple operators | E-commerce Platform - E-commerce Platform |
For category and qualification requirements, see Polyv Viewing Plugin Category Application Qualification Requirements. For general WeChat plugin rules, see Mini Program Plugin Feature Introduction and Mini Program Plugin Usage Instructions.
If course-selling entities such as paid knowledge, health and wellness, and interest-based entities do not have the "Education Services - Online Video Courses" qualification, please first read How Entities Such as Paid Knowledge Should Choose the WeChat Mini Program Education Services Category. If you only have the "Education Services - Course Sales" or "Education Services - Course Sales Platform" category, you cannot reference this plugin by default.
If the category requirements are not met, you can choose the WeChat Mini Program Live Streaming Playback Custom Component according to your actual permissions.
Quick Integration
1. Add the Plugin
Add the plugin in the mini program admin backend under "Settings - Third-party Settings - Plugin Management":

Enter the plugin AppID or plugin name in the search bar to search (the relevant category is required)
- Plugin AppID:
wxfb2e591959a8bacf - Plugin Name:
Polyv观看
After adding, please contact your account manager or the official "Polyv" customer service to apply for review and 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 the custom component. 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 API methods
Extended Features
This plugin only provides video playback capabilities. If you need to implement the following features, please refer to the Watch Page Mini Program SDK:
- Live Streaming Introduction Page
- Chat Room Feature
- Co-hosting Feature
- More Interactive Features
