@castlabs/prestoplay 6.23.0 → 6.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/cjs/cl.adobe.js +3 -3
- package/cjs/cl.airplay.js +3 -3
- package/cjs/cl.broadpeak.js +7 -7
- package/cjs/cl.cast.js +116 -116
- package/cjs/cl.conviva.js +32 -32
- package/cjs/cl.core.js +589 -592
- package/cjs/cl.crypto.js +9 -9
- package/cjs/cl.dash.js +86 -81
- package/cjs/cl.externs.js +30 -30
- package/cjs/cl.freewheel.js +24 -24
- package/cjs/cl.hls.js +71 -70
- package/cjs/cl.hlssmpte.js +6 -6
- package/cjs/cl.htmlcue.js +30 -30
- package/cjs/cl.ima.js +23 -23
- package/cjs/cl.mse.js +340 -331
- package/cjs/cl.muxdata.js +15 -15
- package/cjs/cl.onboard.js +3 -3
- package/cjs/cl.persistent.js +14 -14
- package/cjs/cl.playlist.js +6 -6
- package/cjs/cl.sessions.js +16 -16
- package/cjs/cl.simid.js +15 -15
- package/cjs/cl.smooth.js +72 -72
- package/cjs/cl.thumbnails.js +26 -26
- package/cjs/cl.tizen.js +72 -72
- package/cjs/cl.ttml.js +29 -29
- package/cjs/cl.verimatrix.js +5 -5
- package/cjs/cl.vimond.js +12 -12
- package/cjs/cl.vr.js +19 -19
- package/cjs/cl.vtt.js +14 -14
- package/cjs/cl.yospace.js +4 -4
- package/cjs/cl.youbora.js +37 -37
- package/cl.adobe.js +3 -3
- package/cl.airplay.js +3 -3
- package/cl.broadpeak.js +5 -5
- package/cl.cast.js +88 -88
- package/cl.conviva.js +27 -27
- package/cl.core.js +473 -474
- package/cl.crypto.js +9 -9
- package/cl.dash.js +80 -76
- package/cl.externs.js +30 -30
- package/cl.freewheel.js +19 -19
- package/cl.hls.js +74 -74
- package/cl.hlssmpte.js +5 -5
- package/cl.htmlcue.js +26 -26
- package/cl.ima.js +17 -17
- package/cl.mse.js +304 -295
- package/cl.muxdata.js +13 -13
- package/cl.onboard.js +4 -4
- package/cl.persistent.js +10 -10
- package/cl.playlist.js +5 -5
- package/cl.sessions.js +10 -10
- package/cl.simid.js +13 -13
- package/cl.smooth.js +59 -59
- package/cl.thumbnails.js +19 -19
- package/cl.tizen.js +57 -57
- package/cl.ttml.js +22 -22
- package/cl.verimatrix.js +4 -4
- package/cl.vimond.js +8 -8
- package/cl.vr.js +14 -14
- package/cl.vtt.js +12 -12
- package/cl.yospace.js +3 -3
- package/cl.youbora.js +28 -28
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
# 6.23.1
|
|
2
|
+
|
|
3
|
+
## Changes
|
|
4
|
+
|
|
5
|
+
* Change default EME version on Safari with native player to Apple-prefixed EME.
|
|
6
|
+
This fixes issues with playback of encrypted content in that setting.
|
|
7
|
+
On Safari with MSE player the default EME version stays unchanged (standard
|
|
8
|
+
EME).
|
|
9
|
+
|
|
1
10
|
# 6.23.0
|
|
2
11
|
|
|
3
12
|
## New Features
|
package/cjs/cl.adobe.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){var g={}; var _ = _ || {}
|
|
2
|
-
var f=function(window){var
|
|
3
|
-
(b.currentState+".")),
|
|
4
|
-
|
|
2
|
+
var f=function(window){var pY=function(){this.m=this.f=null;this.a="";this.g=new _.K("clpp.adobe.AdobePlugin")},sY=function(a){a.f=new _.Yh;a.f.on(a.m,_.Dg,function(){return qY(a)});a.f.on(a.m,_.Cg,function(){s.Media.play(a.a,a.m.getPosition())});a.f.on(a.m,_.Me,function(){return rY(a)});a.f.on(a.m,_.ig,function(b){b=b.detail;switch(b.currentState){case _.Iq:a.a.length||rY(a);s.Media.play(a.a,a.m.getPosition());break;case _.Hq:case _.zq:qY(a);break;case _.Bq:case _.uq:case _.Fq:a.g.info("Close session for "+a.a+" in player state "+
|
|
3
|
+
(b.currentState+".")),qY(a),s.Media.close(a.a),a.a=""}})},rY=function(a){var b=a.m.getLoadedSource();a.a=b?b.name||b.url:"";a.g.info("Open session for "+a.a+" with duration "+a.m.getDuration());s.Media.open(a.a,a.m.getDuration(),_.va)},qY=function(a){s.Media.stop(a.a,a.m.getPosition())},tY=function(){};_.x(pY,_.Lv);pY.prototype.onPlayerCreated=function(a){var b=a.getConfiguration().adobe;b&&!1===b.enabled?this.g.debug("Adobe plugin is disabled."):window.s&&s.Media?(this.m=a,sY(this)):this.g.warn("Adobe API not available.")};
|
|
4
|
+
pY.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.m=null;this.a=""};pY.prototype.id=function(){return"adobe"};_.J("clpp.adobe.AdobeAnalyticsPlugin",pY);pY.Id="adobe";tY.prototype.create=function(){return new pY};_.Ht(new tY);};
|
|
5
5
|
if(typeof(module)!="undefined"&&module.exports){var x=require("./cl.core.js");_ = x._;(f.call(g,this));module.exports=g;}
|
|
6
6
|
else if (typeof(define)!="undefined"&&define.amd) {define(["./cl.core"], function(c){_=c._;(f.call(g,this));return g;});}
|
|
7
7
|
else{_=this.clpp._;(f.call(g,this));}
|
package/cjs/cl.airplay.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){var g={}; var _ = _ || {}
|
|
2
|
-
var f=function(window){var
|
|
3
|
-
_.
|
|
4
|
-
_.
|
|
2
|
+
var f=function(window){var nY=function(){var a=this;this.a=this.m=null;this.l=this.f=this.j=!1;this.o=new _.wl(function(){a.m.play()["catch"](function(){})});this.h=new _.Yh},oY=function(){};_.x(nY,_.Lv);_.t=nY.prototype;_.t.onPlayerCreated=function(a){this.m=a;this.a=a.getSurface().getMedia()};_.t.onContentWillLoad=function(){this.a&&(this.h.on(this.a,"webkitplaybacktargetavailabilitychanged",this.Qm.bind(this)),this.h.on(this.a,"webkitcurrentplaybacktargetiswirelesschanged",this.un.bind(this)))};
|
|
3
|
+
_.t.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.t.id=function(){return"airplay"};_.t.Qm=function(a){switch(a.availability){case "available":this.f=!0;break;case "not-available":this.f=!1}this.m.trigger(new _.L(_.Pc,{canCast:this.f}))};_.t.un=function(){var a=(this.j=this.a.webkitCurrentPlaybackTargetIsWireless)?_.Oc:_.Nc;if(this.l||!this.m.isPaused()||this.m.getState()===_.Iq)this.l?this.m.play()["catch"](function(){}):this.o.ea(.01);this.m.trigger(new _.L(a))};_.t.Ob=function(){return this.j};
|
|
4
|
+
_.t.Rf=function(){return this.f};_.t.io=function(){this.f&&(this.l=!this.m.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.J("clpp.airplay.AirPlayPlugin",nY);nY.prototype.showCastMenu=nY.prototype.io;nY.prototype.canCast=nY.prototype.Rf;nY.prototype.isCasting=nY.prototype.Ob;nY.Id="airplay";oY.prototype.create=function(){return new nY};_.Ht(new oY);};
|
|
5
5
|
if(typeof(module)!="undefined"&&module.exports){var x=require("./cl.core.js");_ = x._;(f.call(g,this));module.exports=g;}
|
|
6
6
|
else if (typeof(define)!="undefined"&&define.amd) {define(["./cl.core"], function(c){_=c._;(f.call(g,this));return g;});}
|
|
7
7
|
else{_=this.clpp._;(f.call(g,this));}
|
package/cjs/cl.broadpeak.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
(function(){var g={}; var _ = _ || {}
|
|
2
|
-
var f=function(window){var
|
|
3
|
-
0:1E3*this.m.getDuration()};b.prototype.getCurrentPosition=function(){return 1E3*this.m.getPosition()};b.prototype.getCurrentBitrate=function(){var c=this.m.getStats();return(c?c.streamBandwidth:0)/1E3};return new b(a)},
|
|
4
|
-
function(a,b){var c=b.customParameters||{};a.a=a.h.createStreamingSession();a.a.setOption(StreamingSessionOptions.SESSION_PRECACHE,!0);for(var d in c)a.a.setCustomParameter(d,c[d]);a.o.on(a.m,_.
|
|
5
|
-
_.
|
|
6
|
-
_.
|
|
7
|
-
_.
|
|
8
|
-
_.J("clpp.broadpeak.BroadpeakPlugin",
|
|
2
|
+
var f=function(window){var fY=function(a,b){this.m=a;this.f=b;this.a=new _.Yh;this.h=!1},gY=function(a){function b(c){var d=GenericPlayerApi.call(this)||this;d.m=c;d.a=_.yk();return d}_.x(b,GenericPlayerApi);b.prototype.getPlayerName=function(){return _.va};b.prototype.getVersion=function(){return _.ia};b.prototype.getOSName=function(){return this.a.os};b.prototype.getDeviceVersion=function(){return this.a.osVersion.name};b.prototype.getDeviceType=function(){return"browser"};b.prototype.getTotalDuration=function(){return this.m.isLive()?
|
|
3
|
+
0:1E3*this.m.getDuration()};b.prototype.getCurrentPosition=function(){return 1E3*this.m.getPosition()};b.prototype.getCurrentBitrate=function(){var c=this.m.getStats();return(c?c.streamBandwidth:0)/1E3};return new b(a)},hY=function(){this.l=this.f=this.a=this.h=this.m=null;this.o=new _.Yh;this.j=!1},iY=function(a,b){var c=b.analyticsAddress||null,d=b.nanoCDNHost||null,e=b.broadpeakDomainNames||"",f=b.uuid||null;a.h||(a.h=SmartLib.getInstance(),a.h.init(c,d,e),typeof f===_.lg&&a.h.setUUID(f))},jY=
|
|
4
|
+
function(a,b){var c=b.customParameters||{};a.a=a.h.createStreamingSession();a.a.setOption(StreamingSessionOptions.SESSION_PRECACHE,!0);for(var d in c)a.a.setCustomParameter(d,c[d]);a.o.on(a.m,_.se,a.Xj.bind(a));a.l=gY(a.m);a.a.attachPlayer(a.l)},kY=function(a,b){_.ai(a.o);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},lY=function(){return!window.SmartLib||!window.GenericPlayerApi},mY=function(){};_.t=fY.prototype;
|
|
5
|
+
_.t.init=function(){var a=this.m,b=this.a;b.on(a,_.ig,this.$j.bind(this));b.on(a,_.gd,this.Yj.bind(this));b.on(a,"seek",this.Zj.bind(this))};_.t.Yj=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.t.$j=function(a){var b=this.m,c=this.f;a=a.detail;var d=a.currentState;a.previousState===_.zq&&c.notifyStallEnd(!b.isPaused());switch(d){case _.zq:c.notifyStallStart();break;case _.Iq:this.h?c.notifyResume():(c.notifyFirstImage(),this.h=!0);break;case _.Hq:c.notifyPause()}};
|
|
6
|
+
_.t.Zj=function(){var a=1E3*this.m.getPosition();this.f.notifySeek(a)};_.t.release=function(){this.a&&(_.ai(this.a),this.a=null)};_.x(hY,_.Lv);_.t=hY.prototype;_.t.onPlayerCreated=function(a){this.m=a};_.t.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(lY())return a.onError(new _.P(1,9,11E3));this.j=!0;iY(this,d);jY(this,d);return this.a.getURL(b.url).then(function(e){if(e.isError()){var f=e.getDetailedErrorCode();e=e.getDetailedErrorMessage();c.m.onError(new _.P(1,9,11001,{bpkErrorCode:f,message:e}));kY(c,void 0)}else b.url=e.getURL(),c.f=new fY(c.m,c.l),c.f.init()})}};
|
|
7
|
+
_.t.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.t.Xj=function(a){a=a.detail;if(7003===a.code)kY(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.Q)switch(a.category){case 3:kY(this,SmartLib.BPDecodingError);break;case 1:kY(this,SmartLib.BPNetworkingError);break;case 6:kY(this,SmartLib.BPAccessRightError);break;default:kY(this,SmartLib.BPUnspecifiedError)}};_.t.onPlayerWillRelease=function(){lY()||kY(this,SmartLib.BPSessionEndsNormally);this.j=!1};_.t.id=function(){return"broadpeak"};
|
|
8
|
+
_.J("clpp.broadpeak.BroadpeakPlugin",hY);hY.isSdkMissing=lY;hY.Id="broadpeak";mY.prototype.create=function(){return new hY};_.Ht(new mY);};
|
|
9
9
|
if(typeof(module)!="undefined"&&module.exports){var x=require("./cl.core.js");_ = x._;(f.call(g,this));module.exports=g;}
|
|
10
10
|
else if (typeof(define)!="undefined"&&define.amd) {define(["./cl.core"], function(c){_=c._;(f.call(g,this));return g;});}
|
|
11
11
|
else{_=this.clpp._;(f.call(g,this));}
|