@castlabs/prestoplay 6.21.1-beta.2 → 6.21.1-beta.3
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 +4 -2
- 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 +108 -108
- package/cjs/cl.conviva.js +33 -33
- package/cjs/cl.core.js +570 -567
- package/cjs/cl.crypto.js +8 -8
- package/cjs/cl.dash.js +78 -78
- package/cjs/cl.externs.js +26 -0
- 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 +22 -22
- package/cjs/cl.mse.js +309 -309
- 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.sessions.js +16 -16
- 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 +68 -68
- package/cjs/cl.ttml.js +29 -29
- 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.yospace.js +4 -4
- package/cjs/cl.youbora.js +35 -35
- 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 +463 -463
- package/cl.crypto.js +6 -6
- package/cl.dash.js +73 -73
- package/cl.externs.js +26 -0
- package/cl.freewheel.js +19 -19
- package/cl.hls.js +74 -74
- package/cl.hlssmpte.js +5 -5
- package/cl.htmlcue.js +26 -26
- package/cl.ima.js +16 -16
- package/cl.mse.js +277 -277
- 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.sessions.js +10 -10
- 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 +14 -14
- package/cl.vtt.js +12 -12
- package/cl.yospace.js +3 -3
- package/cl.youbora.js +26 -26
- package/package.json +1 -1
- package/typings.d.ts +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,11 +3,15 @@
|
|
|
3
3
|
## New Features
|
|
4
4
|
|
|
5
5
|
* Add `streamType` option to the Yospace plugin.
|
|
6
|
+
* Emit SVTA signalling metadata for HLS interstitial ads.
|
|
6
7
|
|
|
7
8
|
## Changes
|
|
8
9
|
|
|
9
10
|
* Fix an issue with HLS interstitials with `X-ASSET-URI` and
|
|
10
11
|
undefined `X-RESUME-OFFSET`.
|
|
12
|
+
* Make sure the IMA plugin does not play postroll ads of the previous source
|
|
13
|
+
when a new sources is loaded or after the player is released or destroyed.
|
|
14
|
+
* Fix support for `CUE=PRE` and `CUE=POST` in HLS interstitials.
|
|
11
15
|
|
|
12
16
|
# 6.21.0
|
|
13
17
|
|
|
@@ -63,8 +67,6 @@ Changes in this release might be breaking for some very specific use cases:
|
|
|
63
67
|
|
|
64
68
|
## Changes
|
|
65
69
|
|
|
66
|
-
* Make sure the IMA plugin does not play postroll ads of the previous source
|
|
67
|
-
when a new sources is loaded or after the player is released or destroyed.
|
|
68
70
|
* Recognize MP3 file extension.
|
|
69
71
|
* Fix the payload of ad events emitted for HLS interstitial ads.
|
|
70
72
|
* Fix audio and subtitle track selection when casting to Chromecast devices.
|
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 tX=function(){this.m=this.f=null;this.a="";this.g=new _.K("clpp.adobe.AdobePlugin")},wX=function(a){a.f=new _.Uh;a.f.on(a.m,_.zg,function(){return uX(a)});a.f.on(a.m,_.yg,function(){s.Media.play(a.a,a.m.getPosition())});a.f.on(a.m,_.Ie,function(){return vX(a)});a.f.on(a.m,_.eg,function(b){b=b.detail;switch(b.currentState){case _.Wp:a.a.length||vX(a);s.Media.play(a.a,a.m.getPosition());break;case _.Vp:case _.Np:uX(a);break;case _.Pp:case _.Ip:case _.Tp:a.g.info("Close session for "+a.a+" in player state "+
|
|
3
|
+
(b.currentState+".")),uX(a),s.Media.close(a.a),a.a=""}})},vX=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(),_.va)},uX=function(a){s.Media.stop(a.a,a.m.getPosition())},xX=function(){};_.x(tX,_.uv);tX.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,wX(this)):this.g.warn("Adobe API not available.")};
|
|
4
|
+
tX.prototype.onPlayerWillDestroy=function(){this.f&&(this.f.release(),this.f=null);this.m=null;this.a=""};tX.prototype.id=function(){return"adobe"};_.J("clpp.adobe.AdobeAnalyticsPlugin",tX);tX.Id="adobe";xX.prototype.create=function(){return new tX};_.Us(new xX);};
|
|
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
|
-
_.u.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.u.id=function(){return"airplay"};_.u.
|
|
4
|
-
_.u.
|
|
2
|
+
var f=function(window){var rX=function(){var a=this;this.a=this.m=null;this.l=this.f=this.j=!1;this.o=new _.pl(function(){a.m.play()["catch"](function(){})});this.h=new _.Uh},sX=function(){};_.x(rX,_.uv);_.u=rX.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.km.bind(this)),this.h.on(this.a,"webkitcurrentplaybacktargetiswirelesschanged",this.Nm.bind(this)))};
|
|
3
|
+
_.u.onPlayerWillRelease=function(){this.o.stop();this.h.release()};_.u.id=function(){return"airplay"};_.u.km=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.Nm=function(){var a=(this.j=this.a.webkitCurrentPlaybackTargetIsWireless)?_.Rc:_.Qc;if(this.l||!this.m.isPaused()||this.m.getState()===_.Wp)this.l?this.m.play()["catch"](function(){}):this.o.fa(.01);this.m.trigger(new _.L(a))};_.u.Hb=function(){return this.j};
|
|
4
|
+
_.u.vf=function(){return this.f};_.u.Dn=function(){this.f&&(this.l=!this.m.isPaused(),this.a.webkitShowPlaybackTargetPicker())};_.J("clpp.airplay.AirPlayPlugin",rX);rX.prototype.showCastMenu=rX.prototype.Dn;rX.prototype.canCast=rX.prototype.vf;rX.prototype.isCasting=rX.prototype.Hb;rX.Id="airplay";sX.prototype.create=function(){return new rX};_.Us(new sX);};
|
|
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
|
-
_.u.init=function(){var a=this.m,b=this.a;b.on(a,_.
|
|
6
|
-
_.u.
|
|
7
|
-
_.u.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.u.S=function(a){a=a.detail;if(7003===a.code)
|
|
8
|
-
_.J("clpp.broadpeak.BroadpeakPlugin",
|
|
2
|
+
var f=function(window){var jX=function(a,b){this.m=a;this.f=b;this.a=new _.Uh;this.h=!1},kX=function(a){function b(c){var d=GenericPlayerApi.call(this)||this;d.m=c;d.a=_.sk();return d}_.x(b,GenericPlayerApi);b.prototype.getPlayerName=function(){return _.va};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)},lX=function(){this.l=this.f=this.a=this.h=this.m=null;this.o=new _.Uh;this.j=!1},mX=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===_.hg&&a.h.setUUID(f))},nX=
|
|
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,_.pe,a.S.bind(a));a.l=kX(a.m);a.a.attachPlayer(a.l)},oX=function(a,b){_.Xh(a.o);a.f&&(a.f.release(),a.f=null);a.a&&(a.a.stopStreamingSession(b),a.a=null)},pX=function(){return!window.SmartLib||!window.GenericPlayerApi},qX=function(){};_.u=jX.prototype;
|
|
5
|
+
_.u.init=function(){var a=this.m,b=this.a;b.on(a,_.eg,this.yj.bind(this));b.on(a,_.jd,this.wj.bind(this));b.on(a,"seek",this.xj.bind(this))};_.u.wj=function(a){a=a.detail;typeof a.bandwidth===_.k&&this.f.notifyLayerSwitch(a.bandwidth/1E3)};_.u.yj=function(a){var b=this.m,c=this.f;a=a.detail;var d=a.currentState;a.previousState===_.Np&&c.notifyStallEnd(!b.isPaused());switch(d){case _.Np:c.notifyStallStart();break;case _.Wp:this.h?c.notifyResume():(c.notifyFirstImage(),this.h=!0);break;case _.Vp:c.notifyPause()}};
|
|
6
|
+
_.u.xj=function(){var a=1E3*this.m.getPosition();this.f.notifySeek(a)};_.u.release=function(){this.a&&(_.Xh(this.a),this.a=null)};_.x(lX,_.uv);_.u=lX.prototype;_.u.onPlayerCreated=function(a){this.m=a};_.u.onContentWillLoad=function(a,b){var c=this,d=a.getConfiguration().broadpeak;if(d){if(pX())return a.onError(new _.N(1,9,11E3));this.j=!0;mX(this,d);nX(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}));oX(c,void 0)}else b.url=e.getURL(),c.f=new jX(c.m,c.l),c.f.init()})}};
|
|
7
|
+
_.u.onContentLoaded=function(){!1!==this.j&&this.a.precacheEnded()};_.u.S=function(a){a=a.detail;if(7003===a.code)oX(this,SmartLib.BPFormatNotSupportedError);else if(a.severity===_.P)switch(a.category){case 3:oX(this,SmartLib.BPDecodingError);break;case 1:oX(this,SmartLib.BPNetworkingError);break;case 6:oX(this,SmartLib.BPAccessRightError);break;default:oX(this,SmartLib.BPUnspecifiedError)}};_.u.onPlayerWillRelease=function(){pX()||oX(this,SmartLib.BPSessionEndsNormally);this.j=!1};_.u.id=function(){return"broadpeak"};
|
|
8
|
+
_.J("clpp.broadpeak.BroadpeakPlugin",lX);lX.isSdkMissing=pX;lX.Id="broadpeak";qX.prototype.create=function(){return new lX};_.Us(new qX);};
|
|
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));}
|