bigscreen-player
Advanced tools
Comparing version 2.2.1 to 2.2.2
{ | ||
"name": "bigscreen-player", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Simplified media playback for bigscreen devices.", | ||
@@ -5,0 +5,0 @@ "main": "script/bigscreenplayer.js", |
@@ -377,2 +377,3 @@ require( | ||
setUpMSE(); | ||
cdnArray.push({url: 'testcdn2/test/', cdn: 'cdn2'}); | ||
@@ -383,7 +384,11 @@ mseStrategy.load(cdnArray, WindowTypes.STATIC, 3); | ||
baseUrl: { | ||
url: cdnArray[0].cdn | ||
url: cdnArray[1].cdn, | ||
serviceLocation: cdnArray[1].cdn | ||
} | ||
}); | ||
expect(mockPluginsInterface.onErrorHandled).toHaveBeenCalled(); | ||
expect(mockPluginsInterface.onErrorHandled).toHaveBeenCalledWith(jasmine.objectContaining({ | ||
cdn: 'cdn1', | ||
newCdn: 'cdn2' | ||
})); | ||
}); | ||
@@ -390,0 +395,0 @@ }); |
@@ -1114,2 +1114,3 @@ require( | ||
cdn: 'cdn-a', | ||
newCdn: 'cdn-b', | ||
isInitialPlay: undefined, | ||
@@ -1116,0 +1117,0 @@ timeStamp: jasmine.any(Object) |
@@ -165,3 +165,4 @@ define('bigscreenplayer/playbackstrategy/msestrategy', | ||
isBufferingTimeoutError: false, | ||
cdn: mediaSources[0].cdn | ||
cdn: mediaSources[0].cdn, | ||
newCdn: mediaSources[1].cdn | ||
}); | ||
@@ -168,0 +169,0 @@ // urls -> sources -> mediaSources (shift the cdns for correct behaviour with buffering timeout failover) |
@@ -265,3 +265,10 @@ define( | ||
function cdnFailover (failoverTime, thenPause, errorProperties, bufferingTimeoutError) { | ||
var evt = new PluginData({ status: PluginEnums.STATUS.FAILOVER, stateType: PluginEnums.TYPE.ERROR, properties: errorProperties, isBufferingTimeoutError: bufferingTimeoutError, cdn: mediaMetaData.urls[0].cdn }); | ||
var evt = new PluginData({ | ||
status: PluginEnums.STATUS.FAILOVER, | ||
stateType: PluginEnums.TYPE.ERROR, | ||
properties: errorProperties, | ||
isBufferingTimeoutError: bufferingTimeoutError, | ||
cdn: mediaMetaData.urls[0].cdn, | ||
newCdn: mediaMetaData.urls[1].cdn | ||
}); | ||
Plugins.interface.onErrorHandled(evt); | ||
@@ -268,0 +275,0 @@ mediaMetaData.urls.shift(); |
@@ -13,2 +13,3 @@ define( | ||
this.cdn = args.cdn; | ||
this.newCdn = args.newCdn; | ||
this.timeStamp = new Date(); | ||
@@ -15,0 +16,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
7330165
94
65798