# Live Concurrent Viewers
ByteArk Player supports displaying the concurrent viewer count for a live stream by setting liveConcurrent.url in options. The URL should point to the live concurrent viewer endpoint provided by ByteArk.
# Options
| Name | Type | Required | Description |
|---|---|---|---|
| liveConcurrent | Object | No | Live concurrent viewer configuration |
| liveConcurrent.url | String | Yes | URL used to fetch the current viewer count from ByteArk |
# Example
<!doctype html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<div id="video-player"></div>
<script src="https://byteark-sdk.cdn.byteark.com/player/v2/byteark-player.min.js"></script>
<script>
var player = bytearkPlayer('video-player', {
fluid: true,
liveConcurrent: {
url: '<LIVE_CONCURRENT_URL>',
},
sources: [{
title: 'Live Stream',
src: '<LIVE_STREAM_URL>',
type: 'application/x-mpegURL'
}]
});
</script>
</body>
</html>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23