bigscreen-player
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "bigscreen-player", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Simplified media playback for bigscreen devices.", | ||
@@ -5,0 +5,0 @@ "main": "script/bigscreenplayer.js", |
@@ -68,3 +68,11 @@ define('bigscreenplayer/playbackstrategy/msestrategy', | ||
function onTimeUpdate () { | ||
failoverTime = mediaElement.currentTime - timeCorrection; | ||
var IN_STREAM_BUFFERING_SECONDS = 20; | ||
var dvrInfo = mediaPlayer.getDashMetrics().getCurrentDVRInfo(mediaPlayer.getMetricsFor('video')); | ||
if (dvrInfo && windowType === WindowTypes.SLIDING) { | ||
failoverTime = Math.max(0, parseInt(dvrInfo.time - dvrInfo.range.start) - IN_STREAM_BUFFERING_SECONDS); | ||
} else { | ||
failoverTime = mediaElement.currentTime; | ||
} | ||
publishTimeUpdate(); | ||
@@ -71,0 +79,0 @@ } |
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
7234291
64840