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.
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.
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"
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" |
|---|
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:
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:
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:
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:
const config = {
id: "container",
playerLicenceKey: "licenceKey",
showAugStreamingIcon: true,
autoplay: true
};
// Initialize player
player = new avvpl.setupPlayer(config);
// Prepare URLs JSON
const urlsJSON = {
standard
// 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
(or)
<div id="container">
<video>
<source src="standard_feed">
<source src="4sight_feed">
</video>
</div>
<script>
const config = {
id: "container",
playerLicenceKey: "abc123",
showAugStreamingIcon
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.
DASH JS settings
// 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:
// 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.