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, HTML5-first 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.
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:
<!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-cdn.akamaized.net/dist/latest/avvpl-player.js"></script>
<link rel="stylesheet" type="text/css" href="https://avplayer-cdn.akamaized.net/dist/latest/styles.js">
<title>Sample Sportradar Player</title>
<style>
body {
margin: 0;
padding: 0;
}
#playercontainer {
position: relative;
width: 100%;
height: 100%;
border: 1px solid black;
Load the Player script from our Cloud Service
<script src="https://avplayer-cdn.akamaized.net/dist/latest/avvpl-player.js"></script>Load the Player Stylesheet
<link rel="stylesheet" type="text/css" href="https://avplayer-cdn.akamaized.net/dist/latest/styles.css">Create the player object
Set the Player configuration variables
This is the most basic implementation of Sportradar player.
If you decide to load the files from a different location, please make sure it gets loaded from the html file location.
The html snippet contains a div element with the id of "playercontainer" (line 24).
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 42:
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 24.
Sample config on line 38:
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:
handlers
The order specified in this array is important as the player decides the handler to be used based on this order in case a stream can be played back using more than one handler. For example, in an android device, a hls stream (.m3u8 url) can be played back by both hls handler(using hls.js) and html5 handler(native html5 video).
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
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
dashjs settings
1- dashjs.updateSettings({
streaming: {
fastSwitchEnabled: true,
bufferTimeAtTopQuality: 2,
bufferTimeAtTopQualityLongForm: 2,
stableBufferTime: 2,
lowLatencyEnabled: true, // For CMAF-DASH only, otherwise false
jumpGaps: true
}
});
// If manifest contains suggestedPresentationDelay, then this can also be used if desired. Once manifest is loaded, do the following:
2- dashjs.updateSettings({
streaming: {
bufferTimeAtTopQuality: suggestedPresentationDelay,
bufferTimeAtTopQualityLongForm: suggestedPresentationDelay,
stableBufferTime: suggestedPresentationDelay
}
});
Only values changed with (2) is overwritten with the second update.Download
Please download, rename to sample.html and open in a browser.
enableCmaf
Default: false
Enable (set to true) or disable low latency streaming supported by dash.js using CMAF(Common Media Application Format) chunks. Works only with MPEG-DASH streams.
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!