Skip to main content

Callback Integration

To receive event logs, integrate the PlaybackEvent callback function in the Player SDK by attaching the onPlayLogFired handler:

const player = createPlayer('player-container', {
license, // license is not required when testing in local development environment
source: [
type: 'application/dash+xml',
src: dashUrl,
type: 'application/x-mpegurl',
src: hlsUrl,
onPlayLogFired: (eventName, data) = {
// Your own log service integration here
console.debug(eventName, data)