@castlabs/prestoplay 6.17.1 → 6.18.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 (63) hide show
  1. package/CHANGELOG.md +30 -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 -111
  6. package/cjs/cl.conviva.js +33 -33
  7. package/cjs/cl.core.js +566 -558
  8. package/cjs/cl.crypto.js +9 -9
  9. package/cjs/cl.dash.js +75 -74
  10. package/cjs/cl.externs.js +46 -46
  11. package/cjs/cl.freewheel.js +24 -24
  12. package/cjs/cl.hls.js +71 -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 +311 -311
  17. package/cjs/cl.muxdata.js +15 -15
  18. package/cjs/cl.onboard.js +3 -3
  19. package/cjs/cl.persistent.js +14 -14
  20. package/cjs/cl.playlist.js +6 -6
  21. package/cjs/cl.sessions.js +15 -15
  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 +28 -28
  27. package/cjs/cl.verimatrix.js +5 -5
  28. package/cjs/cl.vimond.js +13 -13
  29. package/cjs/cl.vr.js +19 -19
  30. package/cjs/cl.vtt.js +14 -14
  31. package/cjs/cl.youbora.js +18 -18
  32. package/cl.adobe.js +3 -3
  33. package/cl.airplay.js +3 -3
  34. package/cl.broadpeak.js +5 -5
  35. package/cl.cast.js +87 -87
  36. package/cl.conviva.js +27 -27
  37. package/cl.core.js +456 -450
  38. package/cl.crypto.js +8 -8
  39. package/cl.dash.js +70 -69
  40. package/cl.externs.js +46 -46
  41. package/cl.freewheel.js +19 -19
  42. package/cl.hls.js +72 -72
  43. package/cl.hlssmpte.js +5 -5
  44. package/cl.htmlcue.js +26 -26
  45. package/cl.ima.js +17 -17
  46. package/cl.mse.js +274 -273
  47. package/cl.muxdata.js +13 -13
  48. package/cl.onboard.js +4 -4
  49. package/cl.persistent.js +10 -10
  50. package/cl.playlist.js +5 -5
  51. package/cl.sessions.js +10 -10
  52. package/cl.simid.js +13 -13
  53. package/cl.smooth.js +59 -59
  54. package/cl.thumbnails.js +19 -19
  55. package/cl.tizen.js +57 -57
  56. package/cl.ttml.js +22 -22
  57. package/cl.verimatrix.js +4 -4
  58. package/cl.vimond.js +8 -8
  59. package/cl.vr.js +15 -15
  60. package/cl.vtt.js +12 -12
  61. package/cl.youbora.js +15 -15
  62. package/package.json +2 -2
  63. package/typings.d.ts +37 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,33 @@
1
+ # 6.18.0
2
+
3
+ ## New Features
4
+
5
+ * Add startover timeline type for DASH which supports seeking back to the start
6
+ of the stream. Enable this timeline mode by configuring
7
+ `manifest.timeline.type: "startover"` for startover streams.
8
+ * Make Widevine key system version configurable via `drm.widevineVersion` to allow
9
+ for the selection of experimental key systems such as `com.widevine.alpha.experiment`.
10
+ * Support multiple HLS EXT-X-MAP tags in a playlist.
11
+ * Upgrade supported version of `youboralib` to 6.8.59. Please upgrade to this version (e.g. `npm i youboralib@6.8.59`).
12
+ * Support EXT-X-DATERANGE tags in Live HLS Streams.
13
+
14
+ ## Changes
15
+
16
+ * Improve DRM logs.
17
+ * Fix an issue with segment eviction in startover DASH.
18
+ * Fixed handling of same GROUP-IDs across different media types in HLS.
19
+ * Fix an event `clpp.events.BITRATE_CHANGED` which wasn't properly triggered.
20
+ * Fix session initialization in the Broadpeak plugin.
21
+ * Update DRMToday Widevine server certificate.
22
+ * Fix reporting of bitrate by Conviva Analytics Plugin.
23
+ * Fix crash in repeated calls to `load()` on Tizen 4 and 5.
24
+
25
+ ## Known Issues
26
+
27
+ * Breaking change of latest [Google Cast SDK Web Receiver version 3.0.0137](https://developers.google.com/cast/docs/release-notes#september-4,-2024-november-1,-2024)
28
+ * Causes a regression in audio and subtitle track selection when casting to Chromecast devices. Tracks appear disabled during the casting session.
29
+ * Affects all SDK versions.
30
+
1
31
  # 6.17.1
2
32
 
3
33
  ## Changes
package/cjs/cl.adobe.js CHANGED
@@ -1,7 +1,7 @@
1
1
  (function(){var g={}; var _ = _ || {}
2
- var f=function(window){var VV=function(){this.m=this.f=null;this.a="";this.g=new _.K("clpp.adobe.AdobePlugin")},YV=function(a){a.f=new _.Uh;a.f.on(a.m,_.Dg,function(){return WV(a)});a.f.on(a.m,_.Cg,function(){s.Media.play(a.a,a.m.getPosition())});a.f.on(a.m,_.Je,function(){return XV(a)});a.f.on(a.m,_.gg,function(b){b=b.detail;switch(b.currentState){case _.zp:a.a.length||XV(a);s.Media.play(a.a,a.m.getPosition());break;case _.yp:case _.qp:WV(a);break;case _.sp:case _.lp:case _.wp:a.g.info("Close session for "+a.a+" in player state "+
3
- (b.currentState+".")),WV(a),s.Media.close(a.a),a.a=""}})},XV=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)},WV=function(a){s.Media.stop(a.a,a.m.getPosition())},ZV=function(){};_.x(VV,_.zu);VV.prototype.onPlayerCreated=function(a){window.s&&s.Media?(this.m=a,YV(this)):this.g.warn("Adobe API not available.")};
4
- VV.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.m=null;this.a=""};VV.prototype.id=function(){return"adobe"};_.J("clpp.adobe.AdobeAnalyticsPlugin",VV);VV.Id="adobe";ZV.prototype.create=function(){return new VV};_.$q(new ZV);};
2
+ var f=function(window){var bW=function(){this.m=this.f=null;this.a="";this.g=new _.K("clpp.adobe.AdobePlugin")},eW=function(a){a.f=new _.Xh;a.f.on(a.m,_.Gg,function(){return cW(a)});a.f.on(a.m,_.Dg,function(){s.Media.play(a.a,a.m.getPosition())});a.f.on(a.m,_.Ne,function(){return dW(a)});a.f.on(a.m,_.jg,function(b){b=b.detail;switch(b.currentState){case _.Bp:a.a.length||dW(a);s.Media.play(a.a,a.m.getPosition());break;case _.Ap:case _.sp:cW(a);break;case _.up:case _.np:case _.yp:a.g.info("Close session for "+a.a+" in player state "+
3
+ (b.currentState+".")),cW(a),s.Media.close(a.a),a.a=""}})},dW=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(),_.wa)},cW=function(a){s.Media.stop(a.a,a.m.getPosition())},fW=function(){};_.x(bW,_.Gu);bW.prototype.onPlayerCreated=function(a){window.s&&s.Media?(this.m=a,eW(this)):this.g.warn("Adobe API not available.")};
4
+ bW.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.m=null;this.a=""};bW.prototype.id=function(){return"adobe"};_.J("clpp.adobe.AdobeAnalyticsPlugin",bW);bW.Id="adobe";fW.prototype.create=function(){return new bW};_.br(new fW);};
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 TV=function(){var a=this;this.a=this.m=null;this.l=this.f=this.j=!1;this.o=new _.Uk(function(){a.m.play()["catch"](function(){})});this.h=new _.Uh},UV=function(){};_.x(TV,_.zu);_.t=TV.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.Wl.bind(this)),this.h.on(this.a,"webkitcurrentplaybacktargetiswirelesschanged",this.ym.bind(this)))};
3
- _.t.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.t.id=function(){return"airplay"};_.t.Wl=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}))};_.t.ym=function(){var a=(this.j=this.a.webkitCurrentPlaybackTargetIsWireless)?_.Qc:_.Pc;if(this.l||!this.m.isPaused()||this.m.getState()===_.zp)this.l?this.m.play()["catch"](function(){}):this.o.da(.01);this.m.trigger(new _.L(a))};_.t.tb=function(){return this.j};
4
- _.t.kf=function(){return this.f};_.t.fn=function(){this.f&&(this.l=!this.m.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.J("clpp.airplay.AirPlayPlugin",TV);TV.prototype.showCastMenu=TV.prototype.fn;TV.prototype.canCast=TV.prototype.kf;TV.prototype.isCasting=TV.prototype.tb;TV.Id="airplay";UV.prototype.create=function(){return new TV};_.$q(new UV);};
2
+ var f=function(window){var $V=function(){var a=this;this.a=this.m=null;this.l=this.f=this.j=!1;this.o=new _.Xk(function(){a.m.play()["catch"](function(){})});this.h=new _.Xh},aW=function(){};_.x($V,_.Gu);_.t=$V.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.Zl.bind(this)),this.h.on(this.a,"webkitcurrentplaybacktargetiswirelesschanged",this.Bm.bind(this)))};
3
+ _.t.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.t.id=function(){return"airplay"};_.t.Zl=function(a){switch(a.availability){case "available":this.f=!0;break;case "not-available":this.f=!1}this.m.trigger(new _.L(_.Tc,{canCast:this.f}))};_.t.Bm=function(){var a=(this.j=this.a.webkitCurrentPlaybackTargetIsWireless)?_.Sc:_.Rc;if(this.l||!this.m.isPaused()||this.m.getState()===_.Bp)this.l?this.m.play()["catch"](function(){}):this.o.da(.01);this.m.trigger(new _.L(a))};_.t.ub=function(){return this.j};
4
+ _.t.nf=function(){return this.f};_.t.kn=function(){this.f&&(this.l=!this.m.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.J("clpp.airplay.AirPlayPlugin",$V);$V.prototype.showCastMenu=$V.prototype.kn;$V.prototype.canCast=$V.prototype.nf;$V.prototype.isCasting=$V.prototype.ub;$V.Id="airplay";aW.prototype.create=function(){return new $V};_.br(new aW);};
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 LV=function(a,b){this.m=a;this.f=b;this.a=new _.Uh;this.h=!1},MV=function(a){function b(c){var d=GenericPlayerApi.call(this)||this;d.m=c;d.a=_.Xj();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)},NV=function(){this.l=this.f=this.a=this.h=this.m=null;this.o=new _.Uh;this.j=!1},OV=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))},PV=
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.T.bind(a));a.l=MV(a.m);a.a.attachPlayer(a.l)},QV=function(a,b){_.Xh(a.o);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},RV=function(){return!window.SmartLib||!window.GenericPlayerApi},SV=function(){};_.t=LV.prototype;
5
- _.t.init=function(){var a=this.m,b=this.a;b.on(a,_.gg,this.cj.bind(this));b.on(a,_.jd,this.aj.bind(this));b.on(a,"seek",this.bj.bind(this))};_.t.aj=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.t.cj=function(a){var b=this.m,c=this.f;a=a.detail;var d=a.currentState;a.previousState===_.qp&&c.notifyStallEnd(!b.isPaused());switch(d){case _.qp:c.notifyStallStart();break;case _.zp:this.h?c.notifyResume():(c.notifyFirstImage(),this.h=!0);break;case _.yp:c.notifyPause()}};
6
- _.t.bj=function(){var a=1E3*this.m.getPosition();this.f.notifySeek(a)};_.t.release=function(){this.a&&(_.Xh(this.a),this.a=null)};_.x(NV,_.zu);_.t=NV.prototype;_.t.onPlayerCreated=function(a){this.m=a};_.t.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(RV())return a.onError(new _.P(1,9,11E3));this.j=!0;OV(this,d);PV(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}));QV(c,void 0)}else b.url=e.getURL(),c.f=new LV(c.m,c.l),c.f.init()})}};
7
- _.t.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.t.T=function(a){a=a.detail;if(7003===a.code)QV(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.Q)switch(a.category){case 3:QV(this,SmartLib.BPDecodingError);break;case 1:QV(this,SmartLib.BPNetworkingError);break;case 6:QV(this,SmartLib.BPAccessRightError);break;default:QV(this,SmartLib.BPUnspecifiedError)}};_.t.onPlayerWillRelease=function(){RV()||QV(this,SmartLib.BPSessionEndsNormally);this.j=!1};_.t.id=function(){return"broadpeak"};
8
- _.J("clpp.broadpeak.BroadpeakPlugin",NV);NV.isSdkMissing=RV;NV.Id="broadpeak";SV.prototype.create=function(){return new NV};_.$q(new SV);};
2
+ var f=function(window){var SV=function(a,b){this.m=a;this.f=b;this.a=new _.Xh;this.h=!1},TV=function(a){function b(c){var d=GenericPlayerApi.call(this)||this;d.m=c;d.a=_.ak();return d}_.x(b,GenericPlayerApi);b.prototype.getPlayerName=function(){return _.wa};b.prototype.getVersion=function(){return _.ja};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)},UV=function(){this.l=this.f=this.a=this.h=this.m=null;this.o=new _.Xh;this.j=!1},VV=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===_.mg&&a.h.setUUID(f))},WV=
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,_.te,a.T.bind(a));a.l=TV(a.m);a.a.attachPlayer(a.l)},XV=function(a,b){_.$h(a.o);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},YV=function(){return!window.SmartLib||!window.GenericPlayerApi},ZV=function(){};_.t=SV.prototype;
5
+ _.t.init=function(){var a=this.m,b=this.a;b.on(a,_.jg,this.ej.bind(this));b.on(a,_.ld,this.cj.bind(this));b.on(a,"seek",this.dj.bind(this))};_.t.cj=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.t.ej=function(a){var b=this.m,c=this.f;a=a.detail;var d=a.currentState;a.previousState===_.sp&&c.notifyStallEnd(!b.isPaused());switch(d){case _.sp:c.notifyStallStart();break;case _.Bp:this.h?c.notifyResume():(c.notifyFirstImage(),this.h=!0);break;case _.Ap:c.notifyPause()}};
6
+ _.t.dj=function(){var a=1E3*this.m.getPosition();this.f.notifySeek(a)};_.t.release=function(){this.a&&(_.$h(this.a),this.a=null)};_.x(UV,_.Gu);_.t=UV.prototype;_.t.onPlayerCreated=function(a){this.m=a};_.t.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(YV())return a.onError(new _.N(1,9,11E3));this.j=!0;VV(this,d);WV(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}));XV(c,void 0)}else b.url=e.getURL(),c.f=new SV(c.m,c.l),c.f.init()})}};
7
+ _.t.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.t.T=function(a){a=a.detail;if(7003===a.code)XV(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.O)switch(a.category){case 3:XV(this,SmartLib.BPDecodingError);break;case 1:XV(this,SmartLib.BPNetworkingError);break;case 6:XV(this,SmartLib.BPAccessRightError);break;default:XV(this,SmartLib.BPUnspecifiedError)}};_.t.onPlayerWillRelease=function(){YV()||XV(this,SmartLib.BPSessionEndsNormally);this.j=!1};_.t.id=function(){return"broadpeak"};
8
+ _.J("clpp.broadpeak.BroadpeakPlugin",UV);UV.isSdkMissing=YV;UV.Id="broadpeak";ZV.prototype.create=function(){return new UV};_.br(new ZV);};
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));}