Sending Background Statistics Parameters for Embedded Live Player
Updated: 2021-05-17 17:06:09
When embedding the player using multi-terminal code on a 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 for 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 | Default Value | Description |
|---|---|---|---|
| width | number \ string | - | Player width setting |
| height | number \ string | - | Player height setting |
| uid | string | - | Live channel user ID |
| vid | string | - | Live channel |
| param1 | string | - | User ID |
| param2 | string | - | User nickname |
2. Live Broadcast Backend Statistics

