bigscreen-player
Advanced tools
Comparing version 4.18.8 to 4.18.9
{ | ||
"name": "bigscreen-player", | ||
"version": "4.18.8", | ||
"version": "4.18.9", | ||
"description": "Simplified media playback for bigscreen devices.", | ||
@@ -5,0 +5,0 @@ "main": "script/bigscreenplayer.js", |
@@ -31,4 +31,4 @@ define('bigscreenplayer/debugger/debugview', | ||
staticBox.style.position = 'absolute'; | ||
staticBox.style.width = '26%'; | ||
staticBox.style.right = '5%'; | ||
staticBox.style.width = '30%'; | ||
staticBox.style.right = '1%'; | ||
staticBox.style.top = '15%'; | ||
@@ -72,20 +72,35 @@ staticBox.style.bottom = '25%'; | ||
if (dynamicLogs.length === 0) { | ||
logContainer.innerHTML = ''; | ||
logContainer.textContent = ''; | ||
} | ||
dynamicLogs = dynamicLogs.slice(-LINES_TO_DISPLAY); | ||
logContainer.innerHTML = dynamicLogs.join('\n'); | ||
logContainer.textContent = dynamicLogs.join('\n'); | ||
var staticLogString = ''; | ||
logData.static.forEach(function (log) { | ||
staticLogString = staticLogString + log.key + ': ' + log.value + '\n'; | ||
}); | ||
logData.static.forEach(updateStaticElements); | ||
} | ||
staticContainer.innerHTML = staticLogString; | ||
function updateStaticElements (log) { | ||
var existingElement = document.getElementById(log.key); | ||
var text = log.key + ': ' + log.value; | ||
if (existingElement) { | ||
if (text !== existingElement.textContent) { | ||
existingElement.textContent = text; | ||
} | ||
} else { | ||
createNewStaticElement(log.key, log.value); | ||
} | ||
} | ||
function createNewStaticElement (key, value) { | ||
var staticLog = document.createElement('div'); | ||
staticLog.id = key; | ||
staticLog.style.paddingBottom = '1%'; | ||
staticLog.style.borderBottom = '1px solid white'; | ||
staticLog.textContent = key + ': ' + value; | ||
staticContainer.appendChild(staticLog); | ||
} | ||
function tearDown () { | ||
var logBox = document.getElementById('logBox'); | ||
var staticBox = document.getElementById('staticBox'); | ||
DOMHelpers.safeRemoveElement(logBox); | ||
@@ -92,0 +107,0 @@ DOMHelpers.safeRemoveElement(staticBox); |
@@ -255,6 +255,6 @@ define('bigscreenplayer/mediasources', | ||
DebugTool.keyValue({key: 'available cdns', value: availableCdns()}); | ||
DebugTool.keyValue({key: 'url', value: getCurrentUrl()}); | ||
DebugTool.keyValue({key: 'url', value: stripQueryParamsAndHash(getCurrentUrl())}); | ||
DebugTool.keyValue({key: 'available subtitle cdns', value: availableSubtitlesCdns()}); | ||
DebugTool.keyValue({key: 'subtitles url', value: getCurrentSubtitlesUrl()}); | ||
DebugTool.keyValue({key: 'subtitles url', value: stripQueryParamsAndHash(getCurrentSubtitlesUrl())}); | ||
} | ||
@@ -261,0 +261,0 @@ |
define('bigscreenplayer/version', | ||
function () { | ||
return '4.18.8'; | ||
return '4.18.9'; | ||
} | ||
); |
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
325216
8400