@castlabs/prestoplay 6.11.0 → 6.11.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 +16 -0
- package/cjs/cl.adobe.js +3 -3
- package/cjs/cl.airplay.js +3 -3
- package/cjs/cl.broadpeak.js +6 -6
- package/cjs/cl.cast.js +111 -111
- package/cjs/cl.conviva.js +33 -33
- package/cjs/cl.core.js +524 -461
- package/cjs/cl.crypto.js +10 -10
- package/cjs/cl.dash.js +72 -71
- package/cjs/cl.externs.js +156 -35
- package/cjs/cl.freewheel.js +24 -24
- package/cjs/cl.hls.js +67 -78
- package/cjs/cl.hlssmpte.js +6 -6
- package/cjs/cl.htmlcue.js +30 -29
- package/cjs/cl.ima.js +23 -23
- package/cjs/cl.mse.js +274 -278
- package/cjs/cl.muxdata.js +14 -14
- 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 +21 -0
- package/cjs/cl.smooth.js +71 -71
- package/cjs/cl.thumbnails.js +24 -24
- package/cjs/cl.tizen.js +71 -71
- package/cjs/cl.ttml.js +28 -29
- package/cjs/cl.verimatrix.js +5 -5
- package/cjs/cl.vimond.js +13 -13
- package/cjs/cl.vr.js +20 -20
- 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 +87 -87
- package/cl.conviva.js +27 -27
- package/cl.core.js +428 -391
- package/cl.crypto.js +8 -8
- package/cl.dash.js +67 -67
- package/cl.externs.js +156 -35
- package/cl.freewheel.js +19 -19
- package/cl.hls.js +69 -64
- package/cl.hlssmpte.js +5 -5
- package/cl.htmlcue.js +26 -26
- package/cl.ima.js +17 -17
- package/cl.mse.js +237 -236
- package/cl.muxdata.js +12 -12
- package/cl.onboard.js +4 -4
- package/cl.persistent.js +10 -10
- package/cl.playlist.js +5 -5
- package/cl.simid.js +13 -0
- package/cl.smooth.js +59 -59
- package/cl.thumbnails.js +17 -17
- 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/clpp.styles.css +5 -1
- package/package.json +1 -1
- package/typings.d.ts +544 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# 6.11.1
|
|
2
|
+
|
|
3
|
+
## New Features
|
|
4
|
+
|
|
5
|
+
* Spatial audio detection and configuration:
|
|
6
|
+
* Added detection of E-AC3 JOC audio content using DD+JOC signaling.
|
|
7
|
+
* Added `clpp.Track.spatialAudio` value to indicate spatial audio content.
|
|
8
|
+
* Added `config.preferSpatialAudio` to support manual prioritization of spatial audio.
|
|
9
|
+
|
|
10
|
+
## Changes
|
|
11
|
+
|
|
12
|
+
* Fix support for CR and CRLF line endings on Safari related to configs
|
|
13
|
+
`safari.enableHlsVideoTrackInfo` and `safari.enableMetadata`.
|
|
14
|
+
* Fixed position attribute of the `clpp-fill` css class and made it `absolute`
|
|
15
|
+
* Fixed issue with typescript types where namespace functions were not exposed
|
|
16
|
+
|
|
1
17
|
# 6.11.0
|
|
2
18
|
|
|
3
19
|
## 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 IR=function(){this.m=this.f=null;this.a="";this.g=new _.K("clpp.adobe.AdobePlugin")},LR=function(a){a.f=new _.Dh;a.f.on(a.m,_.mg,function(){return JR(a)});a.f.on(a.m,_.lg,function(){s.Media.play(a.a,a.m.getPosition())});a.f.on(a.m,_.Ee,function(){return KR(a)});a.f.on(a.m,_.Sf,function(b){b=b.detail;switch(b.currentState){case _.Ro:a.a.length||KR(a);s.Media.play(a.a,a.m.getPosition());break;case _.Qo:case _.Io:JR(a);break;case _.Ko:case _.Do:case _.Oo:a.g.info("Close session for "+a.a+" in player state "+
|
|
3
|
+
(b.currentState+".")),JR(a),s.Media.close(a.a),a.a=""}})},KR=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)},JR=function(a){s.Media.stop(a.a,a.m.getPosition())},MR=function(){};_.w(IR,_.ft);IR.prototype.onPlayerCreated=function(a){window.s&&s.Media?(this.m=a,LR(this)):this.g.warn("Adobe API not available.")};
|
|
4
|
+
IR.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.m=null;this.a=""};IR.prototype.id=function(){return"adobe"};_.H("clpp.adobe.AdobeAnalyticsPlugin",IR);IR.Id="adobe";MR.prototype.create=function(){return new IR};_.jq(new MR);};
|
|
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.
|
|
4
|
-
_.r.
|
|
2
|
+
var f=function(window){var GR=function(){var a=this;this.a=this.m=null;this.l=this.f=this.j=!1;this.o=new _.rk(function(){a.m.play()["catch"](function(){})});this.h=new _.Dh},HR=function(){};_.w(GR,_.ft);_.r=GR.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.il.bind(this)),this.h.on(this.a,"webkitcurrentplaybacktargetiswirelesschanged",this.Jl.bind(this)))};
|
|
3
|
+
_.r.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.r.id=function(){return"airplay"};_.r.il=function(a){switch(a.availability){case "available":this.f=!0;break;case "not-available":this.f=!1}this.m.trigger(new _.L(_.Qc,{canCast:this.f}))};_.r.Jl=function(){var a=(this.j=this.a.webkitCurrentPlaybackTargetIsWireless)?_.Pc:_.Oc;if(this.l||!this.m.isPaused()||this.m.getState()===_.Ro)this.l?this.m.play()["catch"](function(){}):this.o.aa(.01);this.m.trigger(new _.L(a))};_.r.ob=function(){return this.j};
|
|
4
|
+
_.r.Ve=function(){return this.f};_.r.rm=function(){this.f&&(this.l=!this.m.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.H("clpp.airplay.AirPlayPlugin",GR);GR.prototype.showCastMenu=GR.prototype.rm;GR.prototype.canCast=GR.prototype.Ve;GR.prototype.isCasting=GR.prototype.ob;GR.Id="airplay";HR.prototype.create=function(){return new GR};_.jq(new HR);};
|
|
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,10 +1,10 @@
|
|
|
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
|
-
b){var c=b.customParameters||{};a.a=a.
|
|
5
|
-
_.r.
|
|
6
|
-
_.r.U=function(a){a=a.detail;if(7003===a.code)
|
|
7
|
-
|
|
2
|
+
var f=function(window){var yR=function(a,b){this.m=a;this.f=b;this.a=new _.Dh;this.h=!1},zR=function(a){function b(c){var d=GenericPlayerApi.call(this)||this;d.m=c;d.a=_.Ej();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)},AR=function(){this.j=this.f=this.a=this.h=this.m=null;this.l=new _.Dh},BR=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===_.Vf&&a.h.setUUID(f))},CR=function(a,
|
|
4
|
+
b){var c=b.customParameters||{};a.a=a.h.createStreamingSession();for(var d in c)a.a.setCustomParameter(d,c[d]);a.l.on(a.m,_.me,a.U.bind(a));a.j=zR(a.m);a.a.attachPlayer(a.j)},DR=function(a,b){_.Gh(a.l);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},ER=function(){return!window.SmartLib||!window.GenericPlayerApi},FR=function(){};_.r=yR.prototype;_.r.init=function(){var a=this.m,b=this.a;b.on(a,_.Sf,this.zi.bind(this));b.on(a,_.gd,this.xi.bind(this));b.on(a,"seek",this.yi.bind(this))};
|
|
5
|
+
_.r.xi=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.r.zi=function(a){var b=this.m,c=this.f;a=a.detail;var d=a.currentState;a.previousState===_.Io&&c.notifyStallEnd(!b.isPaused());switch(d){case _.Io:c.notifyStallStart();break;case _.Ro:this.h?c.notifyResume():(c.notifyFirstImage(),this.h=!0);break;case _.Qo:c.notifyPause()}};_.r.yi=function(){var a=1E3*this.m.getPosition();this.f.notifySeek(a)};_.r.release=function(){this.a&&(_.Gh(this.a),this.a=null)};_.w(AR,_.ft);_.r=AR.prototype;_.r.onPlayerCreated=function(a){this.m=a};_.r.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(ER())return a.onError(new _.P(1,9,11E3));BR(this,d);CR(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}));DR(c,void 0)}else b.url=e.getURL(),c.f=new yR(c.m,c.j),c.f.init()})}};
|
|
6
|
+
_.r.U=function(a){a=a.detail;if(7003===a.code)DR(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.Q)switch(a.category){case 3:DR(this,SmartLib.BPDecodingError);break;case 1:DR(this,SmartLib.BPNetworkingError);break;case 6:DR(this,SmartLib.BPAccessRightError);break;default:DR(this,SmartLib.BPUnspecifiedError)}};_.r.onPlayerWillRelease=function(){ER()||DR(this,SmartLib.BPSessionEndsNormally)};_.r.id=function(){return"broadpeak"};_.H("clpp.broadpeak.BroadpeakPlugin",AR);
|
|
7
|
+
AR.isSdkMissing=ER;AR.Id="broadpeak";FR.prototype.create=function(){return new AR};_.jq(new FR);};
|
|
8
8
|
if(typeof(module)!="undefined"&&module.exports){var x=require("./cl.core.js");_ = x._;(f.call(g,this));module.exports=g;}
|
|
9
9
|
else if (typeof(define)!="undefined"&&define.amd) {define(["./cl.core"], function(c){_=c._;(f.call(g,this));return g;});}
|
|
10
10
|
else{_=this.clpp._;(f.call(g,this));}
|