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

bigscreen-player

Package Overview
Dependencies
Maintainers
3
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 3.1.0 to 3.2.0

2

package.json
{
"name": "bigscreen-player",
"version": "3.1.0",
"version": "3.2.0",
"description": "Simplified media playback for bigscreen devices.",

@@ -5,0 +5,0 @@ "main": "script/bigscreenplayer.js",

@@ -34,3 +34,7 @@ define('bigscreenplayer/playbackstrategy/msestrategy',

playbackBitrate: undefined,
bufferLength: undefined
bufferLength: undefined,
fragmentInfo: {
requestTime: undefined,
numDownloaded: undefined
}
};

@@ -152,3 +156,6 @@

}
Plugins.interface.onPlayerInfoUpdated(playerMetadata);
Plugins.interface.onPlayerInfoUpdated({
bufferLength: playerMetadata.bufferLength,
playbackBitrate: playerMetadata.playbackBitrate
});
}

@@ -189,5 +196,15 @@ }

DebugTool.keyValue({ key: 'Buffer Length', value: playerMetadata.bufferLength });
Plugins.interface.onPlayerInfoUpdated(playerMetadata);
Plugins.interface.onPlayerInfoUpdated({
bufferLength: playerMetadata.bufferLength,
playbackBitrate: playerMetadata.playbackBitrate
});
}
}
if (event.mediaType === mediaKind && event.metric === 'HttpList' && event.value._tfinish && event.value.trequest) {
playerMetadata.fragmentInfo.requestTime = Math.floor(Math.abs(event.value._tfinish.getTime() - event.value.trequest.getTime()));
playerMetadata.fragmentInfo.numDownloaded = playerMetadata.fragmentInfo.numDownloaded ? ++playerMetadata.fragmentInfo.numDownloaded : 1;
Plugins.interface.onPlayerInfoUpdated({
fragmentInfo: playerMetadata.fragmentInfo
});
}
}

@@ -396,2 +413,10 @@

dashMetrics = undefined;
playerMetadata = {
playbackBitrate: undefined,
bufferLength: undefined,
fragmentInfo: {
requestTime: undefined,
numDownloaded: undefined
}
};
},

@@ -398,0 +423,0 @@ reset: function () {

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