@castlabs/prestoplay 6.28.0 → 6.30.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 +37 -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 +128 -116
- package/cjs/cl.conviva.js +32 -32
- package/cjs/cl.core.js +619 -614
- package/cjs/cl.crypto.js +9 -9
- package/cjs/cl.dash.js +92 -89
- package/cjs/cl.externs.js +154 -60
- package/cjs/cl.freewheel.js +25 -25
- package/cjs/cl.hls.js +77 -77
- package/cjs/cl.hlssmpte.js +6 -6
- package/cjs/cl.htmlcue.js +30 -30
- package/cjs/cl.ima.js +25 -23
- package/cjs/cl.mediatailor.js +3 -3
- package/cjs/cl.mse.js +350 -349
- package/cjs/cl.muxdata.js +14 -14
- package/cjs/cl.onboard.js +4 -4
- package/cjs/cl.persistent.js +15 -15
- package/cjs/cl.playlist.js +6 -6
- package/cjs/cl.simid.js +16 -16
- package/cjs/cl.smooth.js +57 -58
- package/cjs/cl.thumbnails.js +26 -26
- package/cjs/cl.tizen.js +60 -60
- 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 +2 -2
- package/cl.adobe.js +3 -3
- package/cl.airplay.js +3 -3
- package/cl.broadpeak.js +6 -6
- package/cl.cast.js +101 -92
- package/cl.conviva.js +27 -27
- package/cl.core.js +500 -496
- package/cl.crypto.js +9 -9
- package/cl.dash.js +84 -83
- package/cl.externs.js +150 -60
- package/cl.freewheel.js +19 -19
- package/cl.hls.js +82 -80
- package/cl.hlssmpte.js +5 -5
- package/cl.htmlcue.js +26 -26
- package/cl.ima.js +19 -17
- package/cl.mediatailor.js +2 -2
- package/cl.mse.js +304 -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 +56 -56
- package/cl.ttml.js +22 -22
- package/cl.verimatrix.js +4 -4
- package/cl.vimond.js +8 -8
- package/cl.vr.js +14 -14
- package/cl.vtt.js +12 -12
- package/cl.yospace.js +3 -3
- package/cl.youbora.js +31 -31
- package/package.json +1 -1
- package/typings.d.ts +198 -88
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
# 6.30.0
|
|
2
|
+
|
|
3
|
+
## New Features
|
|
4
|
+
|
|
5
|
+
* Trigger `clpp.events.CAST_VISIBILITY_CHANGED` event on Chromecast sender when
|
|
6
|
+
Chromecast Receiver App transitions to background or foreground on Google TV Streamer.
|
|
7
|
+
|
|
8
|
+
## Changes
|
|
9
|
+
|
|
10
|
+
* Fix `disableCustomPlayback` configuration option of IMA SDK Plugin on webOS devices which can be used to disable the plugin.
|
|
11
|
+
* Fix support for VAST in IMA SDK plugin on SmartTV Devices.
|
|
12
|
+
* Add `isVast` configuration option of IMA SDK Plugin for custom playback with single video element when using VAST ads.
|
|
13
|
+
This option needs to be set to `true` in order for VAST to work on Smart TVs.
|
|
14
|
+
See https://demo.castlabs.com/docs/advertising#ima-sdk-on-smart-tvs
|
|
15
|
+
* Fix sending of custom messages from Chromecast receiver to sender.
|
|
16
|
+
* If you send an object `clpp.cast.CastProxy#addMessageListener(listener)`
|
|
17
|
+
listener now receives the object instead of a serialized string version of it
|
|
18
|
+
as it did previously.
|
|
19
|
+
* Fix ads API on Chromecast sender for ad playback on receiver. Specifically fix
|
|
20
|
+
methods to pause and resume ad playback via `player.getAdsManager().pause()`
|
|
21
|
+
and `player.getAdsManager().resume()` on sender.
|
|
22
|
+
|
|
23
|
+
# 6.29.0
|
|
24
|
+
|
|
25
|
+
## New Features
|
|
26
|
+
|
|
27
|
+
* Add `clpp.cast.playlist.CastPlaylist`. Use this class to create and manage playlists in Cast.
|
|
28
|
+
See https://demo.castlabs.com/docs/cast#cast-playlist for more information.
|
|
29
|
+
|
|
30
|
+
## Changes
|
|
31
|
+
|
|
32
|
+
* Fix HLS EXT-X-DATERANGE parsing when multiple tags have the same ID.
|
|
33
|
+
Omitting already defined attributes is now allowed.
|
|
34
|
+
* Fix IMA SDK Plugin mid-roll behavior on Tizen Smart TV devices.
|
|
35
|
+
* Expose Google Cast `audioTrackInfo` and `roles` on `Track`'s `customData` property.
|
|
36
|
+
* Add support for multiple HLS interstitials with the same start date.
|
|
37
|
+
|
|
1
38
|
# 6.28.0
|
|
2
39
|
|
|
3
40
|
## **Warning**
|
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 IX=function(){this.m=this.f=null;this.a="";this.g=new _.L("clpp.adobe.AdobePlugin")},LX=function(a){a.f=new _.wi;a.f.on(a.m,_.Ng,function(){return JX(a)});a.f.on(a.m,_.Mg,function(){s.Media.play(a.a,a.m.getPosition())});a.f.on(a.m,_.Me,function(){return KX(a)});a.f.on(a.m,_.ig,function(b){b=b.detail;switch(b.currentState){case 3:a.a.length||KX(a);s.Media.play(a.a,a.m.getPosition());break;case 4:case 2:JX(a);break;case 5:case _.eu:case _.Co:a.g.info("Close session for "+a.a+" in player state "+
|
|
3
|
+
(b.currentState+".")),JX(a),s.Media.close(a.a),a.a=""}})},KX=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(),_.ya)},JX=function(a){s.Media.stop(a.a,a.m.getPosition())},MX=function(){};_.w(IX,_.Zv);IX.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,LX(this)):this.g.warn("Adobe API not available.")};
|
|
4
|
+
IX.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.m=null;this.a=""};IX.prototype.id=function(){return"adobe"};_.K("clpp.adobe.AdobeAnalyticsPlugin",IX);IX.Id="adobe";MX.prototype.create=function(){return new IX};_.bp(new MX);};
|
|
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 GX=function(){var a=this;this.a=this.m=null;this.l=this.f=this.j=!1;this.o=new _.ej(function(){a.m.play()["catch"](function(){})});this.h=new _.wi},HX=function(){};_.w(GX,_.Zv);_.r=GX.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.wn.bind(this)),this.h.on(this.a,"webkitcurrentplaybacktargetiswirelesschanged",this.bo.bind(this)))};
|
|
3
|
+
_.r.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.r.id=function(){return"airplay"};_.r.wn=function(a){switch(a.availability){case "available":this.f=!0;break;case "not-available":this.f=!1}this.m.trigger(new _.Q(_.Ic,{canCast:this.f}))};_.r.bo=function(){var a=(this.j=this.a.webkitCurrentPlaybackTargetIsWireless)?_.Hc:_.Gc;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.Da=function(){return this.j};
|
|
4
|
+
_.r.kd=function(){return this.f};_.r.Qo=function(){this.f&&(this.l=!this.m.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.K("clpp.airplay.AirPlayPlugin",GX);GX.prototype.showCastMenu=GX.prototype.Qo;GX.prototype.canCast=GX.prototype.kd;GX.prototype.isCasting=GX.prototype.Da;GX.Id="airplay";HX.prototype.create=function(){return new GX};_.bp(new HX);};
|
|
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
|
-
_.K("clpp.broadpeak.BroadpeakPlugin",
|
|
2
|
+
var f=function(window){var yX=function(a,b){this.m=a;this.f=b;this.a=new _.wi;this.h=!1},zX=function(a){function b(c){var d=GenericPlayerApi.call(this)||this;d.m=c;d.a=_.Mj();return d}_.w(b,GenericPlayerApi);b.prototype.getPlayerName=function(){return _.ya};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)},AX=function(){this.l=this.f=this.a=this.h=this.m=null;this.o=new _.wi;this.j=!1},BX=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===_.lg&&a.h.setUUID(f))},CX=
|
|
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,_.qe,a.xk.bind(a));a.l=zX(a.m);a.a.attachPlayer(a.l)},DX=function(a,b){_.zi(a.o);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},EX=function(){return!window.SmartLib||!window.GenericPlayerApi},FX=function(){};_.r=yX.prototype;
|
|
5
|
+
_.r.init=function(){var a=this.m,b=this.a;b.on(a,_.ig,this.Ak.bind(this));b.on(a,_.ad,this.yk.bind(this));b.on(a,"seek",this.zk.bind(this))};_.r.yk=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.r.Ak=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.zk=function(){var a=1E3*this.m.getPosition();this.f.notifySeek(a)};_.r.release=function(){this.a&&(_.zi(this.a),this.a=null)};_.w(AX,_.Zv);_.r=AX.prototype;_.r.onPlayerCreated=function(a){this.m=a};_.r.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(EX())return a.onError(new _.O(1,9,11E3));this.j=!0;BX(this,d);CX(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 _.O(1,9,11001,{bpkErrorCode:f,message:e}));DX(c,void 0)}else b.url=e.getURL(),c.f=new yX(c.m,c.l),c.f.init()})}};
|
|
7
|
+
_.r.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.r.xk=function(a){a=a.detail;if(7003===a.code)DX(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.P)switch(a.category){case 3:DX(this,SmartLib.BPDecodingError);break;case 1:DX(this,SmartLib.BPNetworkingError);break;case 6:DX(this,SmartLib.BPAccessRightError);break;default:DX(this,SmartLib.BPUnspecifiedError)}};_.r.onPlayerWillRelease=function(){EX()||DX(this,SmartLib.BPSessionEndsNormally);this.j=!1};_.r.id=function(){return"broadpeak"};
|
|
8
|
+
_.K("clpp.broadpeak.BroadpeakPlugin",AX);AX.isSdkMissing=EX;AX.Id="broadpeak";FX.prototype.create=function(){return new AX};_.bp(new FX);};
|
|
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));}
|