Skip to main content

Implement an Interface for Passing Video Player

For linear channels or VOD, you must pass information about the video player used for content playback to the SDK. Supported players:

EnvironmentPlayer
HTML5Bitmovin Player
HLS.js
Video.js

If the player that you are using is supported by the SDK, you can return the player by implementing the MediaPlayerHook interface that is provided by the SDK.

MediaPlayerHook Interface Description

FunctionDescription
getPlayer()Returns the player object that plays the main content.

Examples of MediaPlayerHook Implementation

const player = new bitmovin.Player(document.querySelector('video'))
const mediaPlayerHook = {
getPlayer() {
return player;
},
}

If the SDK doesn't support your video player, Contact Helpdesk.