bigscreen-player
Advanced tools
Comparing version 4.3.1 to 4.4.0
{ | ||
"name": "bigscreen-player", | ||
"version": "4.3.1", | ||
"version": "4.4.0", | ||
"description": "Simplified media playback for bigscreen devices.", | ||
@@ -5,0 +5,0 @@ "main": "script/bigscreenplayer.js", |
@@ -8,3 +8,3 @@ define('bigscreenplayer/manifest/manifestmodifier', | ||
function filter (manifest, representationOptions, oldDashCodecRequired) { | ||
function filter (manifest, representationOptions) { | ||
var constantFps = representationOptions.constantFps; | ||
@@ -31,9 +31,2 @@ var maxFps = representationOptions.maxFps; | ||
if (oldDashCodecRequired) { | ||
DebugTool.keyValue({ key: 'Video Container', value: 'avc1' }); | ||
manifest = rewriteDashCodec(manifest); | ||
} else { | ||
DebugTool.keyValue({ key: 'Video Container', value: 'avc3' }); | ||
} | ||
return manifest; | ||
@@ -92,25 +85,2 @@ } | ||
function rewriteDashCodec (manifest) { | ||
var periods = manifest.Period_asArray || [manifest.Period]; | ||
if (periods) { | ||
for (var i = 0; i < periods.length; i++) { | ||
var sets = periods[i].AdaptationSet_asArray || periods[i].AdaptationSet; | ||
if (sets) { | ||
for (var j = 0; j < sets.length; j++) { | ||
var representations = sets[j].Representation_asArray || [sets[j].Representation]; | ||
if (representations) { | ||
for (var k = 0; k < representations.length; k++) { | ||
var rep = representations[k]; | ||
if (rep.mimeType === 'video/mp4') { | ||
rep.codecs = rep.codecs.replace('avc3', 'avc1'); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
return manifest; | ||
} | ||
return { | ||
@@ -117,0 +87,0 @@ filter: filter, |
@@ -163,5 +163,4 @@ define('bigscreenplayer/playbackstrategy/msestrategy', | ||
var representationOptions = window.bigscreenPlayer.representationOptions || {}; | ||
var oldDashCodecRequired = window.bigscreenPlayer.overrides && window.bigscreenPlayer.overrides.oldDashCodecRequired; | ||
ManifestModifier.filter(manifest, representationOptions, oldDashCodecRequired); | ||
ManifestModifier.filter(manifest, representationOptions); | ||
ManifestModifier.generateBaseUrls(manifest, mediaSources.availableSources()); | ||
@@ -168,0 +167,0 @@ } |
define('bigscreenplayer/version', | ||
function () { | ||
return '4.3.1'; | ||
return '4.4.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
292397
7581