Skip to content

Commit

Permalink
Format demo live stream statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Walch committed Mar 28, 2021
1 parent e382d5d commit f4b8cac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1213,12 +1213,14 @@ function checkBuffer() {
log +=
'Live Stats:\n' +
` Max Latency: ${hls.maxLatency}\n` +
` Target Latency: ${hls.targetLatency}\n` +
` Target Latency: ${hls.targetLatency.toFixed(3)}\n` +
` Latency: ${hls.latency.toFixed(3)}\n` +
` Drift: ${hls.latencyController.drift.toFixed(
3
)} (edge advance rate)\n` +
` Edge Stall: ${hls.latencyController.edgeStalled} (playlist refresh over target duration/part)\n` +
` Edge Stall: ${hls.latencyController.edgeStalled.toFixed(
3
)} (playlist refresh over target duration/part)\n` +
` Playback rate: ${video.playbackRate.toFixed(2)}\n`;
if (stats.fragProgramDateTime) {
const currentPDT =
Expand Down

0 comments on commit f4b8cac

Please sign in to comment.