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

shaka-player

Package Overview
Dependencies
Maintainers
1
Versions
344
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shaka-player - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

2

app.js

@@ -911,3 +911,3 @@ /**

if (contentProtection.schemeIdUri ==
if (contentProtection.schemeIdUri.toLowerCase() ==
'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed') {

@@ -914,0 +914,0 @@ // This is the UUID which represents Widevine in the edash-packager.

@@ -0,1 +1,15 @@

## 1.3.2 (2015-07-06)
A roll-up of recent bugfixes.
Bugfixes:
- Fixed case-sensitive scheme URI check in the test app.
- Fixed support-testing page for very old browsers.
- Fixed multi-lingual encrypted content.
- https://github.com/google/shaka-player/issues/112
- Fixed load-time exceptions in IE 9.
- https://github.com/google/shaka-player/issues/87
- https://github.com/google/shaka-player/pull/110
## 1.3.1 (2015-05-22)

@@ -2,0 +16,0 @@

@@ -46,4 +46,21 @@ /**

/** @private */
shaka.asserts.patchAssert_ = function() {
var assert = console.assert;
if (!assert) {
console.assert = function() {};
} else if (!assert.bind) {
// IE 9 does not provide a .bind for the built-in console functions.
console.assert = function() {
assert.apply(console, arguments);
};
}
};
// Install assert functions.
if (shaka.asserts.ENABLE_ASSERTS) {
shaka.asserts.patchAssert_();
shaka.asserts.assert =

@@ -58,2 +75,1 @@ console.assert.bind(console);

}

@@ -73,2 +73,26 @@ /**

/**
* @private
* @param {string} logName
*/
shaka.log.patchConsole_ = function(logName) {
var nop = function() {};
var logFunction = console[logName];
if (!logFunction) {
console[logName] = nop;
} else if (!logFunction.bind) {
// IE 9 does not provide a .bind for the built-in logging functions.
console[logName] = function() {
logFunction.apply(console, arguments);
};
}
};
shaka.log.patchConsole_('error');
shaka.log.patchConsole_('warn');
shaka.log.patchConsole_('info');
shaka.log.patchConsole_('log');
shaka.log.patchConsole_('debug');
if (!COMPILED) {

@@ -122,2 +146,1 @@ /**

}

@@ -114,3 +114,3 @@ /**

/** @private {function():number} */
shaka.timer.now_ = window.performance ?
shaka.timer.now_ = window.performance && window.performance.now ?
window.performance.now.bind(window.performance) :

@@ -122,2 +122,1 @@ Date.now;

shaka.timer.timers_ = {};

@@ -349,3 +349,2 @@ /**

}
break;
}

@@ -352,0 +351,0 @@ }

@@ -121,3 +121,3 @@ /**

*/
goog.define('GIT_VERSION', 'v1.3.1-debug');
goog.define('GIT_VERSION', 'v1.3.2-debug');

@@ -159,3 +159,5 @@

// Node.children is used by mpd_parser.js, and body is a Node instance.
!!document.body.children;
!!document.body.children &&
// Uint8Array is used frequently for parsing binary data
!!window.Uint8Array;
};

@@ -911,2 +913,1 @@

};

@@ -44,2 +44,7 @@ /**

// Construct fake key ID. This is not done at load-time to avoid exceptions
// on unsupported browsers.
v01b.MediaKeyStatusMap.KEY_ID_ =
shaka.util.Uint8ArrayUtils.fromString('FAKE_KEY_ID');
// Install patches.

@@ -893,4 +898,3 @@ Navigator.prototype.requestMediaKeySystemAccess =

*/
shaka.polyfill.PatchedMediaKeys.v01b.MediaKeyStatusMap.KEY_ID_ =
shaka.util.Uint8ArrayUtils.fromString('FAKE_KEY_ID');
shaka.polyfill.PatchedMediaKeys.v01b.MediaKeyStatusMap.KEY_ID_;

@@ -897,0 +901,0 @@

@@ -37,2 +37,17 @@ /**

shaka.util.DataViewReader.Endianness.BIG_ENDIAN);
// If not already constructed, build a list of EBML dynamic size constants.
// This is not done at load-time to avoid exceptions on unsupported browsers.
if (!shaka.util.EbmlParser.DYNAMIC_SIZES) {
shaka.util.EbmlParser.DYNAMIC_SIZES = [
new Uint8Array([0xff]),
new Uint8Array([0x7f, 0xff]),
new Uint8Array([0x3f, 0xff, 0xff]),
new Uint8Array([0x1f, 0xff, 0xff, 0xff]),
new Uint8Array([0x0f, 0xff, 0xff, 0xff, 0xff]),
new Uint8Array([0x07, 0xff, 0xff, 0xff, 0xff, 0xff]),
new Uint8Array([0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]),
new Uint8Array([0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff])
];
}
};

@@ -42,11 +57,3 @@

/** @const {!Array.<!Uint8Array>} */
shaka.util.EbmlParser.DYNAMIC_SIZES = [
new Uint8Array([0xff]),
new Uint8Array([0x7f, 0xff]),
new Uint8Array([0x3f, 0xff, 0xff]),
new Uint8Array([0x1f, 0xff, 0xff, 0xff]),
new Uint8Array([0x0f, 0xff, 0xff, 0xff, 0xff]),
new Uint8Array([0x07, 0xff, 0xff, 0xff, 0xff, 0xff]),
new Uint8Array([0x03, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]),
new Uint8Array([0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff])];
shaka.util.EbmlParser.DYNAMIC_SIZES;

@@ -53,0 +60,0 @@

{
"name": "shaka-player",
"description": "DASH/EME video player library",
"version": "1.3.1",
"version": "1.3.2",
"homepage": "https://github.com/google/shaka-player",

@@ -6,0 +6,0 @@ "author": "Google",

@@ -18,18 +18,18 @@ /**

// Status values for the report entries.
const kGood = 0;
const kInfo = 1;
const kBad = 2;
var kGood = 0;
var kInfo = 1;
var kBad = 2;
const vp8Type = 'video/webm; codecs="vp8"';
const vp9Type = 'video/webm; codecs="vp9"';
const mp4Type = 'video/mp4; codecs="avc1.42E01E"';
const tsType = 'video/mp2t; codecs="avc1.42E01E"';
var vp8Type = 'video/webm; codecs="vp8"';
var vp9Type = 'video/webm; codecs="vp9"';
var mp4Type = 'video/mp4; codecs="avc1.42E01E"';
var tsType = 'video/mp2t; codecs="avc1.42E01E"';
const clearKeyId = 'org.w3.clearkey';
const widevineId = 'com.widevine.alpha';
const playReadyId = 'com.microsoft.playready';
const adobeAccessId = 'com.adobe.access';
const fairPlayId = 'com.apple.fairplay';
var clearKeyId = 'org.w3.clearkey';
var widevineId = 'com.widevine.alpha';
var playReadyId = 'com.microsoft.playready';
var adobeAccessId = 'com.adobe.access';
var fairPlayId = 'com.apple.fairplay';
const classPrefixes = [
var classPrefixes = [
'WebKit',

@@ -40,3 +40,3 @@ 'MS',

const propertyPrefixes = [
var propertyPrefixes = [
'webkit',

@@ -47,3 +47,3 @@ 'ms',

const keySystemPrefixes = [
var keySystemPrefixes = [
'webkit-'

@@ -142,3 +142,3 @@ ];

var mse = found['MediaSource'];
if (mse && mse.isTypeSupported(type)) {
if (mse && mse.isTypeSupported && mse.isTypeSupported(type)) {
report.push([type, kGood, '(supported)']);

@@ -237,2 +237,3 @@ found[type] = true;

testForClass(window, 'Promise', true);
testForClass(window, 'Uint8Array', true);

@@ -310,4 +311,8 @@ // Optional:

function onLoaded(fn) {
if (document.readyState == "loading") {
document.addEventListener('DOMContentLoaded', fn);
// IE 9 fires DOMContentLoaded, and enters the "interactive"
// readyState, before document.body has been initialized, so wait
// for window.load
if (document.readyState == 'loading' ||
document.readyState == 'interactive') {
window.addEventListener('load', fn);
} else {

@@ -314,0 +319,0 @@ fn();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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