@castlabs/prestoplay 6.25.1 → 6.25.2-beta.2

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 (67) hide show
  1. package/CHANGELOG.md +6 -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 +116 -116
  6. package/cjs/cl.conviva.js +32 -32
  7. package/cjs/cl.core.js +608 -608
  8. package/cjs/cl.crypto.js +9 -9
  9. package/cjs/cl.dash.js +88 -88
  10. package/cjs/cl.externs.js +36 -31
  11. package/cjs/cl.freewheel.js +25 -25
  12. package/cjs/cl.hls.js +77 -77
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +30 -30
  15. package/cjs/cl.ima.js +24 -24
  16. package/cjs/cl.mediatailor.js +8 -0
  17. package/cjs/cl.mse.js +334 -351
  18. package/cjs/cl.muxdata.js +15 -15
  19. package/cjs/cl.onboard.js +3 -3
  20. package/cjs/cl.persistent.js +15 -15
  21. package/cjs/cl.playlist.js +6 -6
  22. package/cjs/cl.sessions.js +16 -16
  23. package/cjs/cl.simid.js +15 -15
  24. package/cjs/cl.smooth.js +72 -72
  25. package/cjs/cl.thumbnails.js +26 -26
  26. package/cjs/cl.tizen.js +72 -72
  27. package/cjs/cl.ttml.js +29 -29
  28. package/cjs/cl.verimatrix.js +5 -5
  29. package/cjs/cl.vimond.js +12 -12
  30. package/cjs/cl.vr.js +19 -19
  31. package/cjs/cl.vtt.js +14 -14
  32. package/cjs/cl.yospace.js +4 -4
  33. package/cjs/cl.youbora.js +37 -37
  34. package/cl.adobe.js +3 -3
  35. package/cl.airplay.js +3 -3
  36. package/cl.broadpeak.js +5 -5
  37. package/cl.cast.js +88 -88
  38. package/cl.conviva.js +27 -27
  39. package/cl.core.js +487 -487
  40. package/cl.crypto.js +9 -9
  41. package/cl.dash.js +82 -82
  42. package/cl.externs.js +36 -31
  43. package/cl.freewheel.js +19 -19
  44. package/cl.hls.js +79 -79
  45. package/cl.hlssmpte.js +5 -5
  46. package/cl.htmlcue.js +26 -26
  47. package/cl.ima.js +18 -18
  48. package/cl.mediatailor.js +3 -0
  49. package/cl.mse.js +293 -308
  50. package/cl.muxdata.js +13 -13
  51. package/cl.onboard.js +4 -4
  52. package/cl.persistent.js +10 -10
  53. package/cl.playlist.js +5 -5
  54. package/cl.sessions.js +10 -10
  55. package/cl.simid.js +13 -13
  56. package/cl.smooth.js +60 -60
  57. package/cl.thumbnails.js +19 -19
  58. package/cl.tizen.js +57 -57
  59. package/cl.ttml.js +22 -22
  60. package/cl.verimatrix.js +4 -4
  61. package/cl.vimond.js +8 -8
  62. package/cl.vr.js +14 -14
  63. package/cl.vtt.js +12 -12
  64. package/cl.yospace.js +3 -3
  65. package/cl.youbora.js +28 -28
  66. package/package.json +1 -1
  67. package/typings.d.ts +0 -30
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 6.25.2
2
+
3
+ ## Changes
4
+
5
+ * Fix `EXT-X-DEFINE` support for media segment URIs in HLS.
6
+
1
7
  # 6.25.1
2
8
 
3
9
  ## New Features
package/cjs/cl.adobe.js CHANGED
@@ -1,7 +1,7 @@
1
1
  (function(){var g={}; var _ = _ || {}
2
- var f=function(window){var nZ=function(){this.m=this.f=null;this.a="";this.g=new _.K("clpp.adobe.AdobePlugin")},qZ=function(a){a.f=new _.wi;a.f.on(a.m,_.Ug,function(){return oZ(a)});a.f.on(a.m,_.Tg,function(){s.Media.play(a.a,a.m.getPosition())});a.f.on(a.m,_.Ue,function(){return pZ(a)});a.f.on(a.m,_.rg,function(b){b=b.detail;switch(b.currentState){case _.Vq:a.a.length||pZ(a);s.Media.play(a.a,a.m.getPosition());break;case _.Uq:case _.Mq:oZ(a);break;case _.Oq:case _.Hq:case _.Sq:a.g.info("Close session for "+a.a+" in player state "+
3
- (b.currentState+".")),oZ(a),s.Media.close(a.a),a.a=""}})},pZ=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(),_.xa)},oZ=function(a){s.Media.stop(a.a,a.m.getPosition())},rZ=function(){};_.x(nZ,_.gw);nZ.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,qZ(this)):this.g.warn("Adobe API not available.")};
4
- nZ.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.m=null;this.a=""};nZ.prototype.id=function(){return"adobe"};_.J("clpp.adobe.AdobeAnalyticsPlugin",nZ);nZ.Id="adobe";rZ.prototype.create=function(){return new nZ};_.cu(new rZ);};
2
+ var f=function(window){var oY=function(){this.m=this.f=null;this.a="";this.g=new _.J("clpp.adobe.AdobePlugin")},rY=function(a){a.f=new _.ii;a.f.on(a.m,_.Dg,function(){return pY(a)});a.f.on(a.m,_.Cg,function(){s.Media.play(a.a,a.m.getPosition())});a.f.on(a.m,_.Ee,function(){return qY(a)});a.f.on(a.m,_.cg,function(b){b=b.detail;switch(b.currentState){case _.Hq:a.a.length||qY(a);s.Media.play(a.a,a.m.getPosition());break;case _.Gq:case _.yq:pY(a);break;case _.Aq:case _.tq:case _.Eq:a.g.info("Close session for "+a.a+" in player state "+
3
+ (b.currentState+".")),pY(a),s.Media.close(a.a),a.a=""}})},qY=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(),_.xa)},pY=function(a){s.Media.stop(a.a,a.m.getPosition())},sY=function(){};_.w(oY,_.Tv);oY.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,rY(this)):this.g.warn("Adobe API not available.")};
4
+ oY.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.m=null;this.a=""};oY.prototype.id=function(){return"adobe"};_.I("clpp.adobe.AdobeAnalyticsPlugin",oY);oY.Id="adobe";sY.prototype.create=function(){return new oY};_.Pt(new sY);};
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 lZ=function(){var a=this;this.a=this.m=null;this.l=this.f=this.j=!1;this.o=new _.ji(function(){a.m.play()["catch"](function(){})});this.h=new _.wi},mZ=function(){};_.x(lZ,_.gw);_.u=lZ.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.en.bind(this)),this.h.on(this.a,"webkitcurrentplaybacktargetiswirelesschanged",this.Jn.bind(this)))};
3
- _.u.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.u.id=function(){return"airplay"};_.u.en=function(a){switch(a.availability){case "available":this.f=!0;break;case "not-available":this.f=!1}this.m.trigger(new _.L(_.Uc,{canCast:this.f}))};_.u.Jn=function(){var a=(this.j=this.a.webkitCurrentPlaybackTargetIsWireless)?_.Tc:_.Sc;if(this.l||!this.m.isPaused()||this.m.getState()===_.Vq)this.l?this.m.play()["catch"](function(){}):this.o.fa(.01);this.m.trigger(new _.L(a))};_.u.Ub=function(){return this.j};
4
- _.u.Xf=function(){return this.f};_.u.zo=function(){this.f&&(this.l=!this.m.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.J("clpp.airplay.AirPlayPlugin",lZ);lZ.prototype.showCastMenu=lZ.prototype.zo;lZ.prototype.canCast=lZ.prototype.Xf;lZ.prototype.isCasting=lZ.prototype.Ub;lZ.Id="airplay";mZ.prototype.create=function(){return new lZ};_.cu(new mZ);};
2
+ var f=function(window){var mY=function(){var a=this;this.a=this.m=null;this.l=this.f=this.j=!1;this.o=new _.Wh(function(){a.m.play()["catch"](function(){})});this.h=new _.ii},nY=function(){};_.w(mY,_.Tv);_.r=mY.prototype;_.r.onPlayerCreated=function(a){this.m=a;this.a=a.getSurface().getMedia()};_.r.onContentWillLoad=function(){this.a&&(this.h.on(this.a,"webkitplaybacktargetavailabilitychanged",this.Tm.bind(this)),this.h.on(this.a,"webkitcurrentplaybacktargetiswirelesschanged",this.xn.bind(this)))};
3
+ _.r.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.r.id=function(){return"airplay"};_.r.Tm=function(a){switch(a.availability){case "available":this.f=!0;break;case "not-available":this.f=!1}this.m.trigger(new _.K(_.Fc,{canCast:this.f}))};_.r.xn=function(){var a=(this.j=this.a.webkitCurrentPlaybackTargetIsWireless)?_.Ec:_.Dc;if(this.l||!this.m.isPaused()||this.m.getState()===_.Hq)this.l?this.m.play()["catch"](function(){}):this.o.fa(.01);this.m.trigger(new _.K(a))};_.r.Rb=function(){return this.j};
4
+ _.r.Tf=function(){return this.f};_.r.oo=function(){this.f&&(this.l=!this.m.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.I("clpp.airplay.AirPlayPlugin",mY);mY.prototype.showCastMenu=mY.prototype.oo;mY.prototype.canCast=mY.prototype.Tf;mY.prototype.isCasting=mY.prototype.Rb;mY.Id="airplay";nY.prototype.create=function(){return new mY};_.Pt(new nY);};
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 dZ=function(a,b){this.m=a;this.f=b;this.a=new _.wi;this.h=!1},eZ=function(a){function b(c){var d=GenericPlayerApi.call(this)||this;d.m=c;d.a=_.Hk();return d}_.x(b,GenericPlayerApi);b.prototype.getPlayerName=function(){return _.xa};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)},fZ=function(){this.l=this.f=this.a=this.h=this.m=null;this.o=new _.wi;this.j=!1},gZ=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===_.ug&&a.h.setUUID(f))},hZ=
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,_.Ae,a.ek.bind(a));a.l=eZ(a.m);a.a.attachPlayer(a.l)},iZ=function(a,b){_.zi(a.o);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},jZ=function(){return!window.SmartLib||!window.GenericPlayerApi},kZ=function(){};_.u=dZ.prototype;
5
- _.u.init=function(){var a=this.m,b=this.a;b.on(a,_.rg,this.hk.bind(this));b.on(a,_.md,this.fk.bind(this));b.on(a,"seek",this.gk.bind(this))};_.u.fk=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.u.hk=function(a){var b=this.m,c=this.f;a=a.detail;var d=a.currentState;a.previousState===_.Mq&&c.notifyStallEnd(!b.isPaused());switch(d){case _.Mq:c.notifyStallStart();break;case _.Vq:this.h?c.notifyResume():(c.notifyFirstImage(),this.h=!0);break;case _.Uq:c.notifyPause()}};
6
- _.u.gk=function(){var a=1E3*this.m.getPosition();this.f.notifySeek(a)};_.u.release=function(){this.a&&(_.zi(this.a),this.a=null)};_.x(fZ,_.gw);_.u=fZ.prototype;_.u.onPlayerCreated=function(a){this.m=a};_.u.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(jZ())return a.onError(new _.O(1,9,11E3));this.j=!0;gZ(this,d);hZ(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 _.O(1,9,11001,{bpkErrorCode:f,message:e}));iZ(c,void 0)}else b.url=e.getURL(),c.f=new dZ(c.m,c.l),c.f.init()})}};
7
- _.u.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.u.ek=function(a){a=a.detail;if(7003===a.code)iZ(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.P)switch(a.category){case 3:iZ(this,SmartLib.BPDecodingError);break;case 1:iZ(this,SmartLib.BPNetworkingError);break;case 6:iZ(this,SmartLib.BPAccessRightError);break;default:iZ(this,SmartLib.BPUnspecifiedError)}};_.u.onPlayerWillRelease=function(){jZ()||iZ(this,SmartLib.BPSessionEndsNormally);this.j=!1};_.u.id=function(){return"broadpeak"};
8
- _.J("clpp.broadpeak.BroadpeakPlugin",fZ);fZ.isSdkMissing=jZ;fZ.Id="broadpeak";kZ.prototype.create=function(){return new fZ};_.cu(new kZ);};
2
+ var f=function(window){var eY=function(a,b){this.m=a;this.f=b;this.a=new _.ii;this.h=!1},fY=function(a){function b(c){var d=GenericPlayerApi.call(this)||this;d.m=c;d.a=_.sk();return d}_.w(b,GenericPlayerApi);b.prototype.getPlayerName=function(){return _.xa};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)},gY=function(){this.l=this.f=this.a=this.h=this.m=null;this.o=new _.ii;this.j=!1},hY=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===_.fg&&a.h.setUUID(f))},iY=
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,_.je,a.Sj.bind(a));a.l=fY(a.m);a.a.attachPlayer(a.l)},jY=function(a,b){_.li(a.o);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},kY=function(){return!window.SmartLib||!window.GenericPlayerApi},lY=function(){};_.r=eY.prototype;
5
+ _.r.init=function(){var a=this.m,b=this.a;b.on(a,_.cg,this.Vj.bind(this));b.on(a,_.Yc,this.Tj.bind(this));b.on(a,"seek",this.Uj.bind(this))};_.r.Tj=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.r.Vj=function(a){var b=this.m,c=this.f;a=a.detail;var d=a.currentState;a.previousState===_.yq&&c.notifyStallEnd(!b.isPaused());switch(d){case _.yq:c.notifyStallStart();break;case _.Hq:this.h?c.notifyResume():(c.notifyFirstImage(),this.h=!0);break;case _.Gq:c.notifyPause()}};
6
+ _.r.Uj=function(){var a=1E3*this.m.getPosition();this.f.notifySeek(a)};_.r.release=function(){this.a&&(_.li(this.a),this.a=null)};_.w(gY,_.Tv);_.r=gY.prototype;_.r.onPlayerCreated=function(a){this.m=a};_.r.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(kY())return a.onError(new _.N(1,9,11E3));this.j=!0;hY(this,d);iY(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}));jY(c,void 0)}else b.url=e.getURL(),c.f=new eY(c.m,c.l),c.f.init()})}};
7
+ _.r.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.r.Sj=function(a){a=a.detail;if(7003===a.code)jY(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.O)switch(a.category){case 3:jY(this,SmartLib.BPDecodingError);break;case 1:jY(this,SmartLib.BPNetworkingError);break;case 6:jY(this,SmartLib.BPAccessRightError);break;default:jY(this,SmartLib.BPUnspecifiedError)}};_.r.onPlayerWillRelease=function(){kY()||jY(this,SmartLib.BPSessionEndsNormally);this.j=!1};_.r.id=function(){return"broadpeak"};
8
+ _.I("clpp.broadpeak.BroadpeakPlugin",gY);gY.isSdkMissing=kY;gY.Id="broadpeak";lY.prototype.create=function(){return new gY};_.Pt(new lY);};
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));}