Audience Information Settings and Statistics
Updated: 2024-01-18 19:00:50
The Polyv Cloud Live Web Player supports setting audience information parameters. Once configured, the audience information will be attached to the viewing logs reported by the player. This allows users to view the video watching status of specific audiences through the statistics page in the management console or via the server-side API.
1. Audience Information Settings
The code example for setting audience information parameters in the player is as follows:
<div id="player"></div>
<script src="//player.polyv.net/resp/live-h5-player/latest/liveplayer.min.js"></script>
<script>
var player = polyvLivePlayer({
wrap: '#player',
width: 800,
height: 533,
uid: 'uid',
vid: 'vid',
param1: 'param1',
param2: 'param2',
param4: 'param4',
param5: 'param5',
});
</script>
```
#### Parameter Field Description
| Name | Type | Description |
| ------ | ------ | ------------------------------------------------ |
| param1 | String | Audience ID |
| param2 | String | Audience Nickname |
| param4 | String | Custom parameter for audience information settings |
| param5 | String | Custom parameter for audience information settings |
