bigscreen-player
Advanced tools
Comparing version 4.1.0 to 4.1.1
{ | ||
"name": "bigscreen-player", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Simplified media playback for bigscreen devices.", | ||
@@ -5,0 +5,0 @@ "main": "script/bigscreenplayer.js", |
@@ -32,2 +32,3 @@ define('bigscreenplayer/mockbigscreenplayer', | ||
var subtitlesEnabled; | ||
var subtitlesHidden; | ||
var endOfStream; | ||
@@ -53,2 +54,4 @@ var canSeekState; | ||
var excludedFuncs = ['mock', 'mockJasmine', 'unmock', 'toggleDebug', 'getLogLevels', 'setLogLevel', 'convertEpochMsToVideoTimeSeconds']; | ||
function startProgress (progressCause) { | ||
@@ -83,2 +86,6 @@ setTimeout(function () { | ||
if (opts && opts.excludedFuncs) { | ||
excludedFuncs = excludedFuncs.concat(opts.excludedFuncs); | ||
} | ||
if (mockStatus.currentlyMocked) { | ||
@@ -90,4 +97,8 @@ throw new Error('mock() was called while BigscreenPlayer was already mocked'); | ||
// Divert existing functions | ||
for (var mock in mockFunctions) { | ||
BigscreenPlayer[mock] = mockFunctions[mock]; | ||
for (var func in BigscreenPlayer) { | ||
if (BigscreenPlayer[func] && mockFunctions[func]) { | ||
BigscreenPlayer[func] = mockFunctions[func]; | ||
} else if (!PlaybackUtils.contains(excludedFuncs, func)) { | ||
throw new Error(func + ' was not mocked or included in the exclusion list'); | ||
} | ||
} | ||
@@ -104,2 +115,6 @@ // Add extra functions | ||
if (opts && opts.excludedFuncs) { | ||
excludedFuncs = excludedFuncs.concat(opts.excludedFuncs); | ||
} | ||
if (mockStatus.currentlyMocked) { | ||
@@ -109,5 +124,7 @@ throw new Error('mockJasmine() was called while BigscreenPlayer was already mocked'); | ||
for (var mock in mockFunctions) { | ||
if (BigscreenPlayer[mock]) { | ||
spyOn(BigscreenPlayer, mock).and.callFake(mockFunctions[mock]); | ||
for (var fn in BigscreenPlayer) { | ||
if (BigscreenPlayer[fn] && mockFunctions[fn]) { | ||
spyOn(BigscreenPlayer, fn).and.callFake(mockFunctions[fn]); | ||
} else if (!PlaybackUtils.contains(excludedFuncs, fn)) { | ||
throw new Error(fn + ' was not mocked or included in the exclusion list'); | ||
} | ||
@@ -294,2 +311,12 @@ } | ||
}, | ||
isPlayingAtLiveEdge: function () { | ||
return false; | ||
}, | ||
resize: function () { | ||
subtitlesHidden = this.isSubtitlesEnabled(); | ||
this.setSubtitlesEnabled(subtitlesHidden); | ||
}, | ||
clearResize: function () { | ||
this.setSubtitlesEnabled(subtitlesHidden); | ||
}, | ||
getPlayerElement: function () { | ||
@@ -296,0 +323,0 @@ return; |
define('bigscreenplayer/version', | ||
function () { | ||
return '4.1.0'; | ||
return '4.1.1'; | ||
} | ||
); |
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
289868
7500