@castlabs/prestoplay 6.26.0 → 6.28.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.
- package/CHANGELOG.md +42 -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 +115 -113
- package/cjs/cl.conviva.js +32 -32
- package/cjs/cl.core.js +623 -623
- package/cjs/cl.crypto.js +9 -9
- package/cjs/cl.dash.js +89 -89
- package/cjs/cl.externs.js +112 -72
- package/cjs/cl.freewheel.js +25 -25
- package/cjs/cl.hls.js +78 -77
- package/cjs/cl.hlssmpte.js +6 -6
- package/cjs/cl.htmlcue.js +30 -30
- package/cjs/cl.ima.js +23 -24
- package/cjs/cl.mediatailor.js +3 -3
- package/cjs/cl.mse.js +353 -345
- package/cjs/cl.muxdata.js +14 -15
- package/cjs/cl.onboard.js +4 -3
- package/cjs/cl.persistent.js +15 -15
- package/cjs/cl.playlist.js +6 -6
- package/cjs/cl.simid.js +16 -17
- package/cjs/cl.smooth.js +72 -72
- package/cjs/cl.thumbnails.js +26 -26
- package/cjs/cl.tizen.js +73 -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 +38 -38
- package/cjs/polyfill.min.js +15 -3
- package/cl.adobe.js +3 -3
- package/cl.airplay.js +3 -3
- package/cl.broadpeak.js +6 -5
- package/cl.cast.js +93 -90
- package/cl.conviva.js +27 -27
- package/cl.core.js +506 -507
- package/cl.crypto.js +9 -9
- package/cl.dash.js +83 -82
- package/cl.externs.js +112 -72
- package/cl.freewheel.js +19 -19
- package/cl.hls.js +80 -79
- package/cl.hlssmpte.js +5 -5
- package/cl.htmlcue.js +26 -26
- package/cl.ima.js +17 -17
- package/cl.mediatailor.js +2 -3
- package/cl.mse.js +308 -305
- package/cl.muxdata.js +13 -13
- package/cl.onboard.js +4 -4
- package/cl.persistent.js +11 -11
- package/cl.playlist.js +5 -5
- package/cl.simid.js +14 -14
- package/cl.smooth.js +60 -60
- 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 +15 -15
- package/cl.vtt.js +12 -12
- package/cl.yospace.js +3 -3
- package/cl.youbora.js +31 -29
- package/package.json +1 -1
- package/typings.d.ts +115 -63
- package/cjs/cl.sessions.js +0 -21
- package/cl.sessions.js +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
|
+
# 6.28.0
|
|
2
|
+
|
|
3
|
+
## **Warning**
|
|
4
|
+
|
|
5
|
+
DRMToday onboard component now uses Widevine V2 certificate by default.
|
|
6
|
+
If your deployment uses a different Widevine server certificate, you need to specify it via `drm.customData.serverCertificate`
|
|
7
|
+
or pass in `null` to configure the component to fetch the certificate from the server before a license request.
|
|
8
|
+
|
|
9
|
+
For more information, see https://demo.castlabs.com/docs/drm#drm-with-drmtoday-onboard.
|
|
10
|
+
|
|
11
|
+
## New Features
|
|
12
|
+
|
|
13
|
+
* DRMToday onboard component now uses Widevine V2 certificate by default.
|
|
14
|
+
* Trigger error events for network errors that get retried.
|
|
15
|
+
|
|
16
|
+
## Changes
|
|
17
|
+
|
|
18
|
+
* Fix timeline calculation for certain live DASH streams with thumbnails.
|
|
19
|
+
|
|
20
|
+
# 6.27.0
|
|
21
|
+
|
|
22
|
+
## New Features
|
|
23
|
+
|
|
24
|
+
* Add support for Queuing on Chromecast.
|
|
25
|
+
* For more details refer to docs https://demo.castlabs.com/docs/cast#queuing
|
|
26
|
+
* Add CMCD support (version 1).
|
|
27
|
+
|
|
28
|
+
## Changes
|
|
29
|
+
|
|
30
|
+
* Fix an issue with `player.getStats()` which crashes for audio-only streams.
|
|
31
|
+
* Fix support for HLS playlists with beacon URLs that do not have a file extension.
|
|
32
|
+
* Fix HLS live audio/video out-of-sync issue. The playlists are now aligned
|
|
33
|
+
when there are different EXT-X-PROGRAM-DATE-TIME tags on first segments.
|
|
34
|
+
* Add polyfills for Tizen 2.3.
|
|
35
|
+
|
|
36
|
+
# 6.26.1
|
|
37
|
+
|
|
38
|
+
## Changes
|
|
39
|
+
|
|
40
|
+
* Request URI used in network request and response modifiers is not modified.
|
|
41
|
+
* If the URI was specified without scheme, it stays without scheme.
|
|
42
|
+
|
|
1
43
|
# 6.26.0
|
|
2
44
|
|
|
3
45
|
## 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 HX=function(){this.m=this.f=null;this.a="";this.g=new _.L("clpp.adobe.AdobePlugin")},KX=function(a){a.f=new _.ti;a.f.on(a.m,_.Hg,function(){return IX(a)});a.f.on(a.m,_.Gg,function(){s.Media.play(a.a,a.m.getPosition())});a.f.on(a.m,_.Ee,function(){return JX(a)});a.f.on(a.m,_.dg,function(b){b=b.detail;switch(b.currentState){case 3:a.a.length||JX(a);s.Media.play(a.a,a.m.getPosition());break;case 4:case 2:IX(a);break;case 5:case _.Wt:case _.zo:a.g.info("Close session for "+a.a+" in player state "+
|
|
3
|
+
(b.currentState+".")),IX(a),s.Media.close(a.a),a.a=""}})},JX=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)},IX=function(a){s.Media.stop(a.a,a.m.getPosition())},LX=function(){};_.w(HX,_.Tv);HX.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,KX(this)):this.g.warn("Adobe API not available.")};
|
|
4
|
+
HX.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.m=null;this.a=""};HX.prototype.id=function(){return"adobe"};_.K("clpp.adobe.AdobeAnalyticsPlugin",HX);HX.Id="adobe";LX.prototype.create=function(){return new HX};_.To(new LX);};
|
|
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
|
-
_.r.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.r.id=function(){return"airplay"};_.r.
|
|
4
|
-
_.r
|
|
2
|
+
var f=function(window){var FX=function(){var a=this;this.a=this.m=null;this.l=this.f=this.j=!1;this.o=new _.bj(function(){a.m.play()["catch"](function(){})});this.h=new _.ti},GX=function(){};_.w(FX,_.Tv);_.r=FX.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.an.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.an=function(a){switch(a.availability){case "available":this.f=!0;break;case "not-available":this.f=!1}this.m.trigger(new _.Q(_.Dc,{canCast:this.f}))};_.r.Fn=function(){var a=(this.j=this.a.webkitCurrentPlaybackTargetIsWireless)?_.Cc:_.Bc;if(this.l||!this.m.isPaused()||3===this.m.getState())this.l?this.m.play()["catch"](function(){}):this.o.ha(.01);this.m.trigger(new _.Q(a))};_.r.Qb=function(){return this.j};
|
|
4
|
+
_.r.$f=function(){return this.f};_.r.yo=function(){this.f&&(this.l=!this.m.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.K("clpp.airplay.AirPlayPlugin",FX);FX.prototype.showCastMenu=FX.prototype.yo;FX.prototype.canCast=FX.prototype.$f;FX.prototype.isCasting=FX.prototype.Qb;FX.Id="airplay";GX.prototype.create=function(){return new FX};_.To(new GX);};
|
|
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
|
-
_.r.init=function(){var a=this.m,b=this.a;b.on(a,_.
|
|
6
|
-
_.r.
|
|
7
|
-
_.r.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.r.
|
|
8
|
-
_.
|
|
2
|
+
var f=function(window){var xX=function(a,b){this.m=a;this.f=b;this.a=new _.ti;this.h=!1},yX=function(a){function b(c){var d=GenericPlayerApi.call(this)||this;d.m=c;d.a=_.Jj();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)},zX=function(){this.l=this.f=this.a=this.h=this.m=null;this.o=new _.ti;this.j=!1},AX=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===_.gg&&a.h.setUUID(f))},BX=
|
|
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.ek.bind(a));a.l=yX(a.m);a.a.attachPlayer(a.l)},CX=function(a,b){_.wi(a.o);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},DX=function(){return!window.SmartLib||!window.GenericPlayerApi},EX=function(){};_.r=xX.prototype;
|
|
5
|
+
_.r.init=function(){var a=this.m,b=this.a;b.on(a,_.dg,this.hk.bind(this));b.on(a,_.Wc,this.fk.bind(this));b.on(a,"seek",this.gk.bind(this))};_.r.fk=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.r.hk=function(a){var b=this.m,c=this.f;a=a.detail;var d=a.currentState;2===a.previousState&&c.notifyStallEnd(!b.isPaused());switch(d){case 2:c.notifyStallStart();break;case 3:this.h?c.notifyResume():(c.notifyFirstImage(),this.h=!0);break;case 4:c.notifyPause()}};
|
|
6
|
+
_.r.gk=function(){var a=1E3*this.m.getPosition();this.f.notifySeek(a)};_.r.release=function(){this.a&&(_.wi(this.a),this.a=null)};_.w(zX,_.Tv);_.r=zX.prototype;_.r.onPlayerCreated=function(a){this.m=a};_.r.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(DX())return a.onError(new _.N(1,9,11E3));this.j=!0;AX(this,d);BX(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}));CX(c,void 0)}else b.url=e.getURL(),c.f=new xX(c.m,c.l),c.f.init()})}};
|
|
7
|
+
_.r.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.r.ek=function(a){a=a.detail;if(7003===a.code)CX(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.O)switch(a.category){case 3:CX(this,SmartLib.BPDecodingError);break;case 1:CX(this,SmartLib.BPNetworkingError);break;case 6:CX(this,SmartLib.BPAccessRightError);break;default:CX(this,SmartLib.BPUnspecifiedError)}};_.r.onPlayerWillRelease=function(){DX()||CX(this,SmartLib.BPSessionEndsNormally);this.j=!1};_.r.id=function(){return"broadpeak"};
|
|
8
|
+
_.K("clpp.broadpeak.BroadpeakPlugin",zX);zX.isSdkMissing=DX;zX.Id="broadpeak";EX.prototype.create=function(){return new zX};_.To(new EX);};
|
|
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));}
|