@castlabs/prestoplay 6.8.0 → 6.9.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 +27 -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 +109 -109
- package/cjs/cl.conviva.js +33 -33
- package/cjs/cl.core.js +407 -407
- package/cjs/cl.crypto.js +8 -8
- package/cjs/cl.dash.js +72 -72
- package/cjs/cl.externs.js +25 -25
- package/cjs/cl.freewheel.js +24 -24
- package/cjs/cl.hls.js +72 -67
- package/cjs/cl.hlssmpte.js +6 -6
- package/cjs/cl.htmlcue.js +31 -31
- package/cjs/cl.ima.js +23 -23
- package/cjs/cl.mse.js +272 -272
- package/cjs/cl.muxdata.js +15 -15
- package/cjs/cl.onboard.js +3 -3
- package/cjs/cl.persistent.js +13 -13
- package/cjs/cl.playlist.js +6 -6
- 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 +27 -27
- 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 +19 -19
- package/cl.adobe.js +3 -3
- package/cl.airplay.js +3 -3
- package/cl.broadpeak.js +5 -5
- package/cl.cast.js +88 -88
- package/cl.conviva.js +26 -26
- package/cl.core.js +259 -259
- package/cl.crypto.js +8 -8
- package/cl.dash.js +67 -67
- package/cl.externs.js +25 -25
- package/cl.freewheel.js +19 -19
- package/cl.hls.js +61 -58
- package/cl.hlssmpte.js +5 -5
- package/cl.htmlcue.js +25 -25
- package/cl.ima.js +17 -17
- package/cl.mse.js +199 -199
- package/cl.muxdata.js +11 -11
- package/cl.onboard.js +4 -4
- package/cl.persistent.js +9 -9
- package/cl.playlist.js +5 -5
- package/cl.smooth.js +58 -58
- package/cl.thumbnails.js +16 -16
- package/cl.tizen.js +57 -57
- package/cl.ttml.js +22 -22
- package/cl.verimatrix.js +4 -4
- package/cl.vimond.js +7 -7
- package/cl.vr.js +14 -14
- package/cl.vtt.js +12 -12
- package/cl.youbora.js +14 -14
- package/package.json +1 -1
- package/typings.d.ts +27 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
# 6.9.0
|
|
2
|
+
|
|
3
|
+
## New Features
|
|
4
|
+
|
|
5
|
+
* Add config option `streaming.ignoreManagedMediaSourceStreamingHints` to ignore
|
|
6
|
+
hints generated by Managed Media Source (MMS) `startstreaming` and
|
|
7
|
+
`endstreaming` events. Default `false` optimizes for both performance and
|
|
8
|
+
resource management, particularly in varied network conditions and on
|
|
9
|
+
constrained devices, where managing power consumption and network efficiency
|
|
10
|
+
is crucial. Use with caution as enabling this option could lead to increased
|
|
11
|
+
power usage, making the default disabled setting a safer choice for general
|
|
12
|
+
use cases.
|
|
13
|
+
|
|
14
|
+
## Changes
|
|
15
|
+
|
|
16
|
+
* HLS fixes:
|
|
17
|
+
* Fix support for URIs with missing file extensions in discontinuous HLS.
|
|
18
|
+
* Fix sporadic crashes in discontinuous live streams which contain
|
|
19
|
+
thumbnails or subtitles.
|
|
20
|
+
* Fix playback of MP4 streams with large baseMediaDecodeTime values.
|
|
21
|
+
* Additional Meta-Data such as accessibility information are no longer
|
|
22
|
+
fetched by default with the Safari Native Player implementation. This
|
|
23
|
+
behavior can be re-enabled by setting `enableMetadata` to `true` in the
|
|
24
|
+
[Safari Configuration](https://demo.castlabs.com/#/docs?q=clpp#SafariConfiguration).
|
|
25
|
+
* Fixed issue with Safaris native track selection where the player would
|
|
26
|
+
sometimes mark the wrong track as selected.
|
|
27
|
+
|
|
1
28
|
# 6.8.0
|
|
2
29
|
|
|
3
30
|
## 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 oO=function(){this.l=this.f=null;this.a="";this.h=new _.I("clpp.adobe.AdobePlugin")},rO=function(a){a.f=new _.dg;a.f.on(a.l,_.Le,function(){return pO(a)});a.f.on(a.l,_.Ke,function(){s.Media.play(a.a,a.l.getPosition())});a.f.on(a.l,_.vd,function(){return qO(a)});a.f.on(a.l,_.pe,function(b){b=b.detail;switch(b.currentState){case _.Xm:a.a.length||qO(a);s.Media.play(a.a,a.l.getPosition());break;case _.Wm:case _.Om:pO(a);break;case _.Qm:case _.Em:case _.Um:a.h.info("Close session for "+a.a+" in player state "+
|
|
3
|
+
(b.currentState+".")),pO(a),s.Media.close(a.a),a.a=""}})},qO=function(a){var b=a.l.getLoadedSource();a.a=b?b.name||b.url:"";a.h.info("Open session for "+a.a+" with duration "+a.l.getDuration());s.Media.open(a.a,a.l.getDuration(),_.oa)},pO=function(a){s.Media.stop(a.a,a.l.getPosition())},sO=function(){};_.w(oO,_.$p);oO.prototype.onPlayerCreated=function(a){window.s&&s.Media?(this.l=a,rO(this)):this.h.warn("Adobe API not available.")};
|
|
4
|
+
oO.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.l=null;this.a=""};oO.prototype.id=function(){return"adobe"};_.C("clpp.adobe.AdobeAnalyticsPlugin",oO);oO.Id="adobe";sO.prototype.create=function(){return new oO};_.qo(new sO);};
|
|
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
|
-
_.t.onPlayerWillRelease=function(){this.o.stop();this.g.release()};_.t.id=function(){return"airplay"};_.t
|
|
4
|
-
_.t.
|
|
2
|
+
var f=function(window){var mO=function(){var a=this;this.a=this.l=null;this.m=this.f=this.j=!1;this.o=new _.Ui(function(){a.l.play()["catch"](function(){})});this.g=new _.dg},nO=function(){};_.w(mO,_.$p);_.t=mO.prototype;_.t.onPlayerCreated=function(a){this.l=a;this.a=a.getSurface().getMedia()};_.t.onContentWillLoad=function(){this.a&&(this.g.on(this.a,"webkitplaybacktargetavailabilitychanged",this.hk.bind(this)),this.g.on(this.a,"webkitcurrentplaybacktargetiswirelesschanged",this.Jk.bind(this)))};
|
|
3
|
+
_.t.onPlayerWillRelease=function(){this.o.stop();this.g.release()};_.t.id=function(){return"airplay"};_.t.hk=function(a){switch(a.availability){case "available":this.f=!0;break;case "not-available":this.f=!1}this.l.trigger(new _.J(_.$b,{canCast:this.f}))};_.t.Jk=function(){var a=(this.j=this.a.webkitCurrentPlaybackTargetIsWireless)?_.Yb:_.Xb;if(this.m||!this.l.isPaused()||this.l.getState()===_.Xm)this.m?this.l.play()["catch"](function(){}):this.o.aa(.01);this.l.trigger(new _.J(a))};_.t.mb=function(){return this.j};
|
|
4
|
+
_.t.te=function(){return this.f};_.t.il=function(){this.f&&(this.m=!this.l.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.C("clpp.airplay.AirPlayPlugin",mO);mO.prototype.showCastMenu=mO.prototype.il;mO.prototype.canCast=mO.prototype.te;mO.prototype.isCasting=mO.prototype.mb;mO.Id="airplay";nO.prototype.create=function(){return new mO};_.qo(new nO);};
|
|
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.l.getDuration()};b.prototype.getCurrentPosition=function(){return 1E3*this.l.getPosition()};b.prototype.getCurrentBitrate=function(){var c=this.l.getStats();return(c?c.streamBandwidth:0)/1E3};return new b(a)},
|
|
4
|
-
b){var c=b.customParameters||{};a.a=a.g.createStreamingSession();for(var d in c)a.a.setCustomParameter(d,c[d]);a.m.on(a.l,_.
|
|
5
|
-
_.t.
|
|
6
|
-
_.t.
|
|
7
|
-
|
|
2
|
+
var f=function(window){var eO=function(a,b){this.l=a;this.f=b;this.a=new _.dg;this.g=!1},fO=function(a){function b(c){var d=GenericPlayerApi.call(this)||this;d.l=c;d.a=_.ki();return d}_.w(b,GenericPlayerApi);b.prototype.getPlayerName=function(){return _.oa};b.prototype.getVersion=function(){return _.ea};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.l.isLive()?
|
|
3
|
+
0:1E3*this.l.getDuration()};b.prototype.getCurrentPosition=function(){return 1E3*this.l.getPosition()};b.prototype.getCurrentBitrate=function(){var c=this.l.getStats();return(c?c.streamBandwidth:0)/1E3};return new b(a)},gO=function(){this.j=this.f=this.a=this.g=this.l=null;this.m=new _.dg},hO=function(a,b){var c=b.analyticsAddress||null,d=b.nanoCDNHost||null,e=b.broadpeakDomainNames||"",f=b.uuid||null;a.g||(a.g=SmartLib.getInstance(),a.g.init(c,d,e),typeof f===_.te&&a.g.setUUID(f))},iO=function(a,
|
|
4
|
+
b){var c=b.customParameters||{};a.a=a.g.createStreamingSession();for(var d in c)a.a.setCustomParameter(d,c[d]);a.m.on(a.l,_.hd,a.U.bind(a));a.j=fO(a.l);a.a.attachPlayer(a.j)},jO=function(a,b){_.gg(a.m);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},kO=function(){return!window.SmartLib||!window.GenericPlayerApi},lO=function(){};_.t=eO.prototype;_.t.init=function(){var a=this.l,b=this.a;b.on(a,_.pe,this.Eh.bind(this));b.on(a,_.rc,this.Ch.bind(this));b.on(a,"seek",this.Dh.bind(this))};
|
|
5
|
+
_.t.Ch=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.t.Eh=function(a){var b=this.l,c=this.f;a=a.detail;var d=a.currentState;a.previousState===_.Om&&c.notifyStallEnd(!b.isPaused());switch(d){case _.Om:c.notifyStallStart();break;case _.Xm:this.g?c.notifyResume():(c.notifyFirstImage(),this.g=!0);break;case _.Wm:c.notifyPause()}};_.t.Dh=function(){var a=1E3*this.l.getPosition();this.f.notifySeek(a)};_.t.release=function(){this.a&&(_.gg(this.a),this.a=null)};_.w(gO,_.$p);_.t=gO.prototype;_.t.onPlayerCreated=function(a){this.l=a};_.t.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(kO())return a.onError(new _.L(1,9,11E3));hO(this,d);iO(this,d);return this.a.getURL(b.url).then(function(e){if(e.isError()){var f=e.getDetailedErrorCode();e=e.getDetailedErrorMessage();c.l.onError(new _.L(1,9,11001,{bpkErrorCode:f,message:e}));jO(c,void 0)}else b.url=e.getURL(),c.f=new eO(c.l,c.j),c.f.init()})}};
|
|
6
|
+
_.t.U=function(a){a=a.detail;if(7003===a.code)jO(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.M)switch(a.category){case 3:jO(this,SmartLib.BPDecodingError);break;case 1:jO(this,SmartLib.BPNetworkingError);break;case 6:jO(this,SmartLib.BPAccessRightError);break;default:jO(this,SmartLib.BPUnspecifiedError)}};_.t.onPlayerWillRelease=function(){kO()||jO(this,SmartLib.BPSessionEndsNormally)};_.t.id=function(){return"broadpeak"};_.C("clpp.broadpeak.BroadpeakPlugin",gO);
|
|
7
|
+
gO.isSdkMissing=kO;gO.Id="broadpeak";lO.prototype.create=function(){return new gO};_.qo(new lO);};
|
|
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));}
|