Sending Background Statistics Parameters for Embedded Live Player
Updated: 2021-05-08 11:59:28
When embedding the player using multi-terminal code on an external page, the absence of a user ID or user nickname results in missing user identification (user ID or nickname) in the backend viewing log statistics.
Adding the following parameters can resolve this issue.
1. Adding Parameters to the Embedded Player
<script src="https://player.polyv.net/livescript/liveplayer.js"></script>
<div id='player'></div>
<script type="text/javascript">
var player = polyvObject('#player').livePlayer({
'width:'498',
'height':'409',
'uid':'e3wx706i3v',
'vid':'102236',
'param1':'1505212490999',
'param2':'广州观众/27915'
});
</script>
Options
| Parameter | Type | Description |
|---|---|---|
| width | Number / String | Player width setting |
| height | Number / String | Player height setting |
| uid | String | Live channel user ID |
| vid | String | Live channel number |
| param1 | String | User ID |
| param2 | String | User nickname |
2. Live Streaming Backend Statistics

