Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bigscreen-player

Package Overview
Dependencies
Maintainers
7
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bigscreen-player - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

2

package.json
{
"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';
}
);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc