---
title: "Sportradar Video Player"
canonical_url: "https://docs.sportradar.com/resources/audiovisual/docs/readme/live-channel-online-live-channel-retail-flex/audiovisual-video-player/sportradar-video-player"
markdown_url: "https://docs.sportradar.com/resources/audiovisual/docs/readme/live-channel-online-live-channel-retail-flex/audiovisual-video-player/sportradar-video-player.md"
last_updated: "2026-11-26T13:16:06Z"
---

# Sportradar Video Player

### Introduction

Sportradar Video Player is the only video player designed for bookmakers. It’s implemented by several online bookmakers and physical bet shops all over the world.\
We develop our product in cooperation with bookmakers and thus know their needs. The Sportradar Video Player is a lightweight, feature rich and in-house developed, solution that supports all standard streaming and video formats, ready to cover all key platforms. With a smooth integration, 3rd parties can enhance their products by offering a complete Live and VOD player experience. The Product is deeply integrated into Sportradar production workflows, data feeds and optimized for the main CDN vendors.

### Feature list

The latest Sportradar video player is designed with a lightweight, modular architecture. It loads only the required components, reducing overall bundle size compared to previous versions. For example, a basic betting implementation is just 10% of the old player’s size. This optimization translates into faster execution, shorter load times, and improved runtime performance across devices.

#### Supported formats

- HLS
- HLS-LL
- MPEG-DASH
- MPEG-DASH CMAF
- MP4 progressive
- WebRTC

#### Playback features

- VOD / LIVE
- Seeking (VOD / LIVE: DVR)
- Autoplay on/off
- Multi-bitrate streaming
- Manual and automatic quality index switching
- Adjustable buffer length for all stream types
- Supports different video scaling options
- JS API allows access to low-level information for each supported stream type (fps, bufferLength, etc.)
- Comprehensive API for playback control and quality control
- Detachable player
- Cue points support for triggered actions or JS callbacks
- 4Sight stream switch

#### User interface

- Skinnable (CSS and configuration themes)
- Responsive
- Custom Controls (rewind, forward, play/pause, info, share, settings, volume, fullscreen)
- Title
- Multiple languages
- Fullscreen
- Audio volume controls
- Visible Watermark
- Poster Image
- Countdown to streamstart
- Various templates if stream is ended (e.g. Related videos (+ countdown to play the next video)
- Social Sharing
- Custom error and info messages
- Timeline markers
- Multiaudio
- Multiview
- Timeline markers
- W3C Compliance
- UI can be disabled via config (Player can be run via API)

### Player integration

The Player is easy to embed and can be controlled both via internal and external configuration files.\
Below you can find a sample HTML snippet of the minimum version of the player:

```html
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <script src="https://avplayer.sportradar.com/agamo/latest/avvpl-player.js"></script>
  <link rel="stylesheet" type="text/css" href="https://avplayer.sportradar.com/agamo/latest/avvpl-player.css">
  <title>Sample Sportradar Player</title>
  <style>
    body {
      margin: 0;
      padding: 0;
    }
    #playercontainer {
      position: relative;
      width: 100%;
      height: 100%;
      border: 1px solid black;
    }
  </style>
</head>

<body>
  <div id="playercontainer">
    <video>
      <source
        src="https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8">
      </source>
    </video>
  </div>

  <script>
    var config = {
      id: "playercontainer",
      playerLicenceKey: "FILL IN"
    };

    var avvplInstance = new avvpl.setupPlayer(config);

  </script>
</body>
</html>
```

### Licensing

Integration of the player licensing is quite straightforward.

All it requires is a simple config extension - `**playerLicenceKey**\`  is to be passed with **id** (for player container). This is a mandatory config.

| playerLicenceKey | String | "abcdefghijk123456789" |
| ---------------- | ------ | ---------------------- |

​

- Load the Player script from our Cloud Service
  - \<script src="<https://avplayer.sportradar.com/agamo/latest/avvpl-player.js>"></script>
- Load the Player Stylesheet
  - \<link rel="stylesheet" type="text/css" href="<https://avplayer.sportradar.com/agamo/latest/avvpl-player.css>">
- Create the player object
- Set the Player configuration variables
  - set playerLicenceKey

**This is the most basic implementation of Sportradar player.**

The html snippet contains a div element with the id of "playercontainer" (line 25).\
There is a "video" tag with two different video sources within this div element.\
Sportradar player will playback the first source it can manage to.\
To instantiate the player we call below on line 39:

```js
var avvplInstance = new avvpl.setupPlayer(config);
```

The config is the only "mandatory" object that you need to pass to the player.\
We have a wide range of configuration possibilities that can be provided to the player for playback options and UI look and feel.\
The must parameter within config is the id of the div element specified on line 25.\
Sample config on line 34:

```js
var config = { id: "playercontainer" };
```

Other config parameters will use default values as specified within the player code.

Some of the important parameters include the following:

- **bufferTime** The player by default uses buffer value as below:
  - For DASH: "useSuggestedPresentationDelay": Default value is true. If manifest contains suggestedPresentationDelay - This value is used. If set to false in config: Player uses the "bufferTime" set in config: Default used is 2, If set in config, this value is used.
  - For HLS: If bufferTime is set, this value is used as liveSyncDuration(edge of live delay), and maximum delay allowed from edge of live will be bufferTime \* 2.5 If not set in config, default value used for edge of live delay - 2 \* segment length, and maximum delay allowed from edge of live will be 5 \* segment length Note: "useSuggestedPresentationDelay" has no effect on hls handler
- **allowFullScreen** If fullscreen icon should not be shown on UI and not be allowed via API, then set this value to false. Default is true
- **autoplay** By default, player tries to autoplay the stream. If this is not desired, set this to false. Note that some browsers/devices do not allow autoplay. In these cases, player shows an autoplay overlay even though this value is set to true.
- **enableUI** By default, UI is enabled. If this is not desired, then set the parameter to false
- **loglevel** By default, this is set to 0 (Off) To show:
  - Just Errors on console : 1,
  - Errors and Warnings on console : 2,
  - Errors, Warnings and Info : 3,
  - Errors, Warnings, Info and Debug : 4\ <br>
- **maxBitrate** If the maximum bitrate to be used by the player should be limited. Maximum bitrate is defined in kbps (e.g. "maxBitrate": "350"). By default there is no limitation.
- **mute & volume** By default, the player tries to start unmuted with volume 50 (Except in case of mobile devices with autoplay) mute: true, volume: 45 -> Player starts muted (mute takes precedence) mute: false, volume: 45 -> Player starts with volume 45
- **trackLiveEdge** Default: false Enable player to track live edge status, and reach the live edge if current playback position is falling too far behind.
  - ***We strongly recommend enabling this!***

### 4Sight Streaming

To initialize the Sportradar Video Player with the option to switch between 4Sight and Standard LCO Feed, directly from within the player, all you need to do is load the player in the following ways.\
You have two options to do so:\ <br>

#### Option 1: Using load API (Can use option: standardFeedFirst)

```js
const config = {
  id: "container",
  playerLicenceKey: "licenceKey",
  showAugStreamingIcon: true,
  autoplay: true
};

// Initialize player
player = new avvpl.setupPlayer(config);

// Prepare URLs JSON
const urlsJSON = {
  standard: standardFeed,
  augmented: augmentedFeed
};

// Load streams when player is ready
player.on("loaded", () => {
  console.log('Player loaded, loading streams...');
  console.log('URLs:', urlsJSON);

  player.load(urlsJSON);
  /*player.load(urlsJSON, {standardFeedFirst: false}); */
});
```

#### Option 2: Using video tag sources<br>

```js
// Create video element with source tags
const video = document.createElement('video');

const source1 = document.createElement('source');
source1.src = standardFeed;
video.appendChild(source1);

const source2 = document.createElement('source');
source2.src = augmentedFeed;
video.appendChild(source2);

container.appendChild(video);

// Create player config
const config = {
  id: "container",
  playerLicenceKey: "licenceKey",
  showAugStreamingIcon: true
};

// Initialize player
console.log('Initializing player with config:', config);
player = new avvpl.setupPlayer(config);
```

**(or)**<br>

```html
<div id="container">
  <video>
    <source src="standard_feed">
    <source src="4sight_feed">
  </video>
</div>

<script>
  const config = {
    id: "container",
    playerLicenceKey: "abc123",
    showAugStreamingIcon: true,
  };
  const player = new avvpl.setupPlayer(config);
</script>
```

***

The player will then know how many streams are available for the respective player instance.

If it's 1 stream, it won't display the 4Sight icon.

If it's 2 streams, it will automatically show the 4Sight icon and switch between Stream 0 and 1 upon click.\ <br>

### Notes

- All Endpoints of the JS API can be found here: <https://avplayer.sportradar.com/agamo/docs/index.html>
- Recommendation when using dash.js directly for playback MPEG-DASH streams:

**DASH JS settings**​

```js
// 1. Static settings
dashjs.updateSettings({
  streaming: {
    fastSwitchEnabled: true,
    bufferTimeAtTopQuality: 2,
    bufferTimeAtTopQualityLongForm: 2,
    stableBufferTime: 2,
    lowLatencyEnabled: true, // For CMAF-DASH only, otherwise false
    jumpGaps: true
  }
});
```

If the manifest contains `suggestedPresentationDelay`, this can also be used if desired. Once the manifest is loaded, do the following:

```js
// 2. Using suggestedPresentationDelay from the manifest
dashjs.updateSettings({
  streaming: {
    bufferTimeAtTopQuality: suggestedPresentationDelay,
    bufferTimeAtTopQualityLongForm: suggestedPresentationDelay,
    stableBufferTime: suggestedPresentationDelay
  }
});
```

​**Download**\
Please download, rename to .html and open in a browser.\
Please note, that this sample still requires a playerLicenceKey to work. If you are missing this key, please don't hesitate to reach out.<br>

[Download file](https://docs.sportradar.com/resources/audiovisual/static/assets/audiovisual-client-documentation/sample.html.txt)
