Usage
<script>
var player = new Clappr.Player({
parentId: '#player',
plugins: [ClapprStats],
source: 'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4',
height: 360,
width: 640,
clapprStats: {
runEach: 5000,
onReport: (metrics) => {console.log(metrics)},
uriToMeasureLatency: 'http://www.example.com/images/tv/pixel-1x1-red.gif',
}
})
</script>
Metrics
{
counters: {
play: 0,
pause: 0,
error: 0,
buffering: 0,
decodedFrames: 0,
droppedFrames: 0,
fps: 0,
changeLevel: 0,
seek: 0,
fullscreen: 0,
dvrUsage: 0
},
timers: {
startup: 0,
watch: 0,
pause: 0,
buffering: 0,
session: 0,
latency: 0,
},
extra: {
playbackName: '',
playbackType: '',
bitratesHistory: [],
bitrateMean: 0,
bitrateVariance: 0,
bitrateStandardDeviation: 0,
bitrateMostUsed: 0,
}
}