@castlabs/prestoplay 6.21.1-beta.9 → 6.22.0

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.
Files changed (65) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/cjs/cl.adobe.js +3 -3
  3. package/cjs/cl.airplay.js +3 -3
  4. package/cjs/cl.broadpeak.js +7 -7
  5. package/cjs/cl.cast.js +111 -110
  6. package/cjs/cl.conviva.js +33 -33
  7. package/cjs/cl.core.js +570 -573
  8. package/cjs/cl.crypto.js +8 -8
  9. package/cjs/cl.dash.js +80 -80
  10. package/cjs/cl.externs.js +1 -28
  11. package/cjs/cl.freewheel.js +23 -24
  12. package/cjs/cl.hls.js +69 -69
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +29 -29
  15. package/cjs/cl.ima.js +23 -23
  16. package/cjs/cl.mse.js +319 -320
  17. package/cjs/cl.muxdata.js +15 -15
  18. package/cjs/cl.onboard.js +3 -3
  19. package/cjs/cl.persistent.js +13 -13
  20. package/cjs/cl.playlist.js +6 -6
  21. package/cjs/cl.sessions.js +16 -16
  22. package/cjs/cl.simid.js +15 -15
  23. package/cjs/cl.smooth.js +72 -72
  24. package/cjs/cl.thumbnails.js +26 -26
  25. package/cjs/cl.tizen.js +69 -69
  26. package/cjs/cl.ttml.js +29 -29
  27. package/cjs/cl.verimatrix.js +5 -5
  28. package/cjs/cl.vimond.js +13 -13
  29. package/cjs/cl.vr.js +18 -18
  30. package/cjs/cl.vtt.js +14 -14
  31. package/cjs/cl.yospace.js +4 -4
  32. package/cjs/cl.youbora.js +30 -30
  33. package/cl.adobe.js +3 -3
  34. package/cl.airplay.js +3 -3
  35. package/cl.broadpeak.js +5 -5
  36. package/cl.cast.js +88 -87
  37. package/cl.conviva.js +27 -27
  38. package/cl.core.js +461 -463
  39. package/cl.crypto.js +8 -8
  40. package/cl.dash.js +74 -74
  41. package/cl.externs.js +1 -28
  42. package/cl.freewheel.js +18 -18
  43. package/cl.hls.js +74 -74
  44. package/cl.hlssmpte.js +5 -5
  45. package/cl.htmlcue.js +26 -26
  46. package/cl.ima.js +17 -17
  47. package/cl.mse.js +291 -291
  48. package/cl.muxdata.js +12 -12
  49. package/cl.onboard.js +4 -4
  50. package/cl.persistent.js +10 -10
  51. package/cl.playlist.js +5 -5
  52. package/cl.sessions.js +10 -10
  53. package/cl.simid.js +13 -13
  54. package/cl.smooth.js +59 -59
  55. package/cl.thumbnails.js +19 -19
  56. package/cl.tizen.js +57 -57
  57. package/cl.ttml.js +22 -22
  58. package/cl.verimatrix.js +4 -4
  59. package/cl.vimond.js +8 -8
  60. package/cl.vr.js +14 -14
  61. package/cl.vtt.js +12 -12
  62. package/cl.yospace.js +3 -3
  63. package/cl.youbora.js +25 -25
  64. package/package.json +3 -3
  65. package/typings.d.ts +0 -17
package/CHANGELOG.md CHANGED
@@ -12,6 +12,8 @@
12
12
  * Make sure the IMA plugin does not play postroll ads of the previous source
13
13
  when a new sources is loaded or after the player is released or destroyed.
14
14
  * Fix support for `CUE=PRE` and `CUE=POST` in HLS interstitials.
15
+ * Improve Chromecast performance of low latency streaming.
16
+ * Fix initialization issue with NPAW v7 plugin when using the npm package.
15
17
 
16
18
  # 6.21.0
17
19
 
@@ -45,6 +47,7 @@ Changes in this release might be breaking for some very specific use cases:
45
47
  * Fix support for License Acquisition URL elements `<urn:microsoft:laurl>`
46
48
  in Widevine-protected DASH.
47
49
  * Fix an issue with ABR bandwidth estimation.
50
+ * Update least supported version of NPAW SDK v7 integration to v7.3.8.
48
51
 
49
52
  # 6.20.0
50
53
 
package/cjs/cl.adobe.js CHANGED
@@ -1,7 +1,7 @@
1
1
  (function(){var g={}; var _ = _ || {}
2
- var f=function(window){var WX=function(){this.m=this.f=null;this.a="";this.g=new _.K("clpp.adobe.AdobePlugin")},ZX=function(a){a.f=new _.Wh;a.f.on(a.m,_.Bg,function(){return XX(a)});a.f.on(a.m,_.Ag,function(){s.Media.play(a.a,a.m.getPosition())});a.f.on(a.m,_.Ke,function(){return YX(a)});a.f.on(a.m,_.gg,function(b){b=b.detail;switch(b.currentState){case _.dq:a.a.length||YX(a);s.Media.play(a.a,a.m.getPosition());break;case _.cq:case _.Vp:XX(a);break;case _.Xp:case _.Qp:case _.aq:a.g.info("Close session for "+a.a+" in player state "+
3
- (b.currentState+".")),XX(a),s.Media.close(a.a),a.a=""}})},YX=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(),_.ua)},XX=function(a){s.Media.stop(a.a,a.m.getPosition())},$X=function(){};_.x(WX,_.Dv);WX.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,ZX(this)):this.g.warn("Adobe API not available.")};
4
- WX.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.m=null;this.a=""};WX.prototype.id=function(){return"adobe"};_.J("clpp.adobe.AdobeAnalyticsPlugin",WX);WX.Id="adobe";$X.prototype.create=function(){return new WX};_.ct(new $X);};
2
+ var f=function(window){var UX=function(){this.m=this.f=null;this.a="";this.g=new _.K("clpp.adobe.AdobePlugin")},XX=function(a){a.f=new _.Uh;a.f.on(a.m,_.zg,function(){return VX(a)});a.f.on(a.m,_.yg,function(){s.Media.play(a.a,a.m.getPosition())});a.f.on(a.m,_.Ie,function(){return WX(a)});a.f.on(a.m,_.eg,function(b){b=b.detail;switch(b.currentState){case _.$p:a.a.length||WX(a);s.Media.play(a.a,a.m.getPosition());break;case _.Zp:case _.Rp:VX(a);break;case _.Tp:case _.Mp:case _.Xp:a.g.info("Close session for "+a.a+" in player state "+
3
+ (b.currentState+".")),VX(a),s.Media.close(a.a),a.a=""}})},WX=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(),_.ua)},VX=function(a){s.Media.stop(a.a,a.m.getPosition())},YX=function(){};_.x(UX,_.yv);UX.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,XX(this)):this.g.warn("Adobe API not available.")};
4
+ UX.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.m=null;this.a=""};UX.prototype.id=function(){return"adobe"};_.J("clpp.adobe.AdobeAnalyticsPlugin",UX);UX.Id="adobe";YX.prototype.create=function(){return new UX};_.Ys(new YX);};
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 UX=function(){var a=this;this.a=this.m=null;this.l=this.f=this.j=!1;this.o=new _.ul(function(){a.m.play()["catch"](function(){})});this.h=new _.Wh},VX=function(){};_.x(UX,_.Dv);_.u=UX.prototype;_.u.onPlayerCreated=function(a){this.m=a;this.a=a.getSurface().getMedia()};_.u.onContentWillLoad=function(){this.a&&(this.h.on(this.a,"webkitplaybacktargetavailabilitychanged",this.Am.bind(this)),this.h.on(this.a,"webkitcurrentplaybacktargetiswirelesschanged",this.cn.bind(this)))};
3
- _.u.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.u.id=function(){return"airplay"};_.u.Am=function(a){switch(a.availability){case "available":this.f=!0;break;case "not-available":this.f=!1}this.m.trigger(new _.L(_.Rc,{canCast:this.f}))};_.u.cn=function(){var a=(this.j=this.a.webkitCurrentPlaybackTargetIsWireless)?_.Qc:_.Pc;if(this.l||!this.m.isPaused()||this.m.getState()===_.dq)this.l?this.m.play()["catch"](function(){}):this.o.ba(.01);this.m.trigger(new _.L(a))};_.u.Jb=function(){return this.j};
4
- _.u.Ff=function(){return this.f};_.u.Tn=function(){this.f&&(this.l=!this.m.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.J("clpp.airplay.AirPlayPlugin",UX);UX.prototype.showCastMenu=UX.prototype.Tn;UX.prototype.canCast=UX.prototype.Ff;UX.prototype.isCasting=UX.prototype.Jb;UX.Id="airplay";VX.prototype.create=function(){return new UX};_.ct(new VX);};
2
+ var f=function(window){var SX=function(){var a=this;this.a=this.m=null;this.l=this.f=this.j=!1;this.o=new _.sl(function(){a.m.play()["catch"](function(){})});this.h=new _.Uh},TX=function(){};_.x(SX,_.yv);_.u=SX.prototype;_.u.onPlayerCreated=function(a){this.m=a;this.a=a.getSurface().getMedia()};_.u.onContentWillLoad=function(){this.a&&(this.h.on(this.a,"webkitplaybacktargetavailabilitychanged",this.um.bind(this)),this.h.on(this.a,"webkitcurrentplaybacktargetiswirelesschanged",this.Xm.bind(this)))};
3
+ _.u.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.u.id=function(){return"airplay"};_.u.um=function(a){switch(a.availability){case "available":this.f=!0;break;case "not-available":this.f=!1}this.m.trigger(new _.L(_.Qc,{canCast:this.f}))};_.u.Xm=function(){var a=(this.j=this.a.webkitCurrentPlaybackTargetIsWireless)?_.Pc:_.Oc;if(this.l||!this.m.isPaused()||this.m.getState()===_.$p)this.l?this.m.play()["catch"](function(){}):this.o.ba(.01);this.m.trigger(new _.L(a))};_.u.Ib=function(){return this.j};
4
+ _.u.Df=function(){return this.f};_.u.Nn=function(){this.f&&(this.l=!this.m.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.J("clpp.airplay.AirPlayPlugin",SX);SX.prototype.showCastMenu=SX.prototype.Nn;SX.prototype.canCast=SX.prototype.Df;SX.prototype.isCasting=SX.prototype.Ib;SX.Id="airplay";TX.prototype.create=function(){return new SX};_.Ys(new TX);};
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));}
@@ -1,11 +1,11 @@
1
1
  (function(){var g={}; var _ = _ || {}
2
- var f=function(window){var MX=function(a,b){this.m=a;this.f=b;this.a=new _.Wh;this.h=!1},NX=function(a){function b(c){var d=GenericPlayerApi.call(this)||this;d.m=c;d.a=_.wk();return d}_.x(b,GenericPlayerApi);b.prototype.getPlayerName=function(){return _.ua};b.prototype.getVersion=function(){return _.ha};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)},OX=function(){this.l=this.f=this.a=this.h=this.m=null;this.o=new _.Wh;this.j=!1},PX=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===_.jg&&a.h.setUUID(f))},QX=
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,_.re,a.S.bind(a));a.l=NX(a.m);a.a.attachPlayer(a.l)},RX=function(a,b){_.Zh(a.o);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},SX=function(){return!window.SmartLib||!window.GenericPlayerApi},TX=function(){};_.u=MX.prototype;
5
- _.u.init=function(){var a=this.m,b=this.a;b.on(a,_.gg,this.Nj.bind(this));b.on(a,_.id,this.Lj.bind(this));b.on(a,"seek",this.Mj.bind(this))};_.u.Lj=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.u.Nj=function(a){var b=this.m,c=this.f;a=a.detail;var d=a.currentState;a.previousState===_.Vp&&c.notifyStallEnd(!b.isPaused());switch(d){case _.Vp:c.notifyStallStart();break;case _.dq:this.h?c.notifyResume():(c.notifyFirstImage(),this.h=!0);break;case _.cq:c.notifyPause()}};
6
- _.u.Mj=function(){var a=1E3*this.m.getPosition();this.f.notifySeek(a)};_.u.release=function(){this.a&&(_.Zh(this.a),this.a=null)};_.x(OX,_.Dv);_.u=OX.prototype;_.u.onPlayerCreated=function(a){this.m=a};_.u.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(SX())return a.onError(new _.N(1,9,11E3));this.j=!0;PX(this,d);QX(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 _.N(1,9,11001,{bpkErrorCode:f,message:e}));RX(c,void 0)}else b.url=e.getURL(),c.f=new MX(c.m,c.l),c.f.init()})}};
7
- _.u.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.u.S=function(a){a=a.detail;if(7003===a.code)RX(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.P)switch(a.category){case 3:RX(this,SmartLib.BPDecodingError);break;case 1:RX(this,SmartLib.BPNetworkingError);break;case 6:RX(this,SmartLib.BPAccessRightError);break;default:RX(this,SmartLib.BPUnspecifiedError)}};_.u.onPlayerWillRelease=function(){SX()||RX(this,SmartLib.BPSessionEndsNormally);this.j=!1};_.u.id=function(){return"broadpeak"};
8
- _.J("clpp.broadpeak.BroadpeakPlugin",OX);OX.isSdkMissing=SX;OX.Id="broadpeak";TX.prototype.create=function(){return new OX};_.ct(new TX);};
2
+ var f=function(window){var KX=function(a,b){this.m=a;this.f=b;this.a=new _.Uh;this.h=!1},LX=function(a){function b(c){var d=GenericPlayerApi.call(this)||this;d.m=c;d.a=_.uk();return d}_.x(b,GenericPlayerApi);b.prototype.getPlayerName=function(){return _.ua};b.prototype.getVersion=function(){return _.ha};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)},MX=function(){this.l=this.f=this.a=this.h=this.m=null;this.o=new _.Uh;this.j=!1},NX=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===_.hg&&a.h.setUUID(f))},OX=
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,_.pe,a.S.bind(a));a.l=LX(a.m);a.a.attachPlayer(a.l)},PX=function(a,b){_.Xh(a.o);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},QX=function(){return!window.SmartLib||!window.GenericPlayerApi},RX=function(){};_.u=KX.prototype;
5
+ _.u.init=function(){var a=this.m,b=this.a;b.on(a,_.eg,this.Jj.bind(this));b.on(a,_.hd,this.Hj.bind(this));b.on(a,"seek",this.Ij.bind(this))};_.u.Hj=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.u.Jj=function(a){var b=this.m,c=this.f;a=a.detail;var d=a.currentState;a.previousState===_.Rp&&c.notifyStallEnd(!b.isPaused());switch(d){case _.Rp:c.notifyStallStart();break;case _.$p:this.h?c.notifyResume():(c.notifyFirstImage(),this.h=!0);break;case _.Zp:c.notifyPause()}};
6
+ _.u.Ij=function(){var a=1E3*this.m.getPosition();this.f.notifySeek(a)};_.u.release=function(){this.a&&(_.Xh(this.a),this.a=null)};_.x(MX,_.yv);_.u=MX.prototype;_.u.onPlayerCreated=function(a){this.m=a};_.u.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(QX())return a.onError(new _.N(1,9,11E3));this.j=!0;NX(this,d);OX(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 _.N(1,9,11001,{bpkErrorCode:f,message:e}));PX(c,void 0)}else b.url=e.getURL(),c.f=new KX(c.m,c.l),c.f.init()})}};
7
+ _.u.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.u.S=function(a){a=a.detail;if(7003===a.code)PX(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.P)switch(a.category){case 3:PX(this,SmartLib.BPDecodingError);break;case 1:PX(this,SmartLib.BPNetworkingError);break;case 6:PX(this,SmartLib.BPAccessRightError);break;default:PX(this,SmartLib.BPUnspecifiedError)}};_.u.onPlayerWillRelease=function(){QX()||PX(this,SmartLib.BPSessionEndsNormally);this.j=!1};_.u.id=function(){return"broadpeak"};
8
+ _.J("clpp.broadpeak.BroadpeakPlugin",MX);MX.isSdkMissing=QX;MX.Id="broadpeak";RX.prototype.create=function(){return new MX};_.Ys(new RX);};
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));}