@castlabs/prestoplay 6.25.2 → 6.26.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 (68) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +5 -5
  3. package/cjs/cl.adobe.js +3 -3
  4. package/cjs/cl.airplay.js +3 -3
  5. package/cjs/cl.broadpeak.js +7 -7
  6. package/cjs/cl.cast.js +112 -112
  7. package/cjs/cl.conviva.js +32 -32
  8. package/cjs/cl.core.js +601 -600
  9. package/cjs/cl.crypto.js +9 -9
  10. package/cjs/cl.dash.js +89 -88
  11. package/cjs/cl.externs.js +37 -31
  12. package/cjs/cl.freewheel.js +24 -24
  13. package/cjs/cl.hls.js +77 -77
  14. package/cjs/cl.hlssmpte.js +6 -6
  15. package/cjs/cl.htmlcue.js +30 -30
  16. package/cjs/cl.ima.js +23 -23
  17. package/cjs/cl.mediatailor.js +3 -3
  18. package/cjs/cl.mse.js +341 -334
  19. package/cjs/cl.muxdata.js +15 -15
  20. package/cjs/cl.onboard.js +3 -3
  21. package/cjs/cl.persistent.js +14 -14
  22. package/cjs/cl.playlist.js +6 -6
  23. package/cjs/cl.sessions.js +16 -16
  24. package/cjs/cl.simid.js +17 -17
  25. package/cjs/cl.smooth.js +72 -72
  26. package/cjs/cl.thumbnails.js +26 -26
  27. package/cjs/cl.tizen.js +71 -71
  28. package/cjs/cl.ttml.js +29 -29
  29. package/cjs/cl.verimatrix.js +5 -5
  30. package/cjs/cl.vimond.js +12 -12
  31. package/cjs/cl.vr.js +19 -19
  32. package/cjs/cl.vtt.js +14 -14
  33. package/cjs/cl.yospace.js +4 -4
  34. package/cjs/cl.youbora.js +38 -36
  35. package/cl.adobe.js +3 -3
  36. package/cl.airplay.js +3 -3
  37. package/cl.broadpeak.js +5 -5
  38. package/cl.cast.js +87 -87
  39. package/cl.conviva.js +27 -27
  40. package/cl.core.js +489 -488
  41. package/cl.crypto.js +9 -9
  42. package/cl.dash.js +82 -82
  43. package/cl.externs.js +37 -31
  44. package/cl.freewheel.js +19 -19
  45. package/cl.hls.js +79 -80
  46. package/cl.hlssmpte.js +5 -5
  47. package/cl.htmlcue.js +26 -26
  48. package/cl.ima.js +17 -17
  49. package/cl.mediatailor.js +3 -3
  50. package/cl.mse.js +299 -292
  51. package/cl.muxdata.js +13 -13
  52. package/cl.onboard.js +4 -4
  53. package/cl.persistent.js +10 -10
  54. package/cl.playlist.js +5 -5
  55. package/cl.sessions.js +10 -10
  56. package/cl.simid.js +14 -14
  57. package/cl.smooth.js +60 -60
  58. package/cl.thumbnails.js +19 -19
  59. package/cl.tizen.js +57 -57
  60. package/cl.ttml.js +22 -22
  61. package/cl.verimatrix.js +4 -4
  62. package/cl.vimond.js +8 -8
  63. package/cl.vr.js +14 -14
  64. package/cl.vtt.js +12 -12
  65. package/cl.yospace.js +3 -3
  66. package/cl.youbora.js +28 -27
  67. package/package.json +3 -3
  68. package/typings.d.ts +41 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ # 6.26.0
2
+
3
+ ## New Features
4
+
5
+ * Add support for audio and subtitle track language in NPAW v7 plugin.
6
+ * The language information is sent in the ping request.
7
+ * Add support for custom label for disabled subtitles in NPAW v7 plugin.
8
+ * The label can be configured via `youbora.disabledSubtitlesLabel` config option.
9
+
10
+ ## Changes
11
+
12
+ * Update docs of IMA Plugin stating limitations on SmartTV devices.
13
+ * Refer to the [IMA Plugin](https://demo.castlabs.com/docs/advertising#ima-sdk-smarttv-support) documentation for more information.
14
+ * Fix an null pointer issue which occurs when a dynamic manifest turns static.
15
+
1
16
  # 6.25.2
2
17
 
3
18
  ## Changes
package/README.md CHANGED
@@ -4,7 +4,7 @@ PRESTOplay for Web Apps is our SDK framework for deploying fantastic HTML/JavaSc
4
4
  video players across web-enabled platforms.
5
5
 
6
6
  You can start using PRESTOplay now for your local development, and
7
- visit us [to get your license](https://castlabs.com/free-trials/prestoplay/).
7
+ visit us [to get your license](https://account.castlabs.com/signup).
8
8
 
9
9
  Documentation, manuals, tutorials and demos can be found at [https://demo.castlabs.com](https://demo.castlabs.com).
10
10
 
@@ -16,7 +16,7 @@ You can install the PRESTOplay SDK using a package manager such as `npm` or `yar
16
16
  npm install @castlabs/prestoplay
17
17
  ```
18
18
 
19
- Once installed, you can follow the [getting started guide](https://demo.castlabs.com/#/docs/getting_started) for a full
19
+ Once installed, you can follow the [getting started guide](https://demo.castlabs.com/docs/getting_started) for a full
20
20
  example, but here is how it would look like:
21
21
 
22
22
  ```javascript
@@ -43,9 +43,9 @@ node_modules/@castlabs/prestoplay/clpp.styles.css
43
43
 
44
44
  ## Support and Help
45
45
 
46
- * [Documentation](https://demo.castlabs.com/#/docs)
47
- * [Demo and Configuration](https://demo.castlabs.com/#/player/config)
48
- * [Support and Helpdesk](https://castlabs.com/support/)
46
+ * [Documentation](https://demo.castlabs.com/docs)
47
+ * [Demo and Configuration](https://demo.castlabs.com/player/config)
48
+ * [Support and Helpdesk](https://support.castlabs.com/)
49
49
 
50
50
 
51
51
  ## License
package/cjs/cl.adobe.js CHANGED
@@ -1,7 +1,7 @@
1
1
  (function(){var g={}; var _ = _ || {}
2
- var f=function(window){var yY=function(){this.m=this.f=null;this.a="";this.g=new _.J("clpp.adobe.AdobePlugin")},BY=function(a){a.f=new _.gi;a.f.on(a.m,_.Cg,function(){return zY(a)});a.f.on(a.m,_.Bg,function(){s.Media.play(a.a,a.m.getPosition())});a.f.on(a.m,_.De,function(){return AY(a)});a.f.on(a.m,_.bg,function(b){b=b.detail;switch(b.currentState){case _.Hq:a.a.length||AY(a);s.Media.play(a.a,a.m.getPosition());break;case _.Gq:case _.yq:zY(a);break;case _.Aq:case _.tq:case _.Eq:a.g.info("Close session for "+a.a+" in player state "+
3
- (b.currentState+".")),zY(a),s.Media.close(a.a),a.a=""}})},AY=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)},zY=function(a){s.Media.stop(a.a,a.m.getPosition())},CY=function(){};_.w(yY,_.bw);yY.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,BY(this)):this.g.warn("Adobe API not available.")};
4
- yY.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.m=null;this.a=""};yY.prototype.id=function(){return"adobe"};_.I("clpp.adobe.AdobeAnalyticsPlugin",yY);yY.Id="adobe";CY.prototype.create=function(){return new yY};_.Yt(new CY);};
2
+ var f=function(window){var NY=function(){this.m=this.f=null;this.a="";this.g=new _.J("clpp.adobe.AdobePlugin")},QY=function(a){a.f=new _.hi;a.f.on(a.m,_.Dg,function(){return OY(a)});a.f.on(a.m,_.Cg,function(){s.Media.play(a.a,a.m.getPosition())});a.f.on(a.m,_.Ee,function(){return PY(a)});a.f.on(a.m,_.cg,function(b){b=b.detail;switch(b.currentState){case _.Kq:a.a.length||PY(a);s.Media.play(a.a,a.m.getPosition());break;case _.Jq:case _.Bq:OY(a);break;case _.Dq:case _.wq:case _.Hq:a.g.info("Close session for "+a.a+" in player state "+
3
+ (b.currentState+".")),OY(a),s.Media.close(a.a),a.a=""}})},PY=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)},OY=function(a){s.Media.stop(a.a,a.m.getPosition())},RY=function(){};_.w(NY,_.ew);NY.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,QY(this)):this.g.warn("Adobe API not available.")};
4
+ NY.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.m=null;this.a=""};NY.prototype.id=function(){return"adobe"};_.I("clpp.adobe.AdobeAnalyticsPlugin",NY);NY.Id="adobe";RY.prototype.create=function(){return new NY};_.bu(new RY);};
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 wY=function(){var a=this;this.a=this.m=null;this.l=this.f=this.j=!1;this.o=new _.Vh(function(){a.m.play()["catch"](function(){})});this.h=new _.gi},xY=function(){};_.w(wY,_.bw);_.r=wY.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.$m.bind(this)),this.h.on(this.a,"webkitcurrentplaybacktargetiswirelesschanged",this.Fn.bind(this)))};
3
- _.r.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.r.id=function(){return"airplay"};_.r.$m=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.Fn=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.ga(.01);this.m.trigger(new _.K(a))};_.r.Tb=function(){return this.j};
4
- _.r.Xf=function(){return this.f};_.r.vo=function(){this.f&&(this.l=!this.m.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.I("clpp.airplay.AirPlayPlugin",wY);wY.prototype.showCastMenu=wY.prototype.vo;wY.prototype.canCast=wY.prototype.Xf;wY.prototype.isCasting=wY.prototype.Tb;wY.Id="airplay";xY.prototype.create=function(){return new wY};_.Yt(new xY);};
2
+ var f=function(window){var LY=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 _.hi},MY=function(){};_.w(LY,_.ew);_.r=LY.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.cn.bind(this)),this.h.on(this.a,"webkitcurrentplaybacktargetiswirelesschanged",this.In.bind(this)))};
3
+ _.r.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.r.id=function(){return"airplay"};_.r.cn=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.In=function(){var a=(this.j=this.a.webkitCurrentPlaybackTargetIsWireless)?_.Ec:_.Dc;if(this.l||!this.m.isPaused()||this.m.getState()===_.Kq)this.l?this.m.play()["catch"](function(){}):this.o.ha(.01);this.m.trigger(new _.K(a))};_.r.Tb=function(){return this.j};
4
+ _.r.ag=function(){return this.f};_.r.yo=function(){this.f&&(this.l=!this.m.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.I("clpp.airplay.AirPlayPlugin",LY);LY.prototype.showCastMenu=LY.prototype.yo;LY.prototype.canCast=LY.prototype.ag;LY.prototype.isCasting=LY.prototype.Tb;LY.Id="airplay";MY.prototype.create=function(){return new LY};_.bu(new MY);};
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 oY=function(a,b){this.m=a;this.f=b;this.a=new _.gi;this.h=!1},pY=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)},qY=function(){this.l=this.f=this.a=this.h=this.m=null;this.o=new _.gi;this.j=!1},rY=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===_.eg&&a.h.setUUID(f))},sY=
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,_.ie,a.Wj.bind(a));a.l=pY(a.m);a.a.attachPlayer(a.l)},tY=function(a,b){_.ki(a.o);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},uY=function(){return!window.SmartLib||!window.GenericPlayerApi},vY=function(){};_.r=oY.prototype;
5
- _.r.init=function(){var a=this.m,b=this.a;b.on(a,_.bg,this.Zj.bind(this));b.on(a,_.Yc,this.Xj.bind(this));b.on(a,"seek",this.Yj.bind(this))};_.r.Xj=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.r.Zj=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.Yj=function(){var a=1E3*this.m.getPosition();this.f.notifySeek(a)};_.r.release=function(){this.a&&(_.ki(this.a),this.a=null)};_.w(qY,_.bw);_.r=qY.prototype;_.r.onPlayerCreated=function(a){this.m=a};_.r.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(uY())return a.onError(new _.N(1,9,11E3));this.j=!0;rY(this,d);sY(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}));tY(c,void 0)}else b.url=e.getURL(),c.f=new oY(c.m,c.l),c.f.init()})}};
7
- _.r.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.r.Wj=function(a){a=a.detail;if(7003===a.code)tY(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.O)switch(a.category){case 3:tY(this,SmartLib.BPDecodingError);break;case 1:tY(this,SmartLib.BPNetworkingError);break;case 6:tY(this,SmartLib.BPAccessRightError);break;default:tY(this,SmartLib.BPUnspecifiedError)}};_.r.onPlayerWillRelease=function(){uY()||tY(this,SmartLib.BPSessionEndsNormally);this.j=!1};_.r.id=function(){return"broadpeak"};
8
- _.I("clpp.broadpeak.BroadpeakPlugin",qY);qY.isSdkMissing=uY;qY.Id="broadpeak";vY.prototype.create=function(){return new qY};_.Yt(new vY);};
2
+ var f=function(window){var DY=function(a,b){this.m=a;this.f=b;this.a=new _.hi;this.h=!1},EY=function(a){function b(c){var d=GenericPlayerApi.call(this)||this;d.m=c;d.a=_.yk();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)},FY=function(){this.l=this.f=this.a=this.h=this.m=null;this.o=new _.hi;this.j=!1},GY=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))},HY=
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,_.ie,a.Zj.bind(a));a.l=EY(a.m);a.a.attachPlayer(a.l)},IY=function(a,b){_.li(a.o);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},JY=function(){return!window.SmartLib||!window.GenericPlayerApi},KY=function(){};_.r=DY.prototype;
5
+ _.r.init=function(){var a=this.m,b=this.a;b.on(a,_.cg,this.bk.bind(this));b.on(a,_.Yc,this.$j.bind(this));b.on(a,"seek",this.ak.bind(this))};_.r.$j=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.r.bk=function(a){var b=this.m,c=this.f;a=a.detail;var d=a.currentState;a.previousState===_.Bq&&c.notifyStallEnd(!b.isPaused());switch(d){case _.Bq:c.notifyStallStart();break;case _.Kq:this.h?c.notifyResume():(c.notifyFirstImage(),this.h=!0);break;case _.Jq:c.notifyPause()}};
6
+ _.r.ak=function(){var a=1E3*this.m.getPosition();this.f.notifySeek(a)};_.r.release=function(){this.a&&(_.li(this.a),this.a=null)};_.w(FY,_.ew);_.r=FY.prototype;_.r.onPlayerCreated=function(a){this.m=a};_.r.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(JY())return a.onError(new _.N(1,9,11E3));this.j=!0;GY(this,d);HY(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}));IY(c,void 0)}else b.url=e.getURL(),c.f=new DY(c.m,c.l),c.f.init()})}};
7
+ _.r.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.r.Zj=function(a){a=a.detail;if(7003===a.code)IY(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.O)switch(a.category){case 3:IY(this,SmartLib.BPDecodingError);break;case 1:IY(this,SmartLib.BPNetworkingError);break;case 6:IY(this,SmartLib.BPAccessRightError);break;default:IY(this,SmartLib.BPUnspecifiedError)}};_.r.onPlayerWillRelease=function(){JY()||IY(this,SmartLib.BPSessionEndsNormally);this.j=!1};_.r.id=function(){return"broadpeak"};
8
+ _.I("clpp.broadpeak.BroadpeakPlugin",FY);FY.isSdkMissing=JY;FY.Id="broadpeak";KY.prototype.create=function(){return new FY};_.bu(new KY);};
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));}