@joeyparrish/shaka-player-staging 4.99.2 → 4.99.4
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/dist/locales.js +55 -55
- package/dist/shaka-player.compiled.debug.js +1 -1
- package/dist/shaka-player.compiled.js +4 -4
- package/dist/shaka-player.dash.debug.js +1 -1
- package/dist/shaka-player.dash.js +1 -1
- package/dist/shaka-player.experimental.debug.js +5 -5
- package/dist/shaka-player.experimental.debug.map +2 -2
- package/dist/shaka-player.experimental.js +4 -4
- package/dist/shaka-player.experimental.map +1 -1
- package/dist/shaka-player.hls.debug.js +1 -1
- package/dist/shaka-player.hls.js +1 -1
- package/dist/shaka-player.ui.debug.js +5 -5
- package/dist/shaka-player.ui.debug.map +2 -2
- package/dist/shaka-player.ui.js +4 -4
- package/dist/shaka-player.ui.map +1 -1
- package/lib/player.js +1 -1
- package/package.json +1 -1
package/dist/locales.js
CHANGED
|
@@ -1025,72 +1025,72 @@ shaka.ui.Locales.addTo = function(localization) {
|
|
|
1025
1025
|
* @const
|
|
1026
1026
|
*/
|
|
1027
1027
|
shaka.ui.Locales.Ids = {
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1028
|
+
RECENTER_VR: 'RECENTER_VR',
|
|
1029
|
+
AD_STATISTICS: 'AD_STATISTICS',
|
|
1030
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
1031
|
+
REWIND: 'REWIND',
|
|
1032
|
+
SURROUND: 'SURROUND',
|
|
1033
|
+
VOLUME: 'VOLUME',
|
|
1034
|
+
LANGUAGE: 'LANGUAGE',
|
|
1035
|
+
BOTTOM_RIGHT: 'BOTTOM_RIGHT',
|
|
1034
1036
|
SKIP_PREVIOUS: 'SKIP_PREVIOUS',
|
|
1037
|
+
LOOP: 'LOOP',
|
|
1038
|
+
ORIGINAL_VERSION: 'ORIGINAL_VERSION',
|
|
1039
|
+
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
1040
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
1041
|
+
SKIP_NEXT: 'SKIP_NEXT',
|
|
1035
1042
|
AD_PROGRESS: 'AD_PROGRESS',
|
|
1043
|
+
CAPTIONS: 'CAPTIONS',
|
|
1044
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
1045
|
+
CENTER: 'CENTER',
|
|
1046
|
+
UNMUTE: 'UNMUTE',
|
|
1036
1047
|
SUBTITLE_SIZE: 'SUBTITLE_SIZE',
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
SURROUND: 'SURROUND',
|
|
1040
|
-
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
1048
|
+
BACK: 'BACK',
|
|
1049
|
+
AIRPLAY: 'AIRPLAY',
|
|
1041
1050
|
SUBTITLE_POSITION: 'SUBTITLE_POSITION',
|
|
1051
|
+
COPY_VIDEO_FRAME: 'COPY_VIDEO_FRAME',
|
|
1052
|
+
VIDEO_TYPE: 'VIDEO_TYPE',
|
|
1053
|
+
BOTTOM_CENTER: 'BOTTOM_CENTER',
|
|
1054
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
1055
|
+
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
1056
|
+
TOP_CENTER: 'TOP_CENTER',
|
|
1057
|
+
CENTER_LEFT: 'CENTER_LEFT',
|
|
1058
|
+
RESOLUTION: 'RESOLUTION',
|
|
1059
|
+
CAST: 'CAST',
|
|
1060
|
+
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
1061
|
+
DEFAULT: 'DEFAULT',
|
|
1062
|
+
PLAY: 'PLAY',
|
|
1063
|
+
AD_DURATION: 'AD_DURATION',
|
|
1064
|
+
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
1065
|
+
BOTTOM_LEFT: 'BOTTOM_LEFT',
|
|
1066
|
+
REPLAY: 'REPLAY',
|
|
1067
|
+
SKIP_AD: 'SKIP_AD',
|
|
1068
|
+
TOP_LEFT: 'TOP_LEFT',
|
|
1069
|
+
OFF: 'OFF',
|
|
1070
|
+
CHAPTERS: 'CHAPTERS',
|
|
1071
|
+
SEEK: 'SEEK',
|
|
1072
|
+
AUDIO_DESCRIPTION: 'AUDIO_DESCRIPTION',
|
|
1073
|
+
VIDEO_MAIN: 'VIDEO_MAIN',
|
|
1042
1074
|
MUTE: 'MUTE',
|
|
1043
|
-
|
|
1044
|
-
CAPTIONS: 'CAPTIONS',
|
|
1045
|
-
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
1075
|
+
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
1046
1076
|
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
1047
1077
|
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
1048
|
-
|
|
1049
|
-
FAST_FORWARD: 'FAST_FORWARD',
|
|
1050
|
-
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
1051
|
-
FULL_SCREEN: 'FULL_SCREEN',
|
|
1078
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
1052
1079
|
QUALITY: 'QUALITY',
|
|
1053
|
-
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
1054
|
-
AUDIO_DESCRIPTION: 'AUDIO_DESCRIPTION',
|
|
1055
|
-
CENTER_RIGHT: 'CENTER_RIGHT',
|
|
1056
|
-
DEFAULT: 'DEFAULT',
|
|
1057
|
-
VIDEO_TYPE: 'VIDEO_TYPE',
|
|
1058
|
-
ORIGINAL_VERSION: 'ORIGINAL_VERSION',
|
|
1059
1080
|
AUTO_GENERATED: 'AUTO_GENERATED',
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
BACK: 'BACK',
|
|
1064
|
-
LOOP: 'LOOP',
|
|
1081
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
1082
|
+
FULL_SCREEN: 'FULL_SCREEN',
|
|
1083
|
+
LIVE: 'LIVE',
|
|
1065
1084
|
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
1085
|
+
CENTER_RIGHT: 'CENTER_RIGHT',
|
|
1086
|
+
VIDEO_SIGN: 'VIDEO_SIGN',
|
|
1087
|
+
ON: 'ON',
|
|
1066
1088
|
PAUSE: 'PAUSE',
|
|
1067
|
-
BOTTOM_RIGHT: 'BOTTOM_RIGHT',
|
|
1068
|
-
AIRPLAY: 'AIRPLAY',
|
|
1069
|
-
AD_TIME: 'AD_TIME',
|
|
1070
|
-
CENTER_LEFT: 'CENTER_LEFT',
|
|
1071
1089
|
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
BOTTOM_CENTER: 'BOTTOM_CENTER',
|
|
1075
|
-
COPY_VIDEO_FRAME: 'COPY_VIDEO_FRAME',
|
|
1076
|
-
SKIP_NEXT: 'SKIP_NEXT',
|
|
1077
|
-
RECENTER_VR: 'RECENTER_VR',
|
|
1078
|
-
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
1079
|
-
CAST: 'CAST',
|
|
1080
|
-
ON: 'ON',
|
|
1081
|
-
SEEK: 'SEEK',
|
|
1082
|
-
RESOLUTION: 'RESOLUTION',
|
|
1083
|
-
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
1084
|
-
VIDEO_MAIN: 'VIDEO_MAIN',
|
|
1085
|
-
STATISTICS: 'STATISTICS',
|
|
1086
|
-
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
1090
|
+
AD_TIME: 'AD_TIME',
|
|
1091
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
1087
1092
|
TOP_RIGHT: 'TOP_RIGHT',
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
1092
|
-
TOP_LEFT: 'TOP_LEFT',
|
|
1093
|
-
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
1094
|
-
LANGUAGE: 'LANGUAGE',
|
|
1095
|
-
BOTTOM_LEFT: 'BOTTOM_LEFT',
|
|
1093
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
1094
|
+
STATISTICS: 'STATISTICS',
|
|
1095
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
1096
1096
|
};
|
|
@@ -1873,7 +1873,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
|
|
|
1873
1873
|
goog.exportProperty(shaka.Player.prototype,"releaseAllMutexes",shaka.Player.prototype.releaseAllMutexes);goog.exportProperty(shaka.Player.prototype,"destroyAllPreloads",shaka.Player.prototype.destroyAllPreloads);goog.exportProperty(shaka.Player.prototype,"preload",shaka.Player.prototype.preload);goog.exportProperty(shaka.Player.prototype,"detachAndSavePreload",shaka.Player.prototype.detachAndSavePreload);goog.exportProperty(shaka.Player.prototype,"unloadAndSavePreload",shaka.Player.prototype.unloadAndSavePreload);
|
|
1874
1874
|
goog.exportProperty(shaka.Player.prototype,"load",shaka.Player.prototype.load);goog.exportProperty(shaka.Player.prototype,"updateStartTime",shaka.Player.prototype.updateStartTime);goog.exportProperty(shaka.Player.prototype,"unload",shaka.Player.prototype.unload);goog.exportProperty(shaka.Player.prototype,"detach",shaka.Player.prototype.detach);goog.exportProperty(shaka.Player.prototype,"attachCanvas",shaka.Player.prototype.attachCanvas);goog.exportProperty(shaka.Player.prototype,"attach",shaka.Player.prototype.attach);
|
|
1875
1875
|
goog.exportProperty(shaka.Player,"probeSupport",shaka.Player.probeSupport);goog.exportProperty(shaka.Player,"isBrowserSupported",shaka.Player.isBrowserSupported);goog.exportProperty(shaka.Player,"setQueueManagerFactory",shaka.Player.setQueueManagerFactory);goog.exportProperty(shaka.Player,"setAdManagerFactory",shaka.Player.setAdManagerFactory);goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);
|
|
1876
|
-
shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.99.
|
|
1876
|
+
shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.99.4-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.ads.AdsStats=function(){this.loadTimes_=[];this.errors_=this.skipped_=this.playedCompletely_=this.overlayAds_=this.started_=0};shaka.ads.AdsStats.prototype.addLoadTime=function(a){this.loadTimes_.push(a)};shaka.ads.AdsStats.prototype.incrementStarted=function(){this.started_++};shaka.ads.AdsStats.prototype.incrementOverlayAds=function(){this.overlayAds_++};shaka.ads.AdsStats.prototype.incrementPlayedCompletely=function(){this.playedCompletely_++};
|
|
1877
1877
|
shaka.ads.AdsStats.prototype.incrementSkipped=function(){this.skipped_++};shaka.ads.AdsStats.prototype.incrementErrors=function(){this.errors_++};shaka.ads.AdsStats.prototype.getAverageLoadTime_=function(){return this.loadTimes_.length?this.loadTimes_.reduce(function(a,b){return a+b},0)/this.loadTimes_.length:0};
|
|
1878
1878
|
shaka.ads.AdsStats.prototype.getBlob=function(){return{loadTimes:this.loadTimes_,averageLoadTime:this.getAverageLoadTime_(),started:this.started_,overlayAds:this.overlayAds_,playedCompletely:this.playedCompletely_,skipped:this.skipped_,errors:this.errors_}};shaka.ads.ClientSideAd=function(a,b,c){shaka.ads.AbstractAd.call(this,c);var d=this;this.ad_=a;this.manager_=b;this.isPaused_=!1;this.volume_=this.manager_.getVolume();this.eventManager_=new shaka.util.EventManager;this.eventManager_.listen(this.manager_,google.ima.AdEvent.Type.PAUSED,function(){d.isPaused_=!0});this.eventManager_.listen(this.manager_,google.ima.AdEvent.Type.RESUMED,function(){d.isPaused_=!1})};$jscomp.inherits(shaka.ads.ClientSideAd,shaka.ads.AbstractAd);
|
|
1879
1879
|
shaka.ads.ClientSideAd.prototype.needsSkipUI=function(){return!1};shaka.ads.ClientSideAd.prototype.hasCustomClick=function(){return!0};shaka.ads.ClientSideAd.prototype.isUsingAnotherMediaElement=function(){return!0};shaka.ads.ClientSideAd.prototype.getDuration=function(){return this.ad_.getDuration()};shaka.ads.ClientSideAd.prototype.getMinSuggestedDuration=function(){return this.ad_.getMinSuggestedDuration()};shaka.ads.ClientSideAd.prototype.getRemainingTime=function(){return this.manager_.getRemainingTime()};
|
|
@@ -953,7 +953,7 @@ Z.prototype.getConfigurationForLowLatency=Z.prototype.Vj;Z.prototype.getConfigur
|
|
|
953
953
|
Z.prototype.updateStartTime=Z.prototype.yl;Z.prototype.unload=Z.prototype.Mc;Z.prototype.detach=Z.prototype.detach;Z.prototype.attachCanvas=Z.prototype.Ej;Z.prototype.attach=Z.prototype.vc;
|
|
954
954
|
Z.probeSupport=function(a){a=a===void 0?!0:a;var b,c,d,e,f,g,h;return R(function(k){switch(k.g){case 1:b={};if(!a){k.A(2);break}return E(k,Xh(),3);case 3:b=k.h;case 2:return c=Oc(),d=kk(),e=pb(),E(k,e.xc(),4);case 4:return f=k.h,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=Gq,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};
|
|
955
955
|
Z.isBrowserSupported=function(){window.Promise||Xa("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;pb();return Pc()?!0:Qc().canPlayType("application/x-mpegurl")!=""};Z.setQueueManagerFactory=function(a){yq=a};Z.setAdManagerFactory=function(a){xq=a};Z.registerSupportPlugin=Fq;Z.prototype.destroy=Z.prototype.destroy;var Eq=0,uq=1,fr=2,jr=3;
|
|
956
|
-
Z.LoadMode={DESTROYED:Eq,NOT_LOADED:uq,MEDIA_SOURCE:fr,SRC_EQUALS:jr};Z.version="v4.99.
|
|
956
|
+
Z.LoadMode={DESTROYED:Eq,NOT_LOADED:uq,MEDIA_SOURCE:fr,SRC_EQUALS:jr};Z.version="v4.99.4";var Gq=new Map,xq=null,yq=null;function Zr(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}function $r(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function as(a,b,c){jg.call(this,c);var d=this;this.g=a;this.h=b;this.i=!1;this.j=this.h.getVolume();this.l=new ib;this.l.F(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.F(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}la(as,jg);p=as.prototype;p.needsSkipUI=function(){return!1};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!0};p.getDuration=function(){return this.g.getDuration()};p.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};
|
|
957
957
|
p.getRemainingTime=function(){return this.h.getRemainingTime()};p.isPaused=function(){return this.i};p.isSkippable=function(){return this.g.getSkipTimeOffset()>=0};p.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return this.h.getAdSkippableState()};p.skip=function(){return this.h.skip()};p.pause=function(){return this.h.pause()};p.play=function(){return this.h.resume()};p.getVolume=function(){return this.h.getVolume()};
|
|
958
958
|
p.setVolume=function(a){this.video.volume=a;return this.h.setVolume(a)};p.isMuted=function(){return this.h.getVolume()==0};p.isLinear=function(){return this.g.isLinear()};p.resize=function(a,b){this.h.resize(a,b)};p.setMuted=function(a){(this.video.muted=a)?(this.j=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.j)};p.getSequenceLength=function(){var a=this.g.getAdPodInfo();return a==null?1:a.getTotalAds()};
|
|
959
959
|
p.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return a==null?1:a.getAdPosition()};p.getTitle=function(){return this.g.getTitle()};p.getDescription=function(){return this.g.getDescription()};p.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};p.getAdId=function(){return this.g.getAdId()};p.getCreativeAdId=function(){return this.g.getCreativeAdId()};
|
|
@@ -968,7 +968,7 @@ function hs(){return{impression:null,clickTracking:null,start:null,firstQuartile
|
|
|
968
968
|
function is(a){var b=hs();a=u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.type in b&&(b[c.type]?b[c.type].push.apply(b[c.type],w(c.urls)):b[c.type]=c.urls);return b}function fs(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.attributes.event;c in b&&(d=xd(d))&&(b[c]||(b[c]=[]),b[c].push(d))}}V("shaka.ads.Utils",bs);bs.ADS_LOADED="ads-loaded";bs.AD_STARTED="ad-started";bs.AD_FIRST_QUARTILE="ad-first-quartile";bs.AD_MIDPOINT="ad-midpoint";bs.AD_THIRD_QUARTILE="ad-third-quartile";
|
|
969
969
|
bs.AD_COMPLETE="ad-complete";bs.AD_STOPPED="ad-stopped";bs.AD_SKIPPED="ad-skipped";bs.AD_VOLUME_CHANGED="ad-volume-changed";bs.AD_MUTED="ad-muted";bs.AD_PAUSED="ad-paused";bs.AD_RESUMED="ad-resumed";bs.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";bs.CUEPOINTS_CHANGED="ad-cue-points-changed";bs.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";bs.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";bs.AD_CLICKED="ad-clicked";bs.AD_PROGRESS="ad-progress";bs.AD_BUFFERING="ad-buffering";
|
|
970
970
|
bs.AD_IMPRESSION="ad-impression";bs.AD_DURATION_CHANGED="ad-duration-changed";bs.AD_CLOSED="ad-closed";bs.AD_LOADED="ad-loaded";bs.ALL_ADS_COMPLETED="all-ads-completed";bs.AD_LINEAR_CHANGED="ad-linear-changed";bs.AD_METADATA="ad-metadata";bs.AD_RECOVERABLE_ERROR="ad-recoverable-error";bs.AD_ERROR="ad-error";bs.AD_BREAK_READY="ad-break-ready";bs.AD_BREAK_STARTED="ad-break-started";bs.AD_BREAK_ENDED="ad-break-ended";bs.AD_INTERSTITIAL_PRELOAD="ad-interstitial-preload";bs.AD_INTERACTION="ad-interaction";
|
|
971
|
-
bs.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";bs.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";bs.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function js(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.G=!1;this.B=this.o=null;this.H=NaN;this.l=e;this.j=null;this.h=new ib;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.D=new google.ima.AdDisplayContainer(this.u,this.i);this.D.initialize();this.m=new google.ima.AdsLoader(this.D);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.99.
|
|
971
|
+
bs.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";bs.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";bs.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function js(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.G=!1;this.B=this.o=null;this.H=NaN;this.l=e;this.j=null;this.h=new ib;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.D=new google.ima.AdDisplayContainer(this.u,this.i);this.D.initialize();this.m=new google.ima.AdsLoader(this.D);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.99.4");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.F(this.m,
|
|
972
972
|
google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){ks(f,g)});this.h.F(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){ls(f,g)});this.h.F(this.i,"ended",function(){f.m.contentComplete()});this.h.oa(this.i,"play",function(){f.G=!0})}js.prototype.configure=function(a){this.o=a};js.prototype.stop=function(){this.g&&this.g.stop();this.u&&xj(this.u)};
|
|
973
973
|
js.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.D.destroy()};function ls(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new ug("ad-error",b));ms(a,null);a.l(new ug("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
|
|
974
974
|
function ks(a,b){a.l(new ug("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.H)));if(a.o.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.C);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.F(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.F(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.C);a.l(new ug("ima-ad-manager-loaded",(new Map).set("imaAdManager",
|
|
@@ -1079,8 +1079,8 @@ function kt(a){var b=[];if(a.l.size)for(var c=u(a.l.values()),d=c.next(),e={};!d
|
|
|
1079
1079
|
p.release=function(){this.l&&(this.l.release(),this.l=null);this.h&&(this.h.release(),this.h=null);this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);this.m&&(this.m.release(),this.m=null);xg.prototype.release.call(this)};p.onAssetUnload=function(){this.l&&(this.l.release(),this.l=null);this.h&&this.h.stop();this.i&&this.i.stop();this.g&&this.g.stop();this.m&&this.m.stop();this.u&&(vt(this,new ug("ad-stopped")),vt(this,new ug("ad-content-attach-requested")));this.o=new Zr};
|
|
1080
1080
|
function wt(a,b){if(!window.google||!google.ima||!google.ima.AdsLoader)throw new W(2,10,1E4);a.l&&a.l.release();if(!a.C)throw new W(2,10,10008);a.l=new js(a.C,a.B.Nb(),a.G,b,function(c){return vt(a,c)});a.l.configure(a.j)}p.requestClientSideAds=function(a,b){this.l||wt(this,b);b=this.l;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.H=Date.now()/1E3;b.m.requestAds(a)};p.updateClientSideAdsRenderingSettings=function(a){this.l||wt(this,a);var b=this.l;b.C=a;b.g&&b.g.updateAdsRenderingSettings(b.C)};
|
|
1081
1081
|
function xt(a){if(!window.google||!google.ima||!google.ima.dai)throw new W(2,10,10002);a.h&&a.h.release();if(!a.D)throw new W(2,10,10009);a.h=new et(a.D,a.B.Nb(),a.G,function(b){return vt(a,b)});a.h.configure(a.j)}
|
|
1082
|
-
p.requestServerSideStream=function(a,b){b=b===void 0?"":b;this.h||xt(this);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Xa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.99.
|
|
1083
|
-
!0),c.j=new mg,c.g.requestStream(a),c.C=b||"",c.H=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){this.h||xt(this);(a.mpt||a.mpv)&&Xa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.mpt="Shaka Player";a.mpv="v4.99.
|
|
1082
|
+
p.requestServerSideStream=function(a,b){b=b===void 0?"":b;this.h||xt(this);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Xa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.99.4";c=this.h;c.j?a=Promise.reject(new W(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&(c.I=
|
|
1083
|
+
!0),c.j=new mg,c.g.requestStream(a),c.C=b||"",c.H=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){this.h||xt(this);(a.mpt||a.mpv)&&Xa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.mpt="Shaka Player";a.mpv="v4.99.4";this.h.g.replaceAdTagParameters(a)};
|
|
1084
1084
|
function yt(a){a.i&&a.i.release();a.i=new Ts(a.D,a.B.Bb(),a.B.Nb(),function(b){return vt(a,b)});a.i.configure(a.j)}p.requestMediaTailorStream=function(a,b,c){c=c===void 0?"":c;this.i||yt(this);var d=this.i;d.l?a=Promise.reject(new W(1,10,10004)):(d.l=new mg,Ws(d,a,b),d.K=c||"",d.V=Date.now()/1E3,a=d.l);return a};p.addMediaTailorTrackingUrl=function(a){this.i||yt(this);var b=this.i;b.J=a;b.h(new ug("ads-loaded",(new Map).set("loadTime",0)))};
|
|
1085
1085
|
function zt(a){var b=a.C;a.g&&a.g.release();a.g=new rs(b,a.B,function(c){return vt(a,c)});a.g.configure(a.j)}p.addCustomInterstitial=function(a){this.g||zt(this);Ks(this.g,[a])};p.addAdUrlInterstitial=function(a){this.g||zt(this);return this.g.addAdUrlInterstitial(a)};p.getInterstitialPlayer=function(){this.g||zt(this);return this.g.Bd()};function At(a){a.m&&a.m.release();a.m=new ht(a.B,function(b){return vt(a,b)});a.m.configure(a.j)}
|
|
1086
1086
|
p.getCuePoints=function(){var a=[];this.h&&(a=a.concat(this.h.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};p.getStats=function(){var a=this.o;return{loadTimes:a.g,averageLoadTime:$r(a),started:a.h,overlayAds:a.j,playedCompletely:a.l,skipped:a.m,errors:a.i}};p.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)};p.onHlsTimedMetadata=function(a,b){this.h&&this.h.g.processMetadata("ID3",a.data,b)};p.onCueMetadataChange=function(a){if(this.h)this.h.onCueMetadataChange(a)};
|
|
@@ -2362,7 +2362,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
|
|
|
2362
2362
|
goog.exportProperty(shaka.Player.prototype,"releaseAllMutexes",shaka.Player.prototype.releaseAllMutexes);goog.exportProperty(shaka.Player.prototype,"destroyAllPreloads",shaka.Player.prototype.destroyAllPreloads);goog.exportProperty(shaka.Player.prototype,"preload",shaka.Player.prototype.preload);goog.exportProperty(shaka.Player.prototype,"detachAndSavePreload",shaka.Player.prototype.detachAndSavePreload);goog.exportProperty(shaka.Player.prototype,"unloadAndSavePreload",shaka.Player.prototype.unloadAndSavePreload);
|
|
2363
2363
|
goog.exportProperty(shaka.Player.prototype,"load",shaka.Player.prototype.load);goog.exportProperty(shaka.Player.prototype,"updateStartTime",shaka.Player.prototype.updateStartTime);goog.exportProperty(shaka.Player.prototype,"unload",shaka.Player.prototype.unload);goog.exportProperty(shaka.Player.prototype,"detach",shaka.Player.prototype.detach);goog.exportProperty(shaka.Player.prototype,"attachCanvas",shaka.Player.prototype.attachCanvas);goog.exportProperty(shaka.Player.prototype,"attach",shaka.Player.prototype.attach);
|
|
2364
2364
|
goog.exportProperty(shaka.Player,"probeSupport",shaka.Player.probeSupport);goog.exportProperty(shaka.Player,"isBrowserSupported",shaka.Player.isBrowserSupported);goog.exportProperty(shaka.Player,"setQueueManagerFactory",shaka.Player.setQueueManagerFactory);goog.exportProperty(shaka.Player,"setAdManagerFactory",shaka.Player.setAdManagerFactory);goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);
|
|
2365
|
-
shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.99.
|
|
2365
|
+
shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.99.4-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.polyfill=function(){};shaka.polyfill.installAll=function(){for(var a=(0,$jscomp.makeIterator)(shaka.polyfill.polyfills_),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){shaka.log.alwaysWarn("Error installing polyfill!",c)}}};shaka.polyfill.register=function(a,b){a={priority:b||0,callback:a};for(b=0;b<shaka.polyfill.polyfills_.length;b++)if(shaka.polyfill.polyfills_[b].priority<a.priority){shaka.polyfill.polyfills_.splice(b,0,a);return}shaka.polyfill.polyfills_.push(a)};
|
|
2366
2366
|
goog.exportSymbol("shaka.polyfill",shaka.polyfill);goog.exportProperty(shaka.polyfill,"register",shaka.polyfill.register);goog.exportProperty(shaka.polyfill,"installAll",shaka.polyfill.installAll);shaka.polyfill.polyfills_=[];shaka.polyfill.EmeEncryptionSchemePolyfillMediaKeySystemAccess=function(a,b,c){this.mksa_=a;this.videoScheme_=b||null;this.audioScheme_=c||null;this.keySystem=a.keySystem};
|
|
2367
2367
|
shaka.polyfill.EmeEncryptionSchemePolyfillMediaKeySystemAccess.prototype.getConfiguration=function(){var a=this.mksa_.getConfiguration();if(a.videoCapabilities)for(var b=(0,$jscomp.makeIterator)(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.videoScheme_;if(a.audioCapabilities)for(b=(0,$jscomp.makeIterator)(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.audioScheme_;return a};
|
|
2368
2368
|
shaka.polyfill.EmeEncryptionSchemePolyfillMediaKeySystemAccess.prototype.createMediaKeys=function(){return this.mksa_.createMediaKeys()};shaka.polyfill.EncryptionSchemeUtils=function(){};shaka.polyfill.EncryptionSchemeUtils.guessSupportedScheme=function(a){var b=shaka.drm.DrmUtils;if(b.isFairPlayKeySystem(a))return"cbcs";if(b.isWidevineKeySystem(a)||b.isPlayReadyKeySystem(a)||b.isClearKeySystem(a)||b.isWisePlayKeySystem(a))return"cenc";shaka.log.alwaysWarn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null};
|
|
@@ -1136,7 +1136,7 @@ Z.prototype.getConfigurationForLowLatency=Z.prototype.Nh;Z.prototype.getConfigur
|
|
|
1136
1136
|
Z.prototype.updateStartTime=Z.prototype.hj;Z.prototype.unload=Z.prototype.yd;Z.prototype.detach=Z.prototype.detach;Z.prototype.attachCanvas=Z.prototype.yh;Z.prototype.attach=Z.prototype.Wb;
|
|
1137
1137
|
Z.probeSupport=function(a){a=a===void 0?!0:a;var b,c,d,e,f,g,h;return H(function(k){switch(k.g){case 1:b={};if(!a){k.A(2);break}return E(k,vn(),3);case 3:b=k.h;case 2:return c=Mc(),d=qo(),e=T(),E(k,e.Nb(),4);case 4:return f=k.h,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=mv,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};
|
|
1138
1138
|
Z.isBrowserSupported=function(){window.Promise||Va("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;T();return Nc()?!0:Oc().canPlayType("application/x-mpegurl")!=""};Z.setQueueManagerFactory=function(a){It=a};Z.setAdManagerFactory=function(a){Ht=a};Z.registerSupportPlugin=function(a,b){mv.set(a,b)};Z.prototype.destroy=Z.prototype.destroy;var Ut=0,Et=1,tu=2,xu=3;
|
|
1139
|
-
Z.LoadMode={DESTROYED:Ut,NOT_LOADED:Et,MEDIA_SOURCE:tu,SRC_EQUALS:xu};Z.version="v4.99.
|
|
1139
|
+
Z.LoadMode={DESTROYED:Ut,NOT_LOADED:Et,MEDIA_SOURCE:tu,SRC_EQUALS:xu};Z.version="v4.99.4";var mv=new Map,Ht=null,It=null;function nv(){}function ov(a,b){a={priority:b||0,callback:a};for(b=0;b<pv.length;b++)if(pv[b].priority<a.priority){pv.splice(b,0,a);return}pv.push(a)}S("shaka.polyfill",nv);nv.register=ov;nv.installAll=function(){for(var a=t(pv),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Va("Error installing polyfill!",c)}}};var pv=[];function qv(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}qv.prototype.getConfiguration=function(){var a=this.g.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.i;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.h;return a};qv.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};function rv(a){if(Yb(a))return"cbcs";if(Wb(a)||Xb(a)||Vb(a)||a==="com.huawei.wiseplay")return"cenc";Va("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function sv(a){if(!a)return!1;a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}function tv(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&T().zc()?!0:!1};function uv(){}var vv;function wv(){T().xe()&&!vv&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(vv=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=xv,navigator.emeEncryptionSchemePolyfilled=!0)}
|
|
1140
1140
|
function xv(a,b){var c=this,d,e;return H(function(f){if(f.g==1)return E(f,vv.call(c,a,b),2);d=f.h;if(e=sv(d))return navigator.requestMediaKeySystemAccess=vv,f.return(d);navigator.requestMediaKeySystemAccess=yv;return f.return(yv.call(c,a,b))})}
|
|
1141
1141
|
function yv(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,r,u;return H(function(v){if(v.g==1){d=rv(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=zv(h.videoCapabilities,d),l=zv(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),n.name="NotSupportedError",
|
|
1142
1142
|
n.code=DOMException.NOT_SUPPORTED_ERR,n;return E(v,vv.call(c,a,e),2)}q=v.h;u=r=null;e[0]&&(e[0].videoCapabilities&&(r=e[0].videoCapabilities[0].encryptionScheme),e[0].audioCapabilities&&(u=e[0].audioCapabilities[0].encryptionScheme));return v.return(new qv(q,r,u))})}function zv(a,b){return a?a.filter(function(c){return tv(c.encryptionScheme,b)}):a}nv.EmeEncryptionScheme=uv;uv.install=wv;ov(wv);function Av(){}function Bv(){"getOrInsert"in Map.prototype||(Map.prototype.getOrInsert=Cv);"getOrInsertComputed"in Map.prototype||(Map.prototype.getOrInsertComputed=Dv);"getOrInsert"in WeakMap.prototype||(WeakMap.prototype.getOrInsert=Cv);"getOrInsertComputed"in WeakMap.prototype||(WeakMap.prototype.getOrInsertComputed=Dv)}function Cv(a,b){this.has(a)||this.set(a,b);return this.get(a)}function Dv(a,b){this.has(a)||this.set(a,b(a));return this.get(a)}nv.Map=Av;Av.install=Bv;ov(Bv);function Ev(){}var Fv;function Gv(){T().xe()&&!Fv&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(Fv=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=Hv,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
|
|
@@ -352,10 +352,10 @@ a.insert("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Adverte
|
|
|
352
352
|
["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["EXIT_PICTURE_IN_PICTURE","\u96e2\u958b\u5b50\u6bcd\u756b\u9762"],["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN","\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],["MORE_SETTINGS","\u986f\u793a\u66f4\u591a\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u7a2e\u8a9e\u8a00"],["MUTE","\u975c\u97f3"],["NOT_APPLICABLE","\u4e0d\u9069\u7528"],["OFF","\u95dc\u9589"],
|
|
353
353
|
["ON","\u958b\u555f"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["QUALITY","\u97f3\u8cea"],["RECENTER_VR","\u91cd\u65b0\u7f6e\u4e2d"],["REPLAY","\u91cd\u64ad"],["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["STATISTICS","\u7d71\u8a08\u8cc7\u6599"],["SUBTITLE_FORCED",
|
|
354
354
|
"\u5f37\u5236\u986f\u793a"],["SURROUND","\u74b0\u5834\u97f3\u6548"],["TOGGLE_STEREOSCOPIC","\u5207\u63db\u7acb\u9ad4\u5f71\u50cf"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]))};
|
|
355
|
-
shaka.ui.Locales.Ids={
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
355
|
+
shaka.ui.Locales.Ids={RECENTER_VR:"RECENTER_VR",AD_STATISTICS:"AD_STATISTICS",PLAYBACK_RATE:"PLAYBACK_RATE",REWIND:"REWIND",SURROUND:"SURROUND",VOLUME:"VOLUME",LANGUAGE:"LANGUAGE",BOTTOM_RIGHT:"BOTTOM_RIGHT",SKIP_PREVIOUS:"SKIP_PREVIOUS",LOOP:"LOOP",ORIGINAL_VERSION:"ORIGINAL_VERSION",EXIT_PICTURE_IN_PICTURE:"EXIT_PICTURE_IN_PICTURE",SUBTITLE_FORCED:"SUBTITLE_FORCED",SKIP_NEXT:"SKIP_NEXT",AD_PROGRESS:"AD_PROGRESS",CAPTIONS:"CAPTIONS",EXIT_FULL_SCREEN:"EXIT_FULL_SCREEN",CENTER:"CENTER",UNMUTE:"UNMUTE",
|
|
356
|
+
SUBTITLE_SIZE:"SUBTITLE_SIZE",BACK:"BACK",AIRPLAY:"AIRPLAY",SUBTITLE_POSITION:"SUBTITLE_POSITION",COPY_VIDEO_FRAME:"COPY_VIDEO_FRAME",VIDEO_TYPE:"VIDEO_TYPE",BOTTOM_CENTER:"BOTTOM_CENTER",UNDETERMINED_LANGUAGE:"UNDETERMINED_LANGUAGE",MORE_SETTINGS:"MORE_SETTINGS",TOP_CENTER:"TOP_CENTER",CENTER_LEFT:"CENTER_LEFT",RESOLUTION:"RESOLUTION",CAST:"CAST",ENTER_PICTURE_IN_PICTURE:"ENTER_PICTURE_IN_PICTURE",DEFAULT:"DEFAULT",PLAY:"PLAY",AD_DURATION:"AD_DURATION",EXIT_LOOP_MODE:"EXIT_LOOP_MODE",BOTTOM_LEFT:"BOTTOM_LEFT",
|
|
357
|
+
REPLAY:"REPLAY",SKIP_AD:"SKIP_AD",TOP_LEFT:"TOP_LEFT",OFF:"OFF",CHAPTERS:"CHAPTERS",SEEK:"SEEK",AUDIO_DESCRIPTION:"AUDIO_DESCRIPTION",VIDEO_MAIN:"VIDEO_MAIN",MUTE:"MUTE",TOGGLE_STEREOSCOPIC:"TOGGLE_STEREOSCOPIC",MULTIPLE_LANGUAGES:"MULTIPLE_LANGUAGES",NOT_APPLICABLE:"NOT_APPLICABLE",UNRECOGNIZED_LANGUAGE:"UNRECOGNIZED_LANGUAGE",QUALITY:"QUALITY",AUTO_GENERATED:"AUTO_GENERATED",AUTO_QUALITY:"AUTO_QUALITY",FULL_SCREEN:"FULL_SCREEN",LIVE:"LIVE",DOWNLOAD_VIDEO_FRAME:"DOWNLOAD_VIDEO_FRAME",CENTER_RIGHT:"CENTER_RIGHT",
|
|
358
|
+
VIDEO_SIGN:"VIDEO_SIGN",ON:"ON",PAUSE:"PAUSE",SKIP_TO_LIVE:"SKIP_TO_LIVE",AD_TIME:"AD_TIME",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",TOP_RIGHT:"TOP_RIGHT",ENTER_LOOP_MODE:"ENTER_LOOP_MODE",STATISTICS:"STATISTICS",FAST_FORWARD:"FAST_FORWARD"};shaka.abr={};shaka.abr.Ewma=function(a){goog.asserts.assert(a>0,"expected halfLife to be positive");this.logHalf_=Math.log(.5);this.alpha_=Math.exp(this.logHalf_/a);this.totalWeight_=this.estimate_=0};shaka.abr.Ewma.prototype.updateAlpha=function(a){goog.asserts.assert(a>0,"expected halfLife to be positive");this.alpha_=Math.exp(this.logHalf_/a)};shaka.abr.Ewma.prototype.sample=function(a,b){var c=Math.pow(this.alpha_,a);b=b*(1-c)+c*this.estimate_;isNaN(b)||(this.estimate_=b,this.totalWeight_+=a)};
|
|
359
359
|
shaka.abr.Ewma.prototype.getEstimate=function(){return this.estimate_/(1-Math.pow(this.alpha_,this.totalWeight_))};shaka.abr.EwmaBandwidthEstimator=function(){this.fast_=new shaka.abr.Ewma(2);this.slow_=new shaka.abr.Ewma(5);this.bytesSampled_=0;this.minTotalBytes_=128E3;this.minBytes_=16E3};shaka.abr.EwmaBandwidthEstimator.prototype.configure=function(a){this.minTotalBytes_=a.minTotalBytes;this.minBytes_=a.minBytes;this.fast_.updateAlpha(a.fastHalfLife);this.slow_.updateAlpha(a.slowHalfLife)};
|
|
360
360
|
shaka.abr.EwmaBandwidthEstimator.prototype.sample=function(a,b){if(!(b<this.minBytes_)){var c=8E3*b/a;a/=1E3;this.bytesSampled_+=b;this.fast_.sample(a,c);this.slow_.sample(a,c)}};shaka.abr.EwmaBandwidthEstimator.prototype.getBandwidthEstimate=function(a){return this.bytesSampled_<this.minTotalBytes_?a:Math.min(this.fast_.getEstimate(),this.slow_.getEstimate())};shaka.abr.EwmaBandwidthEstimator.prototype.hasGoodEstimate=function(){return this.bytesSampled_>=this.minTotalBytes_};shaka.util.ArrayUtils=function(){};shaka.util.ArrayUtils.defaultEquals=function(a,b){return typeof a==="number"&&typeof b==="number"&&isNaN(a)&&isNaN(b)?!0:a===b};shaka.util.ArrayUtils.remove=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)};shaka.util.ArrayUtils.count=function(a,b){var c=0;a=(0,$jscomp.makeIterator)(a);for(var d=a.next();!d.done;d=a.next())c+=b(d.value)?1:0;return c};
|
|
361
361
|
shaka.util.ArrayUtils.hasSameElements=function(a,b,c){c||(c=shaka.util.ArrayUtils.defaultEquals);if(a.length!=b.length)return!1;b=b.slice();a=(0,$jscomp.makeIterator)(a);for(var d=a.next(),e={};!d.done;e={item$jscomp$29:void 0},d=a.next()){e.item$jscomp$29=d.value;d=b.findIndex(function(f){return function(g){return c(f.item$jscomp$29,g)}}(e));if(d==-1)return!1;b[d]=b[b.length-1];b.pop()}return b.length==0};
|
|
@@ -1977,7 +1977,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
|
|
|
1977
1977
|
goog.exportProperty(shaka.Player.prototype,"releaseAllMutexes",shaka.Player.prototype.releaseAllMutexes);goog.exportProperty(shaka.Player.prototype,"destroyAllPreloads",shaka.Player.prototype.destroyAllPreloads);goog.exportProperty(shaka.Player.prototype,"preload",shaka.Player.prototype.preload);goog.exportProperty(shaka.Player.prototype,"detachAndSavePreload",shaka.Player.prototype.detachAndSavePreload);goog.exportProperty(shaka.Player.prototype,"unloadAndSavePreload",shaka.Player.prototype.unloadAndSavePreload);
|
|
1978
1978
|
goog.exportProperty(shaka.Player.prototype,"load",shaka.Player.prototype.load);goog.exportProperty(shaka.Player.prototype,"updateStartTime",shaka.Player.prototype.updateStartTime);goog.exportProperty(shaka.Player.prototype,"unload",shaka.Player.prototype.unload);goog.exportProperty(shaka.Player.prototype,"detach",shaka.Player.prototype.detach);goog.exportProperty(shaka.Player.prototype,"attachCanvas",shaka.Player.prototype.attachCanvas);goog.exportProperty(shaka.Player.prototype,"attach",shaka.Player.prototype.attach);
|
|
1979
1979
|
goog.exportProperty(shaka.Player,"probeSupport",shaka.Player.probeSupport);goog.exportProperty(shaka.Player,"isBrowserSupported",shaka.Player.isBrowserSupported);goog.exportProperty(shaka.Player,"setQueueManagerFactory",shaka.Player.setQueueManagerFactory);goog.exportProperty(shaka.Player,"setAdManagerFactory",shaka.Player.setAdManagerFactory);goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);
|
|
1980
|
-
shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.99.
|
|
1980
|
+
shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.99.4-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.ads.AdsStats=function(){this.loadTimes_=[];this.errors_=this.skipped_=this.playedCompletely_=this.overlayAds_=this.started_=0};shaka.ads.AdsStats.prototype.addLoadTime=function(a){this.loadTimes_.push(a)};shaka.ads.AdsStats.prototype.incrementStarted=function(){this.started_++};shaka.ads.AdsStats.prototype.incrementOverlayAds=function(){this.overlayAds_++};shaka.ads.AdsStats.prototype.incrementPlayedCompletely=function(){this.playedCompletely_++};
|
|
1981
1981
|
shaka.ads.AdsStats.prototype.incrementSkipped=function(){this.skipped_++};shaka.ads.AdsStats.prototype.incrementErrors=function(){this.errors_++};shaka.ads.AdsStats.prototype.getAverageLoadTime_=function(){return this.loadTimes_.length?this.loadTimes_.reduce(function(a,b){return a+b},0)/this.loadTimes_.length:0};
|
|
1982
1982
|
shaka.ads.AdsStats.prototype.getBlob=function(){return{loadTimes:this.loadTimes_,averageLoadTime:this.getAverageLoadTime_(),started:this.started_,overlayAds:this.overlayAds_,playedCompletely:this.playedCompletely_,skipped:this.skipped_,errors:this.errors_}};shaka.ads.ClientSideAd=function(a,b,c){shaka.ads.AbstractAd.call(this,c);var d=this;this.ad_=a;this.manager_=b;this.isPaused_=!1;this.volume_=this.manager_.getVolume();this.eventManager_=new shaka.util.EventManager;this.eventManager_.listen(this.manager_,google.ima.AdEvent.Type.PAUSED,function(){d.isPaused_=!0});this.eventManager_.listen(this.manager_,google.ima.AdEvent.Type.RESUMED,function(){d.isPaused_=!1})};$jscomp.inherits(shaka.ads.ClientSideAd,shaka.ads.AbstractAd);
|
|
1983
1983
|
shaka.ads.ClientSideAd.prototype.needsSkipUI=function(){return!1};shaka.ads.ClientSideAd.prototype.hasCustomClick=function(){return!0};shaka.ads.ClientSideAd.prototype.isUsingAnotherMediaElement=function(){return!0};shaka.ads.ClientSideAd.prototype.getDuration=function(){return this.ad_.getDuration()};shaka.ads.ClientSideAd.prototype.getMinSuggestedDuration=function(){return this.ad_.getMinSuggestedDuration()};shaka.ads.ClientSideAd.prototype.getRemainingTime=function(){return this.manager_.getRemainingTime()};
|