shaka-player 4.9.6 → 4.9.7

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.
@@ -325,9 +325,9 @@ shaka.ui.Locales.addTo=function(a){a.insert("ar",new Map([["AD_DURATION","\u0645
325
325
  "\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["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",
326
326
  "\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"],["ON","\u958b\u555f"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u89e3\u6790\u5ea6"],
327
327
  ["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]))};
328
- shaka.ui.Locales.Ids={UNRECOGNIZED_LANGUAGE:"UNRECOGNIZED_LANGUAGE",EXIT_LOOP_MODE:"EXIT_LOOP_MODE",NOT_APPLICABLE:"NOT_APPLICABLE",BACK:"BACK",ENTER_LOOP_MODE:"ENTER_LOOP_MODE",FULL_SCREEN:"FULL_SCREEN",AIRPLAY:"AIRPLAY",SEEK:"SEEK",FAST_FORWARD:"FAST_FORWARD",AD_STATISTICS:"AD_STATISTICS",EXIT_PICTURE_IN_PICTURE:"EXIT_PICTURE_IN_PICTURE",SURROUND:"SURROUND",TOGGLE_STEREOSCOPIC:"TOGGLE_STEREOSCOPIC",AD_DURATION:"AD_DURATION",EXIT_FULL_SCREEN:"EXIT_FULL_SCREEN",AUTO_QUALITY:"AUTO_QUALITY",CAST:"CAST",
329
- REWIND:"REWIND",LIVE:"LIVE",SKIP_AD:"SKIP_AD",PLAYBACK_RATE:"PLAYBACK_RATE",MORE_SETTINGS:"MORE_SETTINGS",VOLUME:"VOLUME",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",SKIP_TO_LIVE:"SKIP_TO_LIVE",CAPTIONS:"CAPTIONS",PLAY:"PLAY",ON:"ON",RECENTER_VR:"RECENTER_VR",OFF:"OFF",AD_PROGRESS:"AD_PROGRESS",ENTER_PICTURE_IN_PICTURE:"ENTER_PICTURE_IN_PICTURE",UNMUTE:"UNMUTE",LOOP:"LOOP",PAUSE:"PAUSE",MULTIPLE_LANGUAGES:"MULTIPLE_LANGUAGES",RESOLUTION:"RESOLUTION",LANGUAGE:"LANGUAGE",QUALITY:"QUALITY",STATISTICS:"STATISTICS",
330
- MUTE:"MUTE",AD_TIME:"AD_TIME",UNDETERMINED_LANGUAGE:"UNDETERMINED_LANGUAGE",REPLAY:"REPLAY",SUBTITLE_FORCED:"SUBTITLE_FORCED"};shaka.abr={};shaka.abr.Ewma=function(a){goog.asserts.assert(0<a,"expected halfLife to be positive");this.alpha_=Math.exp(Math.log(.5)/a);this.totalWeight_=this.estimate_=0};shaka.abr.Ewma.prototype.updateAlpha=function(a){goog.asserts.assert(0<a,"expected halfLife to be positive");this.alpha_=Math.exp(Math.log(.5)/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)};
328
+ shaka.ui.Locales.Ids={EXIT_PICTURE_IN_PICTURE:"EXIT_PICTURE_IN_PICTURE",REWIND:"REWIND",CAST:"CAST",LOOP:"LOOP",PLAY:"PLAY",UNDETERMINED_LANGUAGE:"UNDETERMINED_LANGUAGE",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",SKIP_AD:"SKIP_AD",FAST_FORWARD:"FAST_FORWARD",MORE_SETTINGS:"MORE_SETTINGS",AD_DURATION:"AD_DURATION",TOGGLE_STEREOSCOPIC:"TOGGLE_STEREOSCOPIC",RESOLUTION:"RESOLUTION",ENTER_PICTURE_IN_PICTURE:"ENTER_PICTURE_IN_PICTURE",CAPTIONS:"CAPTIONS",REPLAY:"REPLAY",AUTO_QUALITY:"AUTO_QUALITY",UNMUTE:"UNMUTE",
329
+ SURROUND:"SURROUND",STATISTICS:"STATISTICS",AIRPLAY:"AIRPLAY",RECENTER_VR:"RECENTER_VR",LANGUAGE:"LANGUAGE",OFF:"OFF",QUALITY:"QUALITY",AD_STATISTICS:"AD_STATISTICS",AD_TIME:"AD_TIME",VOLUME:"VOLUME",SEEK:"SEEK",ENTER_LOOP_MODE:"ENTER_LOOP_MODE",MUTE:"MUTE",PAUSE:"PAUSE",SKIP_TO_LIVE:"SKIP_TO_LIVE",FULL_SCREEN:"FULL_SCREEN",EXIT_FULL_SCREEN:"EXIT_FULL_SCREEN",AD_PROGRESS:"AD_PROGRESS",LIVE:"LIVE",PLAYBACK_RATE:"PLAYBACK_RATE",MULTIPLE_LANGUAGES:"MULTIPLE_LANGUAGES",ON:"ON",NOT_APPLICABLE:"NOT_APPLICABLE",
330
+ SUBTITLE_FORCED:"SUBTITLE_FORCED",BACK:"BACK",UNRECOGNIZED_LANGUAGE:"UNRECOGNIZED_LANGUAGE",EXIT_LOOP_MODE:"EXIT_LOOP_MODE"};shaka.abr={};shaka.abr.Ewma=function(a){goog.asserts.assert(0<a,"expected halfLife to be positive");this.alpha_=Math.exp(Math.log(.5)/a);this.totalWeight_=this.estimate_=0};shaka.abr.Ewma.prototype.updateAlpha=function(a){goog.asserts.assert(0<a,"expected halfLife to be positive");this.alpha_=Math.exp(Math.log(.5)/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)};
331
331
  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)};
332
332
  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.EventManager=function(){this.bindingMap_=new shaka.util.MultiMap};shaka.util.EventManager.prototype.release=function(){this.removeAll();this.bindingMap_=null};shaka.util.EventManager.prototype.listen=function(a,b,c,d){this.bindingMap_&&(a=new shaka.util.EventManager.Binding_(a,b,c,d),this.bindingMap_.push(b,a))};shaka.util.EventManager.prototype.listenOnce=function(a,b,c,d){var e=this,f=function(g){e.unlisten(a,b,f);c(g)};this.listen(a,b,f,d)};
333
333
  shaka.util.EventManager.prototype.unlisten=function(a,b,c){if(this.bindingMap_){var d=this.bindingMap_.get(b)||[];d=$jscomp.makeIterator(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.unlisten(),this.bindingMap_.remove(b,e))}};shaka.util.EventManager.prototype.removeAll=function(){if(this.bindingMap_){var a=this.bindingMap_.getAll();a=$jscomp.makeIterator(a);for(var b=a.next();!b.done;b=a.next())b.value.unlisten();this.bindingMap_.clear()}};
@@ -638,10 +638,10 @@ shaka.media.DrmEngine.prototype.onKeyStatusesChange_=function(a){var b=this;a=a.
638
638
  !0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);c||goog.asserts.assert("usable"!=f,"Usable keys found in closed session");"expired"==f&&(d=!0);g=shaka.util.Uint8ArrayUtils.toHex(g).slice(0,32);b.keyStatusByKeyId_.set(g,f)});var e=a.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.updatePromise&&(shaka.log.debug("Session has expired",a.sessionId),this.activeSessions_.delete(a),a.close().catch(function(){}));this.areAllSessionsLoaded_()&&(this.allSessionsLoaded_.resolve(),
639
639
  this.keyStatusTimer_.tickAfter(shaka.media.DrmEngine.KEY_STATUS_BATCH_TIME))};shaka.media.DrmEngine.prototype.processKeyStatusChanges_=function(){var a=this.keyStatusByKeyId_,b=this.announcedKeyStatusByKeyId_;b.clear();a.forEach(function(c,d){return b.set(d,c)});a=Array.from(b.values());if(a.length&&a.every(function(c){return"expired"==c}))this.onError_(new shaka.util.Error(shaka.util.Error.Severity.CRITICAL,shaka.util.Error.Category.DRM,shaka.util.Error.Code.EXPIRED));this.playerInterface_.onKeyStatus(shaka.util.MapUtils.asObject(b))};
640
640
  shaka.media.DrmEngine.isBrowserSupported=function(){return!!window.MediaKeys&&!!window.navigator&&!!window.navigator.requestMediaKeySystemAccess&&!!window.MediaKeySystemAccess&&!!window.MediaKeySystemAccess.prototype.getConfiguration};
641
- shaka.media.DrmEngine.probeSupport=function(){var a,b,c,d,e,f,g,h,k,l,m,n,p,q,r,t,x,u,v,w,z,y,A,B,C,D;return $jscomp.asyncExecutePromiseGeneratorProgram(function(F){if(1==F.nextAddress){goog.asserts.assert(shaka.media.DrmEngine.isBrowserSupported(),"Must have basic EME support");a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.chromecast.playready com.apple.fps.1_0 com.apple.fps".split(" ");b=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO",
642
- "HW_SECURE_DECODE","HW_SECURE_ALL"];c=["150","2000","3000"];d={"com.widevine.alpha":b,"com.microsoft.playready":c,"com.microsoft.playready.recommendation":c,"com.chromecast.playready":c};e=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}];f=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}];g={videoCapabilities:e,audioCapabilities:f,initDataTypes:["cenc","sinf","skd","keyids"]};h=[null,"cenc","cbcs","cbcs-1-9"];k=new Map;
643
- l=function(I,E){var G,H,J,K,M,L,O,P;return $jscomp.asyncExecutePromiseGeneratorProgram(function(N){switch(N.nextAddress){case 1:return N.setCatchFinallyBlocks(2),N.yield(E.createMediaKeys(),4);case 4:N.leaveTryBlock(3);break;case 2:return N.enterCatchBlock(),N.return();case 3:H=(G=E.getConfiguration().sessionTypes)?G.includes("persistent-license"):!1,shaka.util.Platform.isTizen3()&&(H=!1),J=E.getConfiguration().videoCapabilities,K=E.getConfiguration().audioCapabilities,M={persistentState:H,encryptionSchemes:[],
644
- videoRobustnessLevels:[],audioRobustnessLevels:[]},k.has(I)&&k.get(I)?M=k.get(I):k.set(I,M),(L=J[0].encryptionScheme)&&!M.encryptionSchemes.includes(L)&&M.encryptionSchemes.push(L),(O=J[0].robustness)&&!M.videoRobustnessLevels.includes(O)&&M.videoRobustnessLevels.push(O),(P=K[0].robustness)&&!M.audioRobustnessLevels.includes(P)&&M.audioRobustnessLevels.push(P),N.jumpToEnd()}})};m=function(I,E,G,H){var J,K,M,L,O,P,N,U,R;return $jscomp.asyncExecutePromiseGeneratorProgram(function(T){switch(T.nextAddress){case 1:T.setCatchFinallyBlocks(2);
641
+ shaka.media.DrmEngine.probeSupport=function(){var a,b,c,d,e,f,g,h,k,l,m,n,p,q,r,t,x,u,v,w,z,y,A,B,C,D;return $jscomp.asyncExecutePromiseGeneratorProgram(function(F){if(1==F.nextAddress){goog.asserts.assert(shaka.media.DrmEngine.isBrowserSupported(),"Must have basic EME support");a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.chromecast.playready com.apple.fps.1_0 com.apple.fps".split(" ");b=["SW_SECURE_CRYPTO",
642
+ "SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"];c=["150","2000","3000"];d={"com.widevine.alpha":b,"com.microsoft.playready.recommendation":c};e=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}];f=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}];g={videoCapabilities:e,audioCapabilities:f,initDataTypes:["cenc","sinf","skd","keyids"]};h=[null,"cenc","cbcs","cbcs-1-9"];k=new Map;l=function(I,E){var G,
643
+ H,J,K,M,L,O,P;return $jscomp.asyncExecutePromiseGeneratorProgram(function(N){switch(N.nextAddress){case 1:return N.setCatchFinallyBlocks(2),N.yield(E.createMediaKeys(),4);case 4:N.leaveTryBlock(3);break;case 2:return N.enterCatchBlock(),N.return();case 3:H=(G=E.getConfiguration().sessionTypes)?G.includes("persistent-license"):!1,shaka.util.Platform.isTizen3()&&(H=!1),J=E.getConfiguration().videoCapabilities,K=E.getConfiguration().audioCapabilities,M={persistentState:H,encryptionSchemes:[],videoRobustnessLevels:[],
644
+ audioRobustnessLevels:[]},k.has(I)&&k.get(I)?M=k.get(I):k.set(I,M),(L=J[0].encryptionScheme)&&!M.encryptionSchemes.includes(L)&&M.encryptionSchemes.push(L),(O=J[0].robustness)&&!M.videoRobustnessLevels.includes(O)&&M.videoRobustnessLevels.push(O),(P=K[0].robustness)&&!M.audioRobustnessLevels.includes(P)&&M.audioRobustnessLevels.push(P),N.jumpToEnd()}})};m=function(I,E,G,H){var J,K,M,L,O,P,N,U,R;return $jscomp.asyncExecutePromiseGeneratorProgram(function(T){switch(T.nextAddress){case 1:T.setCatchFinallyBlocks(2);
645
645
  J=shaka.util.ObjectUtils.cloneObject(g);K=$jscomp.makeIterator(J.videoCapabilities);for(M=K.next();!M.done;M=K.next())L=M.value,L.encryptionScheme=E,L.robustness=G;O=$jscomp.makeIterator(J.audioCapabilities);for(M=O.next();!M.done;M=O.next())P=M.value,P.encryptionScheme=E,P.robustness=H;N=shaka.util.ObjectUtils.cloneObject(J);N.persistentState="required";N.sessionTypes=["persistent-license"];U=[N,J];return T.yield(navigator.requestMediaKeySystemAccess(I,U),4);case 4:return R=T.yieldResult,T.yield(l(I,
646
646
  R),5);case 5:T.leaveTryBlock(0);break;case 2:T.enterCatchBlock(),T.jumpToEnd()}})};n=function(I,E,G,H){var J,K,M;return $jscomp.asyncExecutePromiseGeneratorProgram(function(L){switch(L.nextAddress){case 1:return L.setCatchFinallyBlocks(2),J={type:"media-source",video:{contentType:e[0].contentType,width:640,height:480,bitrate:1,framerate:1},audio:{contentType:f[0].contentType,channels:2,bitrate:1,samplerate:1},keySystemConfiguration:{keySystem:I,video:{encryptionScheme:E,robustness:G},audio:{encryptionScheme:E,
647
647
  robustness:H}}},L.yield(navigator.mediaCapabilities.decodingInfo(J),4);case 4:return K=L.yieldResult,M=K.keySystemAccess,L.yield(l(I,M),5);case 5:L.leaveTryBlock(0);break;case 2:L.enterCatchBlock(),L.jumpToEnd()}})};p=$jscomp.makeIterator(a);for(q=p.next();!q.done;q=p.next())r=q.value,k.set(r,null);t=[];x=$jscomp.makeIterator(h);for(u=x.next();!u.done;u=x.next())for(v=u.value,w=$jscomp.makeIterator(a),q=w.next();!q.done;q=w.next())z=q.value,"org.w3.clearkey"===z&&shaka.util.Platform.isSafari()||(t.push(m(z,
@@ -922,9 +922,9 @@ shaka.media.VideoWrapper.PlayheadMover=function(a,b){var c=this;this.mediaElemen
922
922
  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)};
923
923
  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(){};
924
924
  shaka.media.SrcEqualsPlayhead=function(a){this.mediaElement_=a;this.started_=!1;this.startTime_=null;this.eventManager_=new shaka.util.EventManager};
925
- 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,
926
- 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};
927
- shaka.media.SrcEqualsPlayhead.prototype.getGapsJumped=function(){return 0};shaka.media.SrcEqualsPlayhead.prototype.notifyOfBufferingChange=function(){};
925
+ 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_=
926
+ !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};
927
+ 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(){};
928
928
  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)},
929
929
  function(){return g.getStartTime_(d)});this.checkWindowTimer_=new shaka.util.Timer(function(){g.onPollWindow_()})};shaka.media.MediaSourcePlayhead.prototype.ready=function(){this.checkWindowTimer_.tickEvery(.25)};
930
930
  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)};
@@ -1516,7 +1516,7 @@ goog.exportProperty(shaka.Player.prototype,"resetConfiguration",shaka.Player.pro
1516
1516
  goog.exportProperty(shaka.Player.prototype,"releaseAllMutexes",shaka.Player.prototype.releaseAllMutexes);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);goog.exportProperty(shaka.Player.prototype,"load",shaka.Player.prototype.load);
1517
1517
  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);goog.exportProperty(shaka.Player,"probeSupport",shaka.Player.probeSupport);
1518
1518
  goog.exportProperty(shaka.Player,"isBrowserSupported",shaka.Player.isBrowserSupported);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);shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);
1519
- shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.9.6-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);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_++};
1519
+ shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.9.7-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);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_++};
1520
1520
  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()};
1521
1521
  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()};
1522
1522
  shaka.ads.ClientSideAd.prototype.getTimeUntilSkippable=function(){var a=this.ad_.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};shaka.ads.ClientSideAd.prototype.canSkipNow=function(){return this.manager_.getAdSkippableState()};shaka.ads.ClientSideAd.prototype.skip=function(){return this.manager_.skip()};shaka.ads.ClientSideAd.prototype.setPaused=function(a){this.isPaused_=a};shaka.ads.ClientSideAd.prototype.pause=function(){return this.manager_.pause()};