@castlabs/prestoplay 6.15.0 → 6.16.1-beta.1
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 +21 -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 +114 -114
- package/cjs/cl.conviva.js +33 -33
- package/cjs/cl.core.js +550 -544
- package/cjs/cl.crypto.js +9 -9
- package/cjs/cl.dash.js +74 -74
- package/cjs/cl.externs.js +64 -56
- package/cjs/cl.freewheel.js +24 -24
- package/cjs/cl.hls.js +69 -69
- package/cjs/cl.hlssmpte.js +6 -6
- package/cjs/cl.htmlcue.js +29 -29
- package/cjs/cl.ima.js +24 -24
- package/cjs/cl.mse.js +368 -289
- package/cjs/cl.muxdata.js +15 -15
- package/cjs/cl.onboard.js +3 -3
- package/cjs/cl.persistent.js +14 -14
- package/cjs/cl.playlist.js +6 -6
- package/cjs/cl.simid.js +15 -15
- package/cjs/cl.smooth.js +72 -72
- package/cjs/cl.thumbnails.js +26 -26
- package/cjs/cl.tizen.js +71 -71
- package/cjs/cl.ttml.js +28 -28
- package/cjs/cl.verimatrix.js +5 -5
- package/cjs/cl.vimond.js +13 -13
- package/cjs/cl.vr.js +19 -19
- package/cjs/cl.vtt.js +14 -14
- package/cjs/cl.youbora.js +20 -20
- package/cl.adobe.js +3 -3
- package/cl.airplay.js +3 -3
- package/cl.broadpeak.js +5 -5
- package/cl.cast.js +89 -89
- package/cl.conviva.js +27 -27
- package/cl.core.js +455 -452
- package/cl.crypto.js +9 -9
- package/cl.dash.js +69 -69
- package/cl.externs.js +64 -56
- package/cl.freewheel.js +19 -19
- package/cl.hls.js +70 -71
- package/cl.hlssmpte.js +5 -5
- package/cl.htmlcue.js +26 -26
- package/cl.ima.js +17 -17
- package/cl.mse.js +318 -255
- 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 +13 -13
- package/cl.smooth.js +59 -59
- 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.youbora.js +15 -15
- package/package.json +1 -1
- package/typings.d.ts +217 -49
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
# 6.16.1
|
|
2
|
+
|
|
3
|
+
## Changes
|
|
4
|
+
|
|
5
|
+
* Fix a corner case with HLS VOD streams in which `EXT-X-DATE-RANGE` tags are
|
|
6
|
+
not being parsed when program date time is equal to the start of Unix epoch.
|
|
7
|
+
|
|
8
|
+
# 6.16.0
|
|
9
|
+
|
|
10
|
+
## New Features
|
|
11
|
+
|
|
12
|
+
* Add support for smooth codec switching in multi-codec AdaptationSet scenarios.
|
|
13
|
+
* This support is disabled by default and can be enabled by configuring `config.mediaSource.codecSwitchingStrategy` to `clpp.CodecSwitchingStrategy.SMOOTH`.
|
|
14
|
+
* Smooth codec switching is only supported on platforms compatible with `SourceBuffer.changeType()` and is currently limited to sources that do not require transmuxing. It's also disabled by default on platforms known to have issues with `SourceBuffer.changeType()`; currently, this applies to Tizen 6.0 and 6.5 though the list may be expanded in the future.
|
|
15
|
+
* For more details, refer to [clpp.MediaSourceConfiguration](https://demo.castlabs.com/#/docs?q=clpp#MediaSourceConfiguration)
|
|
16
|
+
and [clpp.CodecSwitchingStrategy](https://demo.castlabs.com/#/docs?q=clpp#CodecSwitchingStrategy).
|
|
17
|
+
|
|
18
|
+
## Changes
|
|
19
|
+
|
|
20
|
+
* Fix an LL-HLS issue of playback stuck on buffering after first segment.
|
|
21
|
+
|
|
1
22
|
# 6.15.0
|
|
2
23
|
|
|
3
24
|
## 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 FX=function(){this.m=this.f=null;this.a="";this.g=new _.K("clpp.adobe.AdobePlugin")},IX=function(a){a.f=new _.Uh;a.f.on(a.m,_.Bg,function(){return GX(a)});a.f.on(a.m,_.Ag,function(){s.Media.play(a.a,a.m.getPosition())});a.f.on(a.m,_.Ke,function(){return HX(a)});a.f.on(a.m,_.hg,function(b){b=b.detail;switch(b.currentState){case _.Bp:a.a.length||HX(a);s.Media.play(a.a,a.m.getPosition());break;case _.Ap:case _.sp:GX(a);break;case _.up:case _.np:case _.yp:a.g.info("Close session for "+a.a+" in player state "+
|
|
3
|
+
(b.currentState+".")),GX(a),s.Media.close(a.a),a.a=""}})},HX=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)},GX=function(a){s.Media.stop(a.a,a.m.getPosition())},JX=function(){};_.x(FX,_.xu);FX.prototype.onPlayerCreated=function(a){window.s&&s.Media?(this.m=a,IX(this)):this.g.warn("Adobe API not available.")};
|
|
4
|
+
FX.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.m=null;this.a=""};FX.prototype.id=function(){return"adobe"};_.J("clpp.adobe.AdobeAnalyticsPlugin",FX);FX.Id="adobe";JX.prototype.create=function(){return new FX};_.Zq(new JX);};
|
|
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
|
-
_.
|
|
4
|
-
_.
|
|
2
|
+
var f=function(window){var DX=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 _.Uh},EX=function(){};_.x(DX,_.xu);_.u=DX.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.im.bind(this)),this.h.on(this.a,"webkitcurrentplaybacktargetiswirelesschanged",this.Fm.bind(this)))};
|
|
3
|
+
_.u.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.u.id=function(){return"airplay"};_.u.im=function(a){switch(a.availability){case "available":this.f=!0;break;case "not-available":this.f=!1}this.m.trigger(new _.L(_.Sc,{canCast:this.f}))};_.u.Fm=function(){var a=(this.j=this.a.webkitCurrentPlaybackTargetIsWireless)?_.Rc:_.Qc;if(this.l||!this.m.isPaused()||this.m.getState()===_.Bp)this.l?this.m.play()["catch"](function(){}):this.o.fa(.01);this.m.trigger(new _.L(a))};_.u.Gb=function(){return this.j};
|
|
4
|
+
_.u.yf=function(){return this.f};_.u.mn=function(){this.f&&(this.l=!this.m.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.J("clpp.airplay.AirPlayPlugin",DX);DX.prototype.showCastMenu=DX.prototype.mn;DX.prototype.canCast=DX.prototype.yf;DX.prototype.isCasting=DX.prototype.Gb;DX.Id="airplay";EX.prototype.create=function(){return new DX};_.Zq(new EX);};
|
|
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
|
-
_.
|
|
6
|
-
_.
|
|
7
|
-
_.
|
|
8
|
-
_.
|
|
2
|
+
var f=function(window){var vX=function(a,b){this.m=a;this.f=b;this.a=new _.Uh;this.h=!1},wX=function(a){function b(c){var d=GenericPlayerApi.call(this)||this;d.m=c;d.a=_.Zj();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)},xX=function(){this.l=this.f=this.a=this.h=this.m=null;this.o=new _.Uh;this.j=!1},yX=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===_.kg&&a.h.setUUID(f))},zX=
|
|
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,_.se,a.V.bind(a));a.l=wX(a.m);a.a.attachPlayer(a.l)},AX=function(a,b){_.Xh(a.o);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},BX=function(){return!window.SmartLib||!window.GenericPlayerApi},CX=function(){};_.u=vX.prototype;
|
|
5
|
+
_.u.init=function(){var a=this.m,b=this.a;b.on(a,_.hg,this.sj.bind(this));b.on(a,_.kd,this.qj.bind(this));b.on(a,"seek",this.rj.bind(this))};_.u.qj=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.u.sj=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
|
+
_.u.rj=function(){var a=1E3*this.m.getPosition();this.f.notifySeek(a)};_.u.release=function(){this.a&&(_.Xh(this.a),this.a=null)};_.x(xX,_.xu);_.u=xX.prototype;_.u.onPlayerCreated=function(a){this.m=a};_.u.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(BX())return a.onError(new _.P(1,9,11E3));this.j=!0;yX(this,d);zX(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}));AX(c,void 0)}else b.url=e.getURL(),c.f=new vX(c.m,c.l),c.f.init()})}};
|
|
7
|
+
_.u.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.u.V=function(a){a=a.detail;if(7003===a.code)AX(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.Q)switch(a.category){case 3:AX(this,SmartLib.BPDecodingError);break;case 1:AX(this,SmartLib.BPNetworkingError);break;case 6:AX(this,SmartLib.BPAccessRightError);break;default:AX(this,SmartLib.BPUnspecifiedError)}};_.u.onPlayerWillRelease=function(){BX()||AX(this,SmartLib.BPSessionEndsNormally);this.j=!1};_.u.id=function(){return"broadpeak"};
|
|
8
|
+
_.J("clpp.broadpeak.BroadpeakPlugin",xX);xX.isSdkMissing=BX;xX.Id="broadpeak";CX.prototype.create=function(){return new xX};_.Zq(new CX);};
|
|
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));}
|