@unifiedplay/data-dashjs
v1.1.1
Published
UnifiedPlay Data for dash.js: bitrates and errors
Readme
@unifiedplay/data-dashjs
Bitrates, segment requests, the CDN, DRM and errors from dash.js 4 and 5, for @unifiedplay/data: playback quality data in the UnifiedPlay Console.
npm install @unifiedplay/data @unifiedplay/data-dashjsimport { DataClient, monitorVideo } from '@unifiedplay/data'
import { trackDashJs } from '@unifiedplay/data-dashjs'
const data = new DataClient({ key: 'up_data_…' })
const monitor = monitorVideo(data, videoElement, { id: video.id, title: video.title })
const stop = trackDashJs(monitor, player) // player: your dashjs.MediaPlayer() on videoElementtrackDashJs returns a function that stops listening to the player.
Get a data key (up_data_…) from the UnifiedPlay Console's Analytics → Video data page. No
account yet? Write to [email protected]. The key can only send views, never read them, so it
can sit in your app's code.
More: every player and platform, ads and your own dimensions · what is sent and how every number is worked out
