shaka-player 4.8.15 → 4.8.16

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 CHANGED
@@ -741,49 +741,49 @@ shaka.ui.Locales.addTo = function(localization) {
741
741
  * @const
742
742
  */
743
743
  shaka.ui.Locales.Ids = {
744
- PLAY: 'PLAY',
744
+ MORE_SETTINGS: 'MORE_SETTINGS',
745
+ UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
746
+ TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
745
747
  FULL_SCREEN: 'FULL_SCREEN',
746
- RESOLUTION: 'RESOLUTION',
747
- NOT_APPLICABLE: 'NOT_APPLICABLE',
748
+ UNMUTE: 'UNMUTE',
748
749
  FAST_FORWARD: 'FAST_FORWARD',
749
- SURROUND: 'SURROUND',
750
+ RECENTER_VR: 'RECENTER_VR',
751
+ AD_STATISTICS: 'AD_STATISTICS',
752
+ AD_DURATION: 'AD_DURATION',
753
+ CAPTIONS: 'CAPTIONS',
754
+ UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
755
+ LIVE: 'LIVE',
756
+ MUTE: 'MUTE',
757
+ SKIP_TO_LIVE: 'SKIP_TO_LIVE',
750
758
  VOLUME: 'VOLUME',
751
- EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
759
+ QUALITY: 'QUALITY',
752
760
  AD_PROGRESS: 'AD_PROGRESS',
753
- AD_DURATION: 'AD_DURATION',
761
+ PAUSE: 'PAUSE',
762
+ AUTO_QUALITY: 'AUTO_QUALITY',
754
763
  ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
755
- BACK: 'BACK',
764
+ CAST: 'CAST',
765
+ REWIND: 'REWIND',
766
+ SUBTITLE_FORCED: 'SUBTITLE_FORCED',
767
+ EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
756
768
  PLAYBACK_RATE: 'PLAYBACK_RATE',
757
769
  SKIP_AD: 'SKIP_AD',
758
- QUALITY: 'QUALITY',
759
- ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
760
- STATISTICS: 'STATISTICS',
761
- MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
762
- CAST: 'CAST',
763
770
  LOOP: 'LOOP',
771
+ SURROUND: 'SURROUND',
772
+ OFF: 'OFF',
764
773
  AD_TIME: 'AD_TIME',
765
774
  PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
766
- TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
767
- REWIND: 'REWIND',
768
- UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
769
- SEEK: 'SEEK',
770
- OFF: 'OFF',
771
- LIVE: 'LIVE',
772
- EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
773
- MUTE: 'MUTE',
774
- AUTO_QUALITY: 'AUTO_QUALITY',
775
- CAPTIONS: 'CAPTIONS',
776
- MORE_SETTINGS: 'MORE_SETTINGS',
777
- EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
778
- UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
779
775
  REPLAY: 'REPLAY',
780
- LANGUAGE: 'LANGUAGE',
781
- AD_STATISTICS: 'AD_STATISTICS',
782
- UNMUTE: 'UNMUTE',
783
- SKIP_TO_LIVE: 'SKIP_TO_LIVE',
784
- SUBTITLE_FORCED: 'SUBTITLE_FORCED',
785
- RECENTER_VR: 'RECENTER_VR',
776
+ MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
777
+ ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
778
+ EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
779
+ RESOLUTION: 'RESOLUTION',
786
780
  ON: 'ON',
781
+ SEEK: 'SEEK',
782
+ STATISTICS: 'STATISTICS',
783
+ BACK: 'BACK',
787
784
  AIRPLAY: 'AIRPLAY',
788
- PAUSE: 'PAUSE',
785
+ LANGUAGE: 'LANGUAGE',
786
+ EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
787
+ NOT_APPLICABLE: 'NOT_APPLICABLE',
788
+ PLAY: 'PLAY',
789
789
  };
@@ -832,9 +832,9 @@ shaka.media.VideoWrapper.PlayheadMover=function(a,b){var c=this;this.mediaElemen
832
832
  shaka.media.VideoWrapper.PlayheadMover.prototype.moveTo=function(a){this.originTime_=this.mediaElement_.currentTime;this.targetTime_=a;this.remainingAttempts_=this.maxAttempts_;this.mediaElement_.currentTime=a;this.timer_.tickEvery(.1)};
833
833
  shaka.media.VideoWrapper.PlayheadMover.prototype.onTick_=function(){0>=this.remainingAttempts_?(shaka.log.warning(["Failed to move playhead from",this.originTime_,"to",this.targetTime_].join(" ")),this.timer_.stop()):this.mediaElement_.currentTime!=this.originTime_?this.timer_.stop():(this.mediaElement_.currentTime=this.targetTime_,this.remainingAttempts_--)};shaka.media.Playhead=function(){};shaka.media.Playhead.prototype.ready=function(){};shaka.media.Playhead.prototype.setStartTime=function(a){};shaka.media.Playhead.prototype.getStallsDetected=function(){};shaka.media.Playhead.prototype.getGapsJumped=function(){};shaka.media.Playhead.prototype.getTime=function(){};shaka.media.Playhead.prototype.notifyOfBufferingChange=function(){};
834
834
  shaka.media.SrcEqualsPlayhead=function(a){this.mediaElement_=a;this.started_=!1;this.startTime_=null;this.eventManager_=new shaka.util.EventManager};
835
- shaka.media.SrcEqualsPlayhead.prototype.ready=function(){var a=this;goog.asserts.assert(null!=this.mediaElement_,"Playhead should not be released before calling ready()");var b=function(){null==a.startTime_||0==a.startTime_?a.started_=!0:(a.eventManager_.listenOnce(a.mediaElement_,"seeking",function(){a.started_=!0}),a.mediaElement_.currentTime=Math.max(0,a.mediaElement_.currentTime+a.startTime_))};shaka.util.MediaReadyState.waitForReadyState(this.mediaElement_,HTMLMediaElement.HAVE_CURRENT_DATA,
836
- this.eventManager_,function(){b()})};shaka.media.SrcEqualsPlayhead.prototype.release=function(){this.eventManager_&&(this.eventManager_.release(),this.eventManager_=null);this.mediaElement_=null};shaka.media.SrcEqualsPlayhead.prototype.setStartTime=function(a){this.startTime_=this.started_?this.startTime_:a};shaka.media.SrcEqualsPlayhead.prototype.getTime=function(){return(this.started_?this.mediaElement_.currentTime:this.startTime_)||0};shaka.media.SrcEqualsPlayhead.prototype.getStallsDetected=function(){return 0};
837
- shaka.media.SrcEqualsPlayhead.prototype.getGapsJumped=function(){return 0};shaka.media.SrcEqualsPlayhead.prototype.notifyOfBufferingChange=function(){};
835
+ shaka.media.SrcEqualsPlayhead.prototype.ready=function(){var a=this;goog.asserts.assert(null!=this.mediaElement_,"Playhead should not be released before calling ready()");var b=function(){if(null==a.startTime_||0==a.startTime_&&Infinity!=a.mediaElement_.duration)a.started_=!0;else{var c=a.mediaElement_.currentTime,d=a.startTime_;0>a.startTime_&&(d=Math.max(0,c+a.startTime_));c!=d?(a.eventManager_.listenOnce(a.mediaElement_,"seeking",function(){a.started_=!0}),a.mediaElement_.currentTime=d):a.started_=
836
+ !0}};shaka.util.MediaReadyState.waitForReadyState(this.mediaElement_,HTMLMediaElement.HAVE_CURRENT_DATA,this.eventManager_,function(){b()})};shaka.media.SrcEqualsPlayhead.prototype.release=function(){this.eventManager_&&(this.eventManager_.release(),this.eventManager_=null);this.mediaElement_=null};shaka.media.SrcEqualsPlayhead.prototype.setStartTime=function(a){this.startTime_=this.started_?this.startTime_:a};
837
+ shaka.media.SrcEqualsPlayhead.prototype.getTime=function(){return(this.started_?this.mediaElement_.currentTime:this.startTime_)||0};shaka.media.SrcEqualsPlayhead.prototype.getStallsDetected=function(){return 0};shaka.media.SrcEqualsPlayhead.prototype.getGapsJumped=function(){return 0};shaka.media.SrcEqualsPlayhead.prototype.notifyOfBufferingChange=function(){};
838
838
  shaka.media.MediaSourcePlayhead=function(a,b,c,d,e,f){var g=this;this.minSeekRange_=3;this.mediaElement_=a;this.timeline_=b.presentationTimeline;this.minBufferTime_=b.minBufferTime||0;this.config_=c;this.onSeek_=e;this.lastCorrectiveSeek_=null;this.stallDetector_=this.createStallDetector_(a,c,f);this.gapController_=new shaka.media.GapJumpingController(a,b.presentationTimeline,c,this.stallDetector_,f);this.videoWrapper_=new shaka.media.VideoWrapper(a,function(){return g.onSeeking_()},function(h){return g.onStarted_(h)},
839
839
  function(){return g.getStartTime_(d)});this.checkWindowTimer_=new shaka.util.Timer(function(){g.onPollWindow_()})};shaka.media.MediaSourcePlayhead.prototype.ready=function(){this.checkWindowTimer_.tickEvery(.25)};
840
840
  shaka.media.MediaSourcePlayhead.prototype.release=function(){this.videoWrapper_&&(this.videoWrapper_.release(),this.videoWrapper_=null);this.gapController_&&(this.gapController_.release(),this.gapController_=null);this.checkWindowTimer_&&(this.checkWindowTimer_.stop(),this.checkWindowTimer_=null);this.mediaElement_=this.videoWrapper_=this.timeline_=this.config_=null;this.onSeek_=function(){}};shaka.media.MediaSourcePlayhead.prototype.setStartTime=function(a){this.videoWrapper_.setTime(a)};
@@ -1412,7 +1412,7 @@ goog.exportProperty(shaka.Player.prototype,"getAssetUri",shaka.Player.prototype.
1412
1412
  goog.exportProperty(shaka.Player.prototype,"resetConfiguration",shaka.Player.prototype.resetConfiguration);goog.exportProperty(shaka.Player.prototype,"getBufferFullness",shaka.Player.prototype.getBufferFullness);goog.exportProperty(shaka.Player.prototype,"getConfiguration",shaka.Player.prototype.getConfiguration);goog.exportProperty(shaka.Player.prototype,"configure",shaka.Player.prototype.configure);goog.exportProperty(shaka.Player.prototype,"releaseAllMutexes",shaka.Player.prototype.releaseAllMutexes);
1413
1413
  goog.exportProperty(shaka.Player.prototype,"preload",shaka.Player.prototype.preload);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);
1414
1414
  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);goog.exportProperty(shaka.Player,"probeSupport",shaka.Player.probeSupport);goog.exportProperty(shaka.Player,"isBrowserSupported",shaka.Player.isBrowserSupported);goog.exportProperty(shaka.Player,"setAdManagerFactory",shaka.Player.setAdManagerFactory);
1415
- 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.8.15-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
1415
+ 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.8.16-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
1416
1416
  shaka.Player.supportPlugins_={};shaka.Player.adManagerFactory_=null;shaka.Player.TextTrackLabel="Shaka Player TextTrack";shaka.ads={};shaka.ads.AdsStats=function(){this.loadTimes_=[];this.skipped_=this.playedCompletely_=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.incrementPlayedCompletely=function(){this.playedCompletely_++};shaka.ads.AdsStats.prototype.incrementSkipped=function(){this.skipped_++};
1417
1417
  shaka.ads.AdsStats.prototype.getBlob=function(){return{loadTimes:this.loadTimes_,started:this.started_,playedCompletely:this.playedCompletely_,skipped:this.skipped_}};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.getDuration=function(){return this.ad_.getDuration()};
1418
1418
  shaka.ads.ClientSideAd.prototype.getMinSuggestedDuration=function(){return this.ad_.getMinSuggestedDuration()};shaka.ads.ClientSideAd.prototype.getRemainingTime=function(){return this.manager_.getRemainingTime()};shaka.ads.ClientSideAd.prototype.isPaused=function(){return this.isPaused_};shaka.ads.ClientSideAd.prototype.isSkippable=function(){return 0<=this.ad_.getSkipTimeOffset()};