bigscreen-player
Advanced tools
Comparing version 3.1.0 to 3.2.0
{ | ||
"name": "bigscreen-player", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Simplified media playback for bigscreen devices.", | ||
@@ -5,0 +5,0 @@ "main": "script/bigscreenplayer.js", |
@@ -34,3 +34,7 @@ define('bigscreenplayer/playbackstrategy/msestrategy', | ||
playbackBitrate: undefined, | ||
bufferLength: undefined | ||
bufferLength: undefined, | ||
fragmentInfo: { | ||
requestTime: undefined, | ||
numDownloaded: undefined | ||
} | ||
}; | ||
@@ -152,3 +156,6 @@ | ||
} | ||
Plugins.interface.onPlayerInfoUpdated(playerMetadata); | ||
Plugins.interface.onPlayerInfoUpdated({ | ||
bufferLength: playerMetadata.bufferLength, | ||
playbackBitrate: playerMetadata.playbackBitrate | ||
}); | ||
} | ||
@@ -189,5 +196,15 @@ } | ||
DebugTool.keyValue({ key: 'Buffer Length', value: playerMetadata.bufferLength }); | ||
Plugins.interface.onPlayerInfoUpdated(playerMetadata); | ||
Plugins.interface.onPlayerInfoUpdated({ | ||
bufferLength: playerMetadata.bufferLength, | ||
playbackBitrate: playerMetadata.playbackBitrate | ||
}); | ||
} | ||
} | ||
if (event.mediaType === mediaKind && event.metric === 'HttpList' && event.value._tfinish && event.value.trequest) { | ||
playerMetadata.fragmentInfo.requestTime = Math.floor(Math.abs(event.value._tfinish.getTime() - event.value.trequest.getTime())); | ||
playerMetadata.fragmentInfo.numDownloaded = playerMetadata.fragmentInfo.numDownloaded ? ++playerMetadata.fragmentInfo.numDownloaded : 1; | ||
Plugins.interface.onPlayerInfoUpdated({ | ||
fragmentInfo: playerMetadata.fragmentInfo | ||
}); | ||
} | ||
} | ||
@@ -396,2 +413,10 @@ | ||
dashMetrics = undefined; | ||
playerMetadata = { | ||
playbackBitrate: undefined, | ||
bufferLength: undefined, | ||
fragmentInfo: { | ||
requestTime: undefined, | ||
numDownloaded: undefined | ||
} | ||
}; | ||
}, | ||
@@ -398,0 +423,0 @@ reset: function () { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7829376
75567