shaka-player 4.16.41 → 4.16.42

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.
@@ -335,9 +335,9 @@ a.insert("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_
335
335
  ["ENTER_LOOP_MODE","\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["ENTER_PICTURE_IN_PICTURE","\u9032\u5165\u5b50\u6bcd\u756b\u9762"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u87a2\u5e55\u6a21\u5f0f"],["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"],
336
336
  ["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"],["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",
337
337
  "\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","\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"]]))};
338
- shaka.ui.Locales.Ids={ON:"ON",AD_STATISTICS:"AD_STATISTICS",SKIP_PREVIOUS:"SKIP_PREVIOUS",CAPTIONS:"CAPTIONS",AD_TIME:"AD_TIME",CAST:"CAST",ENTER_LOOP_MODE:"ENTER_LOOP_MODE",QUALITY:"QUALITY",SURROUND:"SURROUND",MUTE:"MUTE",CHAPTERS:"CHAPTERS",ENTER_PICTURE_IN_PICTURE:"ENTER_PICTURE_IN_PICTURE",REWIND:"REWIND",PLAY:"PLAY",LOOP:"LOOP",RECENTER_VR:"RECENTER_VR",AUTO_QUALITY:"AUTO_QUALITY",MORE_SETTINGS:"MORE_SETTINGS",FULL_SCREEN:"FULL_SCREEN",OFF:"OFF",EXIT_FULL_SCREEN:"EXIT_FULL_SCREEN",BACK:"BACK",
339
- STATISTICS:"STATISTICS",NOT_APPLICABLE:"NOT_APPLICABLE",TOGGLE_STEREOSCOPIC:"TOGGLE_STEREOSCOPIC",AD_PROGRESS:"AD_PROGRESS",AIRPLAY:"AIRPLAY",RESOLUTION:"RESOLUTION",DOWNLOAD_VIDEO_FRAME:"DOWNLOAD_VIDEO_FRAME",EXIT_LOOP_MODE:"EXIT_LOOP_MODE",MULTIPLE_LANGUAGES:"MULTIPLE_LANGUAGES",SUBTITLE_FORCED:"SUBTITLE_FORCED",EXIT_PICTURE_IN_PICTURE:"EXIT_PICTURE_IN_PICTURE",LIVE:"LIVE",SEEK:"SEEK",SKIP_AD:"SKIP_AD",PAUSE:"PAUSE",UNRECOGNIZED_LANGUAGE:"UNRECOGNIZED_LANGUAGE",FAST_FORWARD:"FAST_FORWARD",AD_DURATION:"AD_DURATION",
340
- PLAYBACK_RATE:"PLAYBACK_RATE",UNMUTE:"UNMUTE",UNDETERMINED_LANGUAGE:"UNDETERMINED_LANGUAGE",LANGUAGE:"LANGUAGE",SKIP_TO_LIVE:"SKIP_TO_LIVE",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",VOLUME:"VOLUME",SKIP_NEXT:"SKIP_NEXT",REPLAY:"REPLAY"};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)};
338
+ shaka.ui.Locales.Ids={REWIND:"REWIND",PAUSE:"PAUSE",SKIP_PREVIOUS:"SKIP_PREVIOUS",EXIT_FULL_SCREEN:"EXIT_FULL_SCREEN",MORE_SETTINGS:"MORE_SETTINGS",PLAY:"PLAY",AD_TIME:"AD_TIME",RESOLUTION:"RESOLUTION",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",FAST_FORWARD:"FAST_FORWARD",PLAYBACK_RATE:"PLAYBACK_RATE",REPLAY:"REPLAY",SKIP_AD:"SKIP_AD",SKIP_TO_LIVE:"SKIP_TO_LIVE",MULTIPLE_LANGUAGES:"MULTIPLE_LANGUAGES",FULL_SCREEN:"FULL_SCREEN",AD_STATISTICS:"AD_STATISTICS",AD_DURATION:"AD_DURATION",STATISTICS:"STATISTICS",
339
+ UNRECOGNIZED_LANGUAGE:"UNRECOGNIZED_LANGUAGE",ENTER_PICTURE_IN_PICTURE:"ENTER_PICTURE_IN_PICTURE",MUTE:"MUTE",QUALITY:"QUALITY",AD_PROGRESS:"AD_PROGRESS",CAST:"CAST",NOT_APPLICABLE:"NOT_APPLICABLE",RECENTER_VR:"RECENTER_VR",EXIT_LOOP_MODE:"EXIT_LOOP_MODE",UNMUTE:"UNMUTE",CHAPTERS:"CHAPTERS",DOWNLOAD_VIDEO_FRAME:"DOWNLOAD_VIDEO_FRAME",AIRPLAY:"AIRPLAY",LANGUAGE:"LANGUAGE",SURROUND:"SURROUND",UNDETERMINED_LANGUAGE:"UNDETERMINED_LANGUAGE",LIVE:"LIVE",BACK:"BACK",OFF:"OFF",ENTER_LOOP_MODE:"ENTER_LOOP_MODE",
340
+ LOOP:"LOOP",SEEK:"SEEK",VOLUME:"VOLUME",TOGGLE_STEREOSCOPIC:"TOGGLE_STEREOSCOPIC",AUTO_QUALITY:"AUTO_QUALITY",SKIP_NEXT:"SKIP_NEXT",SUBTITLE_FORCED:"SUBTITLE_FORCED",EXIT_PICTURE_IN_PICTURE:"EXIT_PICTURE_IN_PICTURE",ON:"ON",CAPTIONS:"CAPTIONS"};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)};
341
341
  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)};
342
342
  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};
343
343
  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$30:void 0},d=a.next()){e.item$jscomp$30=d.value;d=b.findIndex(function(f){return function(g){return c(f.item$jscomp$30,g)}}(e));if(d==-1)return!1;b[d]=b[b.length-1];b.pop()}return b.length==0};
@@ -1920,7 +1920,7 @@ goog.exportProperty(shaka.Player.prototype,"getNonDefaultConfiguration",shaka.Pl
1920
1920
  goog.exportProperty(shaka.Player.prototype,"configure",shaka.Player.prototype.configure);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);
1921
1921
  goog.exportProperty(shaka.Player.prototype,"unloadAndSavePreload",shaka.Player.prototype.unloadAndSavePreload);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);
1922
1922
  goog.exportProperty(shaka.Player.prototype,"attachCanvas",shaka.Player.prototype.attachCanvas);goog.exportProperty(shaka.Player.prototype,"attach",shaka.Player.prototype.attach);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);
1923
- goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);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.16.41-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
1923
+ goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);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.16.42-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
1924
1924
  shaka.Player.supportPlugins_=new Map;shaka.Player.adManagerFactory_=null;shaka.Player.queueManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.ads={};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_++};
1925
1925
  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};
1926
1926
  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){var d=this;this.ad_=a;this.manager_=b;this.video_=c;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})};shaka.ads.ClientSideAd.prototype.needsSkipUI=function(){return!1};
@@ -3285,7 +3285,7 @@ shaka.polyfill.MediaSource.rejectContainer_=function(a){if(window.MediaSource){v
3285
3285
  shaka.polyfill.MediaSource.rejectCodec_=function(a){var b=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(d){return shaka.util.MimeUtils.getCodecBase(d)!=a&&b(d)};if(window.ManagedMediaSource){var c=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(d){return shaka.util.MimeUtils.getCodecBase(d)!=a&&c(d)}}};
3286
3286
  shaka.polyfill.MediaSource.patchVp09_=function(){var a=MediaSource.isTypeSupported;shaka.device.DeviceFactory.getDevice().supportStandardVP9Checking()&&(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(d<0)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});f>=0&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})};
3287
3287
  goog.exportProperty(shaka.polyfill,"MediaSource",shaka.polyfill.MediaSource);goog.exportProperty(shaka.polyfill.MediaSource,"install",shaka.polyfill.MediaSource.install);shaka.polyfill.register(shaka.polyfill.MediaSource.install);shaka.polyfill.Orientation=function(){};shaka.polyfill.Orientation.install=function(){screen.orientation&&screen.orientation.unlock?shaka.log.info("Using native screen.orientation"):screen.orientation!=void 0?shaka.polyfill.Orientation.installBasedOnScreenMethods_():window.orientation!=void 0&&shaka.polyfill.Orientation.installBasedOnWindowMethods_()};
3288
- shaka.polyfill.Orientation.installBasedOnScreenMethods_=function(){screen.orientation.lock===void 0&&(screen.orientation.lock=function(a){shaka.log.info("screen.orientation.lock is a no-op");return Promise.resolve()});screen.orientation.unlock===void 0&&(screen.orientation.unlock=function(){shaka.log.info("screen.orientation.unlock is a no-op")})};
3288
+ shaka.polyfill.Orientation.installBasedOnScreenMethods_=function(){var a=Object.getPrototypeOf(screen.orientation);screen.orientation.lock===void 0&&(a.lock=function(b){shaka.log.info("screen.orientation.lock is a no-op");return Promise.resolve()});screen.orientation.unlock===void 0&&(a.unlock=function(){shaka.log.info("screen.orientation.unlock is a no-op")})};
3289
3289
  shaka.polyfill.Orientation.installBasedOnWindowMethods_=function(){var a=new shaka.polyfill.Orientation.FakeOrientation;screen.orientation=a;var b=function(){switch(window.orientation){case -90:a.type="landscape-secondary";a.angle=270;break;case 0:a.type="portrait-primary";a.angle=0;break;case 90:a.type="landscape-primary";a.angle=90;break;case 180:a.type="portrait-secondary",a.angle=180}};b();window.addEventListener("orientationchange",function(){b();a.dispatchChangeEvent()})};
3290
3290
  goog.exportProperty(shaka.polyfill,"Orientation",shaka.polyfill.Orientation);goog.exportProperty(shaka.polyfill.Orientation,"install",shaka.polyfill.Orientation.install);shaka.polyfill.Orientation.FakeOrientation=function(){shaka.util.FakeEventTarget.call(this);this.type="";this.angle=0};$jscomp.inherits(shaka.polyfill.Orientation.FakeOrientation,shaka.util.FakeEventTarget);
3291
3291
  shaka.polyfill.Orientation.FakeOrientation.prototype.dispatchChangeEvent=function(){var a=new shaka.util.FakeEvent("change");this.dispatchEvent(a)};