shaka-player 4.15.47 → 4.15.48
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 +39 -39
- package/dist/shaka-player.compiled-es2021.debug.js +1 -1
- package/dist/shaka-player.compiled-es2021.js +4 -4
- package/dist/shaka-player.compiled.debug.js +1 -1
- package/dist/shaka-player.compiled.js +4 -4
- package/dist/shaka-player.dash-es2021.debug.js +1 -1
- package/dist/shaka-player.dash-es2021.js +1 -1
- package/dist/shaka-player.dash.debug.js +1 -1
- package/dist/shaka-player.dash.js +1 -1
- package/dist/shaka-player.hls-es2021.debug.js +1 -1
- package/dist/shaka-player.hls-es2021.js +1 -1
- package/dist/shaka-player.hls.debug.js +1 -1
- package/dist/shaka-player.hls.js +1 -1
- package/dist/shaka-player.ui-es2021.debug.js +7 -6
- package/dist/shaka-player.ui-es2021.debug.map +3 -3
- package/dist/shaka-player.ui-es2021.js +167 -167
- package/dist/shaka-player.ui-es2021.map +1 -1
- package/dist/shaka-player.ui.debug.js +6 -6
- package/dist/shaka-player.ui.debug.map +2 -2
- package/dist/shaka-player.ui.js +201 -201
- package/dist/shaka-player.ui.map +2 -2
- package/lib/player.js +1 -1
- package/package.json +1 -1
- package/ui/context_menu.js +9 -0
package/dist/locales.js
CHANGED
|
@@ -916,52 +916,52 @@ shaka.ui.Locales.addTo = function(localization) {
|
|
|
916
916
|
* @const
|
|
917
917
|
*/
|
|
918
918
|
shaka.ui.Locales.Ids = {
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
MUTE: 'MUTE',
|
|
922
|
-
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
923
|
-
RESOLUTION: 'RESOLUTION',
|
|
919
|
+
SURROUND: 'SURROUND',
|
|
920
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
924
921
|
FULL_SCREEN: 'FULL_SCREEN',
|
|
925
|
-
|
|
926
|
-
|
|
922
|
+
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
923
|
+
LIVE: 'LIVE',
|
|
924
|
+
AD_DURATION: 'AD_DURATION',
|
|
925
|
+
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
926
|
+
SKIP_AD: 'SKIP_AD',
|
|
927
|
+
VOLUME: 'VOLUME',
|
|
928
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
927
929
|
QUALITY: 'QUALITY',
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
930
|
+
LOOP: 'LOOP',
|
|
931
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
932
|
+
ON: 'ON',
|
|
933
|
+
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
932
934
|
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
933
|
-
AD_TIME: 'AD_TIME',
|
|
934
935
|
AD_PROGRESS: 'AD_PROGRESS',
|
|
935
|
-
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
936
|
-
SKIP_AD: 'SKIP_AD',
|
|
937
|
-
SURROUND: 'SURROUND',
|
|
938
|
-
AIRPLAY: 'AIRPLAY',
|
|
939
|
-
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
940
|
-
BACK: 'BACK',
|
|
941
|
-
LIVE: 'LIVE',
|
|
942
|
-
ON: 'ON',
|
|
943
|
-
CAST: 'CAST',
|
|
944
|
-
RECENTER_VR: 'RECENTER_VR',
|
|
945
|
-
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
946
|
-
LOOP: 'LOOP',
|
|
947
|
-
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
948
|
-
LANGUAGE: 'LANGUAGE',
|
|
949
|
-
OFF: 'OFF',
|
|
950
|
-
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
951
|
-
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
952
936
|
REWIND: 'REWIND',
|
|
953
|
-
SKIP_NEXT: 'SKIP_NEXT',
|
|
954
|
-
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
955
|
-
PAUSE: 'PAUSE',
|
|
956
|
-
SEEK: 'SEEK',
|
|
957
|
-
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
958
|
-
AD_DURATION: 'AD_DURATION',
|
|
959
|
-
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
960
|
-
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
961
937
|
UNMUTE: 'UNMUTE',
|
|
962
|
-
|
|
938
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
939
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
940
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
941
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
963
942
|
REPLAY: 'REPLAY',
|
|
964
|
-
|
|
943
|
+
RESOLUTION: 'RESOLUTION',
|
|
944
|
+
PAUSE: 'PAUSE',
|
|
945
|
+
CHAPTERS: 'CHAPTERS',
|
|
946
|
+
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
947
|
+
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
948
|
+
LANGUAGE: 'LANGUAGE',
|
|
965
949
|
PLAY: 'PLAY',
|
|
950
|
+
SKIP_NEXT: 'SKIP_NEXT',
|
|
951
|
+
SEEK: 'SEEK',
|
|
952
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
953
|
+
AIRPLAY: 'AIRPLAY',
|
|
954
|
+
AD_STATISTICS: 'AD_STATISTICS',
|
|
955
|
+
OFF: 'OFF',
|
|
956
|
+
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
957
|
+
CAST: 'CAST',
|
|
966
958
|
CAPTIONS: 'CAPTIONS',
|
|
959
|
+
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
960
|
+
STATISTICS: 'STATISTICS',
|
|
961
|
+
AD_TIME: 'AD_TIME',
|
|
962
|
+
RECENTER_VR: 'RECENTER_VR',
|
|
963
|
+
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
964
|
+
MUTE: 'MUTE',
|
|
965
|
+
BACK: 'BACK',
|
|
966
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
967
967
|
};
|
|
@@ -1247,7 +1247,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
|
|
|
1247
1247
|
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);
|
|
1248
1248
|
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);
|
|
1249
1249
|
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);
|
|
1250
|
-
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.15.
|
|
1250
|
+
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.15.48-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={};
|
|
1251
1251
|
shaka.ads.AdsStats=class{constructor(){this.loadTimes_=[];this.errors_=this.skipped_=this.playedCompletely_=this.overlayAds_=this.started_=0}addLoadTime(a){this.loadTimes_.push(a)}incrementStarted(){this.started_++}incrementOverlayAds(){this.overlayAds_++}incrementPlayedCompletely(){this.playedCompletely_++}incrementSkipped(){this.skipped_++}incrementErrors(){this.errors_++}getAverageLoadTime_(){return this.loadTimes_.length?this.loadTimes_.reduce((a,b)=>a+b,0)/this.loadTimes_.length:0}getBlob(){return{loadTimes:this.loadTimes_,
|
|
1252
1252
|
averageLoadTime:this.getAverageLoadTime_(),started:this.started_,overlayAds:this.overlayAds_,playedCompletely:this.playedCompletely_,skipped:this.skipped_,errors:this.errors_}}};shaka.ads.ClientSideAd=class{constructor(a,b,c){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,()=>{this.isPaused_=!0});this.eventManager_.listen(this.manager_,google.ima.AdEvent.Type.RESUMED,()=>{this.isPaused_=!1})}needsSkipUI(){return!1}isClientRendering(){return!0}hasCustomClick(){return!0}isUsingAnotherMediaElement(){return!0}getDuration(){return this.ad_.getDuration()}getMinSuggestedDuration(){return this.ad_.getMinSuggestedDuration()}getRemainingTime(){return this.manager_.getRemainingTime()}isPaused(){return this.isPaused_}isSkippable(){return this.ad_.getSkipTimeOffset()>=
|
|
1253
1253
|
0}getTimeUntilSkippable(){var a=this.ad_.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)}canSkipNow(){return this.manager_.getAdSkippableState()}skip(){return this.manager_.skip()}setPaused(a){this.isPaused_=a}pause(){return this.manager_.pause()}play(){return this.manager_.resume()}getVolume(){return this.manager_.getVolume()}setVolume(a){this.video_.volume=a;return this.manager_.setVolume(a)}isMuted(){return this.manager_.getVolume()==0}isLinear(){return this.ad_.isLinear()}resize(a,
|
|
@@ -751,7 +751,7 @@ Q.prototype.seekRange=Q.prototype.Ha;Q.prototype.isVideoOnly=Q.prototype.ri;Q.pr
|
|
|
751
751
|
Q.prototype.resetConfiguration=Q.prototype.Og;Q.prototype.getBufferFullness=Q.prototype.yg;Q.prototype.getNonDefaultConfiguration=Q.prototype.Cg;Q.prototype.getConfigurationForLowLatency=Q.prototype.Fh;Q.prototype.getConfiguration=Q.prototype.getConfiguration;Q.prototype.configurationForLowLatency=Q.prototype.sh;Q.prototype.configure=Q.prototype.configure;Q.prototype.releaseAllMutexes=Q.prototype.Ni;Q.prototype.destroyAllPreloads=Q.prototype.cf;Q.prototype.preload=Q.prototype.preload;
|
|
752
752
|
Q.prototype.detachAndSavePreload=Q.prototype.ug;Q.prototype.unloadAndSavePreload=Q.prototype.dj;Q.prototype.load=Q.prototype.load;Q.prototype.updateStartTime=Q.prototype.hj;Q.prototype.unload=Q.prototype.bc;Q.prototype.detach=Q.prototype.detach;Q.prototype.attachCanvas=Q.prototype.jh;Q.prototype.attach=Q.prototype.Eb;Q.probeSupport=async function(a=!0){let b={};a&&(b=await Ig());a=Tb();const c=vj(),d=await Aa().o(),e={manifest:a,media:c,drm:b,hardwareResolution:d};Xo.forEach((f,g)=>{e[g]=f()});return e};
|
|
753
753
|
Q.isBrowserSupported=function(){window.Promise||ja("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;Aa();return Ub()?!0:Vb("application/x-mpegurl")};Q.setQueueManagerFactory=function(a){Eq=a};Q.setAdManagerFactory=function(a){Dq=a};Q.registerSupportPlugin=Wo;Q.prototype.destroy=Q.prototype.destroy;var cq=0,Cq=1,ep=2,Ep=3;
|
|
754
|
-
Q.LoadMode={DESTROYED:cq,NOT_LOADED:Cq,MEDIA_SOURCE:ep,SRC_EQUALS:Ep};Q.version="v4.15.
|
|
754
|
+
Q.LoadMode={DESTROYED:cq,NOT_LOADED:Cq,MEDIA_SOURCE:ep,SRC_EQUALS:Ep};Q.version="v4.15.48";var Ha;const Fq=["4","15"];Ha=new Ea(Number(Fq[0]),Number(Fq[1]));La=new Ia;var Xo=new Map,Dq=null,Eq=null;function Gq(a){return a.g.length?a.g.reduce((b,c)=>b+c,0)/a.g.length:0}var Hq=class{constructor(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}};var R=class{constructor(a,b,c){this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new sa;this.l.F(this.h,google.ima.AdEvent.Type.PAUSED,()=>{this.i=!0});this.l.F(this.h,google.ima.AdEvent.Type.RESUMED,()=>{this.i=!1})}needsSkipUI(){return!1}isClientRendering(){return!0}hasCustomClick(){return!0}isUsingAnotherMediaElement(){return!0}getDuration(){return this.g.getDuration()}getMinSuggestedDuration(){return this.g.getMinSuggestedDuration()}getRemainingTime(){return this.h.getRemainingTime()}isPaused(){return this.i}isSkippable(){return this.g.getSkipTimeOffset()>=
|
|
755
755
|
0}getTimeUntilSkippable(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)}canSkipNow(){return this.h.getAdSkippableState()}skip(){return this.h.skip()}pause(){return this.h.pause()}play(){return this.h.resume()}getVolume(){return this.h.getVolume()}setVolume(a){this.m.volume=a;return this.h.setVolume(a)}isMuted(){return this.h.getVolume()==0}isLinear(){return this.g.isLinear()}resize(a,b){this.h.resize(a,b)}setMuted(a){(this.m.muted=a)?(this.j=this.getVolume(),this.h.setVolume(0)):
|
|
756
756
|
this.h.setVolume(this.j)}getSequenceLength(){const a=this.g.getAdPodInfo();return a==null?1:a.getTotalAds()}getPositionInSequence(){const a=this.g.getAdPodInfo();return a==null?1:a.getAdPosition()}getTitle(){return this.g.getTitle()}getDescription(){return this.g.getDescription()}getVastMediaBitrate(){return this.g.getVastMediaBitrate()}getVastMediaHeight(){return this.g.getVastMediaHeight()}getVastMediaWidth(){return this.g.getVastMediaWidth()}getVastAdId(){return""}getAdId(){return this.g.getAdId()}getCreativeAdId(){return this.g.getCreativeAdId()}getAdvertiserName(){return this.g.getAdvertiserName()}getMediaUrl(){return this.g.getMediaUrl()}getTimeOffset(){const a=
|
|
757
757
|
this.g.getAdPodInfo();return a==null?0:a.getTimeOffset()}getPodIndex(){const a=this.g.getAdPodInfo();return a==null?0:a.getPodIndex()}release(){this.h=this.g=null}};x("shaka.ads.ClientSideAd",R);R.prototype.release=R.prototype.release;R.prototype.getPodIndex=R.prototype.getPodIndex;R.prototype.getTimeOffset=R.prototype.getTimeOffset;R.prototype.getMediaUrl=R.prototype.getMediaUrl;R.prototype.getAdvertiserName=R.prototype.getAdvertiserName;R.prototype.getCreativeAdId=R.prototype.getCreativeAdId;
|
|
@@ -774,7 +774,7 @@ a.h.F(a.g,google.ima.AdEvent.Type.COMPLETE,c=>{b(c,"ad-complete")});a.h.F(a.g,go
|
|
|
774
774
|
c=>{b(c,"ad-duration-changed")});a.h.F(a.g,google.ima.AdEvent.Type.USER_CLOSE,c=>{b(c,"ad-closed")});a.h.F(a.g,google.ima.AdEvent.Type.LOADED,c=>{b(c,"ad-loaded")});a.h.F(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,c=>{b(c,"ad-linear-changed")});a.h.F(a.g,google.ima.AdEvent.Type.AD_METADATA,c=>{b(c,"ad-metadata")});a.h.F(a.g,google.ima.AdEvent.Type.LOG,c=>{b(c,"ad-recoverable-error")});a.h.F(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,c=>{b(c,"ad-break-ready")});a.h.F(a.g,google.ima.AdEvent.Type.INTERACTION,
|
|
775
775
|
c=>{b(c,"ad-interaction")})}
|
|
776
776
|
function Qq(a,b){const c=b.getAd();c?(a.j=new R(c,a.g,a.i),b.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||a.o.supportsMultipleMediaElements||a.l(new I("ad-content-pause-requested")),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new I("ad-started",b)),a.j.isLinear()&&(a.u.setAttribute("ad-active","true"),a.o.customPlayheadTracker||a.i.pause(),a.i.muted?(b=a.j,b.j=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):ja("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
|
|
777
|
-
var Rq=class{constructor(a,b,c,d,e){this.u=a;this.i=b;this.D=!1;this.A=this.o=null;this.G=NaN;this.l=e;this.j=null;this.h=new sa;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.C=new google.ima.AdDisplayContainer(this.u,this.i);this.C.initialize();this.m=new google.ima.AdsLoader(this.C);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.15.
|
|
777
|
+
var Rq=class{constructor(a,b,c,d,e){this.u=a;this.i=b;this.D=!1;this.A=this.o=null;this.G=NaN;this.l=e;this.j=null;this.h=new sa;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.C=new google.ima.AdDisplayContainer(this.u,this.i);this.C.initialize();this.m=new google.ima.AdsLoader(this.C);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.15.48");this.g=null;this.B=d||new google.ima.AdsRenderingSettings;this.h.F(this.m,
|
|
778
778
|
google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,f=>{Mq(this,f)});this.h.F(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,f=>{Pq(this,f)});this.h.F(this.i,"ended",()=>{this.m.contentComplete()});this.h.ya(this.i,"play",()=>{this.D=!0})}configure(a){this.o=a}stop(){this.g&&this.g.stop();this.u&&Li(this.u)}release(){this.stop();this.A&&this.A.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.C.destroy()}};var S=class{constructor(a,b,c,d,e,f){this.g=a;this.h=b;this.j=(this.i=b.isSkippable)?b.skipOffset||0:b.skipOffset;this.l=b.skipFor;this.A=c;this.o=d;this.m=e;this.u=f;this.B=b.overlay}needsSkipUI(){return!0}isClientRendering(){return!0}hasCustomClick(){return!1}isUsingAnotherMediaElement(){return this.u}getDuration(){const a=this.g.duration;return isNaN(a)?-1:a}getMinSuggestedDuration(){return this.getDuration()}getRemainingTime(){const a=this.g.duration;return isNaN(a)?-1:a-this.g.currentTime}isPaused(){return this.g.paused}isSkippable(){return this.i&&
|
|
779
779
|
this.l!=null?this.getDuration()-this.getRemainingTime()<this.j+this.l:this.i}getTimeUntilSkippable(){if(this.isSkippable()){const a=this.getRemainingTime()+this.j-this.getDuration();return Math.max(a,0)}return Math.max(this.getRemainingTime(),0)}canSkipNow(){return this.i&&this.getTimeUntilSkippable()==0}skip(){this.canSkipNow()&&this.A()}pause(){return this.g.pause()}play(){return this.g.play()}getVolume(){return this.g.volume}setVolume(a){this.g.volume=a}isMuted(){return this.g.muted}isLinear(){return this.B==
|
|
780
780
|
null}resize(){}setMuted(a){this.g.muted=a}getSequenceLength(){return this.o}getPositionInSequence(){return this.m}getTitle(){return""}getDescription(){return""}getVastMediaBitrate(){return 0}getVastMediaHeight(){return 0}getVastMediaWidth(){return 0}getVastAdId(){return""}getAdId(){return this.h.id||""}getCreativeAdId(){return""}getAdvertiserName(){return""}getMediaUrl(){return this.h.uri}getTimeOffset(){return this.h.pre?0:this.h.post?-1:this.h.startTime}getPodIndex(){return 0}release(){this.g=null}};
|
|
@@ -858,8 +858,8 @@ var W=class extends Uf{constructor(){super();this.h=this.i=this.j=this.g=null;th
|
|
|
858
858
|
this.j=new Rq(a,b,this.o,c,d=>Ar(this,d));this.j.configure(this.l)}release(){this.g&&(this.g.release(),this.g=null);this.j&&(this.j.release(),this.j=null);this.i&&(this.i.release(),this.i=null);this.h&&(this.h.release(),this.h=null);super.release()}onAssetUnload(){this.g&&this.g.stop();this.j&&this.j.stop();this.i&&this.i.stop();this.h&&this.h.stop();this.dispatchEvent(new I("ad-stopped"));this.dispatchEvent(new I("ad-content-attach-requested"));this.m=new Hq}requestClientSideAds(a){if(!this.j)throw new D(1,
|
|
859
859
|
10,10001);var b=this.j;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.G=Date.now()/1E3;b.m.requestAds(a)}updateClientSideAdsRenderingSettings(a){if(!this.j)throw new D(1,10,10001);var b=this.j;b.B=a;b.g&&b.g.updateAdsRenderingSettings(b.B)}initMediaTailor(a,b,c){this.i&&this.i.release();this.i=new xr(a,b,c,d=>Ar(this,d))}requestMediaTailorStream(a,b,c=""){if(!this.i)throw new D(1,10,10005);var d=this.i;d.o?a=Promise.reject(new D(1,10,10004)):(d.o=new Kf,mr(d,a,b),d.H=c||"",d.O=Date.now()/1E3,a=d.o);
|
|
860
860
|
return a}addMediaTailorTrackingUrl(a){if(!this.i)throw new D(1,10,10005);var b=this.i;b.G=a;b.i(new I("ads-loaded",(new Map).set("loadTime",0)))}initServerSide(a,b){if(!window.google||!google.ima||!google.ima.dai)throw new D(2,10,10002);this.h&&this.h.release();this.h=new zr(a,b,this.o,c=>Ar(this,c));this.h.configure(this.l)}requestServerSideStream(a,b=""){if(!this.h)throw new D(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&ja('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.');
|
|
861
|
-
a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.15.
|
|
862
|
-
a.mpt="Shaka Player";a.mpv="v4.15.
|
|
861
|
+
a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.15.48";c=this.h;c.j?a=Promise.reject(new D(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&(c.G=!0),c.j=new Kf,c.g.requestStream(a),c.B=b||"",c.D=Date.now()/1E3,a=c.j);return a}replaceServerSideAdTagParameters(a){if(!this.h)throw new D(1,10,10003);(a.mpt||a.mpv)&&ja('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.');
|
|
862
|
+
a.mpt="Shaka Player";a.mpv="v4.15.48";this.h.g.replaceAdTagParameters(a)}getServerSideCuePoints(){Ka("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()}getCuePoints(){let a=[];this.h&&(a=a.concat(this.h.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a}getStats(){var a=this.m;return{loadTimes:a.g,averageLoadTime:Gq(a),started:a.h,overlayAds:a.j,playedCompletely:a.l,skipped:a.m,errors:a.i}}onManifestUpdated(a){if(this.i)this.i.onManifestUpdated(a)}onDashTimedMetadata(a){this.h&&
|
|
863
863
|
a.schemeIdUri=="urn:google:dai:2018"&&this.h.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)}onHlsTimedMetadata(a,b){this.h&&this.h.g.processMetadata("ID3",a.data,b)}onCueMetadataChange(a){if(this.h)this.h.onCueMetadataChange(a)}onHLSInterstitialMetadata(a,b,c){this.l&&this.l.disableHLSInterstitial||(this.g||this.initInterstitial(null,a,b),this.g&&ir(this.g,c))}onDASHInterstitialMetadata(a,b,c){if(!this.l||!this.l.disableDASHInterstitial){var d=c.schemeIdUri;
|
|
864
864
|
if(d=="urn:mpeg:dash:event:alternativeMPD:insert:2025"||d=="urn:mpeg:dash:event:alternativeMPD:replace:2025"){if(this.g||this.initInterstitial(null,a,b),this.g){a=this.g;const l=c.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:replace:2025",m=c.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:insert:2025";if(l||m){b=c.startTime;d=c.endTime;var e=null,f=0;for(var g of c.eventNode.children)if(g.tagName=="AlternativeMPD"){var h=g.attributes.uri;if(h){var k=h;break}}else if(g.tagName=="InsertPresentation"||
|
|
865
865
|
g.tagName=="ReplacePresentation")if(h=g.attributes.url){k=rb(h);(h=G(g,"maxDuration",Vc))&&(e=h/c.timescale);(g=G(g,"returnOffset",Vc))&&(f=g/c.timescale);l&&f&&(d=b+f);break}k&&hr(a,[{id:c.id,groupId:null,startTime:b,endTime:d,uri:k,mimeType:null,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:m?f:null,playoutLimit:e,once:!1,pre:!1,post:!1,timelineRange:l&&!m,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null}])}}}else(d=="urn:mpeg:dash:event:2012"||
|
|
@@ -1790,7 +1790,7 @@ goog.exportProperty(shaka.Player.prototype,"getNonDefaultConfiguration",shaka.Pl
|
|
|
1790
1790
|
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);
|
|
1791
1791
|
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);
|
|
1792
1792
|
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);
|
|
1793
|
-
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.15.
|
|
1793
|
+
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.15.48-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
|
|
1794
1794
|
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_++};
|
|
1795
1795
|
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};
|
|
1796
1796
|
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};
|
|
@@ -904,7 +904,7 @@ V.prototype.getNetworkingEngine=V.prototype.Jb;V.prototype.getMediaElement=V.pro
|
|
|
904
904
|
V.prototype.configure=V.prototype.configure;V.prototype.releaseAllMutexes=V.prototype.Mk;V.prototype.destroyAllPreloads=V.prototype.og;V.prototype.preload=V.prototype.preload;V.prototype.detachAndSavePreload=V.prototype.Wh;V.prototype.unloadAndSavePreload=V.prototype.hl;V.prototype.load=V.prototype.load;V.prototype.updateStartTime=V.prototype.ll;V.prototype.unload=V.prototype.vc;V.prototype.detach=V.prototype.detach;V.prototype.attachCanvas=V.prototype.mj;V.prototype.attach=V.prototype.Pb;
|
|
905
905
|
V.probeSupport=function(a){a=a===void 0?!0:a;var b,c,d,e,f,g,h;return G(function(k){switch(k.h){case 1:b={};if(!a){k.A(2);break}return k.g(ui(),3);case 3:b=k.i;case 2:return c=Ic(),d=Pk(),e=ib(),k.g(e.fc(),4);case 4:return f=k.i,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=Bq,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};
|
|
906
906
|
V.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;ib();return Jc()?!0:Kc().canPlayType("application/x-mpegurl")!=""};V.setQueueManagerFactory=function(a){tq=a};V.setAdManagerFactory=function(a){sq=a};V.registerSupportPlugin=Aq;V.prototype.destroy=V.prototype.destroy;var zq=0,oq=1,lr=2,er=3;
|
|
907
|
-
V.LoadMode={DESTROYED:zq,NOT_LOADED:oq,MEDIA_SOURCE:lr,SRC_EQUALS:er};V.version="v4.15.
|
|
907
|
+
V.LoadMode={DESTROYED:zq,NOT_LOADED:oq,MEDIA_SOURCE:lr,SRC_EQUALS:er};V.version="v4.15.48";var Wr=["4","15"];qb=new function(a){this.g=a;this.i=rb;this.h=sb}(new ob(Number(Wr[0]),Number(Wr[1])));var Bq=new Map,sq=null,tq=null;function Xr(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}function Yr(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function Zr(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new bb;this.l.G(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.G(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=Zr.prototype;p.needsSkipUI=function(){return!1};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!0};p.getDuration=function(){return this.g.getDuration()};
|
|
908
908
|
p.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};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()};
|
|
909
909
|
p.play=function(){return this.h.resume()};p.getVolume=function(){return this.h.getVolume()};p.setVolume=function(a){this.m.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.m.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()};
|
|
910
910
|
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.getVastAdId=function(){return""};p.getAdId=function(){return this.g.getAdId()};
|
|
@@ -920,7 +920,7 @@ function bs(a,b,c){var d=0;b!=null&&(d=b);var e=null;c.attributes.skipoffset&&(e
|
|
|
920
920
|
startTime:d,endTime:null,uri:g,mimeType:f.attributes.type||null,isSkippable:e!=null,skipOffset:e,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:b==null,post:b==Infinity,timelineRange:!1,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});break}}}}
|
|
921
921
|
function cs(a){var b=[];a=t(Ad(a,"vmap:AdBreak"));for(var c=a.next();!c.done;c=a.next()){var d=c.value,e=d.attributes.timeOffset;e&&(c=null,e=="start"?c=null:e=="end"?c=Infinity:c=nd(e),(d=Ed(d,"vmap:AdSource"))&&(d=Ed(d,"vmap:AdTagURI"))&&(d=Bd(d))&&b.push({time:c,uri:d}))}return b}O("shaka.ads.Utils",$r);$r.ADS_LOADED="ads-loaded";$r.AD_STARTED="ad-started";$r.AD_FIRST_QUARTILE="ad-first-quartile";$r.AD_MIDPOINT="ad-midpoint";$r.AD_THIRD_QUARTILE="ad-third-quartile";$r.AD_COMPLETE="ad-complete";
|
|
922
922
|
$r.AD_STOPPED="ad-stopped";$r.AD_SKIPPED="ad-skipped";$r.AD_VOLUME_CHANGED="ad-volume-changed";$r.AD_MUTED="ad-muted";$r.AD_PAUSED="ad-paused";$r.AD_RESUMED="ad-resumed";$r.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";$r.CUEPOINTS_CHANGED="ad-cue-points-changed";$r.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";$r.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";$r.AD_CLICKED="ad-clicked";$r.AD_PROGRESS="ad-progress";$r.AD_BUFFERING="ad-buffering";$r.AD_IMPRESSION="ad-impression";
|
|
923
|
-
$r.AD_DURATION_CHANGED="ad-duration-changed";$r.AD_CLOSED="ad-closed";$r.AD_LOADED="ad-loaded";$r.ALL_ADS_COMPLETED="all-ads-completed";$r.AD_LINEAR_CHANGED="ad-linear-changed";$r.AD_METADATA="ad-metadata";$r.AD_RECOVERABLE_ERROR="ad-recoverable-error";$r.AD_ERROR="ad-error";$r.AD_BREAK_READY="ad-break-ready";$r.AD_INTERACTION="ad-interaction";$r.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";$r.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";$r.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function ds(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.F=!1;this.B=this.o=null;this.H=NaN;this.l=e;this.j=null;this.h=new bb;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.15.
|
|
923
|
+
$r.AD_DURATION_CHANGED="ad-duration-changed";$r.AD_CLOSED="ad-closed";$r.AD_LOADED="ad-loaded";$r.ALL_ADS_COMPLETED="all-ads-completed";$r.AD_LINEAR_CHANGED="ad-linear-changed";$r.AD_METADATA="ad-metadata";$r.AD_RECOVERABLE_ERROR="ad-recoverable-error";$r.AD_ERROR="ad-error";$r.AD_BREAK_READY="ad-break-ready";$r.AD_INTERACTION="ad-interaction";$r.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";$r.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";$r.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function ds(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.F=!1;this.B=this.o=null;this.H=NaN;this.l=e;this.j=null;this.h=new bb;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.15.48");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.G(this.m,
|
|
924
924
|
google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){es(f,g)});this.h.G(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){fs(f,g)});this.h.G(this.i,"ended",function(){f.m.contentComplete()});this.h.Aa(this.i,"play",function(){f.F=!0})}ds.prototype.configure=function(a){this.o=a};ds.prototype.stop=function(){this.g&&this.g.stop();this.u&&Wj(this.u)};
|
|
925
925
|
ds.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 fs(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new T("ad-error",b));gs(a,null);a.l(new T("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
|
|
926
926
|
function es(a,b){a.l(new T("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.G(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.G(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 T("ima-ad-manager-loaded",(new Map).set("imaAdManager",
|
|
@@ -1028,8 +1028,8 @@ p.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!goo
|
|
|
1028
1028
|
p.onAssetUnload=function(){this.g&&this.g.stop();this.j&&this.j.stop();this.i&&this.i.stop();this.h&&this.h.stop();this.dispatchEvent(new T("ad-stopped"));this.dispatchEvent(new T("ad-content-attach-requested"));this.m=new Xr};p.requestClientSideAds=function(a){if(!this.j)throw new S(1,10,10001);var b=this.j;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.H=Date.now()/1E3;b.m.requestAds(a)};
|
|
1029
1029
|
p.updateClientSideAdsRenderingSettings=function(a){if(!this.j)throw new S(1,10,10001);var b=this.j;b.C=a;b.g&&b.g.updateAdsRenderingSettings(b.C)};p.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new Hs(a,b,c,function(e){return Vs(d,e)})};p.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new S(1,10,10005);var d=this.i;c=c===void 0?"":c;d.l?a=Promise.reject(new S(1,10,10004)):(d.l=new Jg,Ks(d,a,b),d.I=c||"",d.P=Date.now()/1E3,a=d.l);return a};
|
|
1030
1030
|
p.addMediaTailorTrackingUrl=function(a){if(!this.i)throw new S(1,10,10005);var b=this.i;b.H=a;b.i(new T("ads-loaded",(new Map).set("loadTime",0)))};p.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new S(2,10,10002);this.h&&this.h.release();this.h=new Ts(a,b,this.o,function(d){return Vs(c,d)});this.h.configure(this.l)};
|
|
1031
|
-
p.requestServerSideStream=function(a,b){b=b===void 0?"":b;if(!this.h)throw new S(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Va('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.15.
|
|
1032
|
-
(c.H=!0),c.j=new Jg,c.g.requestStream(a),c.C=b||"",c.F=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){if(!this.h)throw new S(1,10,10003);(a.mpt||a.mpv)&&Va('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.15.
|
|
1031
|
+
p.requestServerSideStream=function(a,b){b=b===void 0?"":b;if(!this.h)throw new S(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Va('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.15.48";c=this.h;c.j?a=Promise.reject(new S(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
|
|
1032
|
+
(c.H=!0),c.j=new Jg,c.g.requestStream(a),c.C=b||"",c.F=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){if(!this.h)throw new S(1,10,10003);(a.mpt||a.mpv)&&Va('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.15.48";this.h.g.replaceAdTagParameters(a)};
|
|
1033
1033
|
p.getServerSideCuePoints=function(){pb("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};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.m;return{loadTimes:a.g,averageLoadTime:Yr(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)};
|
|
1034
1034
|
p.onDashTimedMetadata=function(a){this.h&&a.schemeIdUri=="urn:google:dai:2018"&&this.h.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)};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)};p.onHLSInterstitialMetadata=function(a,b,c){this.l&&this.l.disableHLSInterstitial||(this.g||this.initInterstitial(null,a,b),this.g&&ys(this.g,c))};
|
|
1035
1035
|
p.onDASHInterstitialMetadata=function(a,b,c){if(!this.l||!this.l.disableDASHInterstitial){var d=c.schemeIdUri;if(d=="urn:mpeg:dash:event:alternativeMPD:insert:2025"||d=="urn:mpeg:dash:event:alternativeMPD:replace:2025"){if(this.g||this.initInterstitial(null,a,b),this.g&&(a=this.g,b=c.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:replace:2025",d=c.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:insert:2025",b||d)){for(var e=c.startTime,f=c.endTime,g=null,h=0,k,l=t(c.eventNode.children),m=l.next();!m.done;m=
|
|
@@ -1594,7 +1594,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
|
|
|
1594
1594
|
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);
|
|
1595
1595
|
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);
|
|
1596
1596
|
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);
|
|
1597
|
-
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.15.
|
|
1597
|
+
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.15.48-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=class{static installAll(){for(const a of shaka.polyfill.polyfills_)try{a.callback()}catch(b){shaka.log.alwaysWarn("Error installing polyfill!",b)}}static register(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)}};goog.exportSymbol("shaka.polyfill",shaka.polyfill);goog.exportProperty(shaka.polyfill,"register",shaka.polyfill.register);
|
|
1598
1598
|
goog.exportProperty(shaka.polyfill,"installAll",shaka.polyfill.installAll);shaka.polyfill.polyfills_=[];shaka.polyfill.EmeEncryptionSchemePolyfillMediaKeySystemAccess=class{constructor(a,b,c){this.mksa_=a;this.videoScheme_=b||null;this.audioScheme_=c||null;this.keySystem=a.keySystem}getConfiguration(){const a=this.mksa_.getConfiguration();if(a.videoCapabilities)for(const b of a.videoCapabilities)b.encryptionScheme=this.videoScheme_;if(a.audioCapabilities)for(const b of a.audioCapabilities)b.encryptionScheme=this.audioScheme_;return a}createMediaKeys(){return this.mksa_.createMediaKeys()}};shaka.polyfill.EncryptionSchemeUtils=class{static guessSupportedScheme(a){const 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}static hasEncryptionScheme(a){if(!a)return!1;a=a.getConfiguration();const b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&
|
|
1599
1599
|
a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}static checkSupportedScheme(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&shaka.device.DeviceFactory.getDevice().supportsCbcsWithoutEncryptionSchemeSupport()?!0:!1}};shaka.polyfill.EmeEncryptionScheme=class{static install(){shaka.device.DeviceFactory.getDevice().supportsEncryptionSchemePolyfill()&&(shaka.polyfill.EmeEncryptionScheme.originalRMKSA_||navigator.emeEncryptionSchemePolyfilled?shaka.log.debug("EmeEncryptionSchemePolyfill:","Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(shaka.polyfill.EmeEncryptionScheme.originalRMKSA_=navigator.requestMediaKeySystemAccess,shaka.log.debug("EmeEncryptionSchemePolyfill:",
|
|
1600
1600
|
"Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=shaka.polyfill.EmeEncryptionScheme.probeRMKSA_,navigator.emeEncryptionSchemePolyfilled=!0):shaka.log.debug("EmeEncryptionSchemePolyfill:","EME not found"))}static async probeRMKSA_(a,b){goog.asserts.assert(this==navigator,'bad "this" for requestMediaKeySystemAccess');const c=await shaka.polyfill.EmeEncryptionScheme.originalRMKSA_.call(this,a,b);if(shaka.polyfill.EncryptionSchemeUtils.hasEncryptionScheme(c))return shaka.log.debug("EmeEncryptionSchemePolyfill:",
|
|
@@ -912,7 +912,7 @@ Z.prototype.seekRange=Z.prototype.Ha;Z.prototype.isVideoOnly=Z.prototype.Vg;Z.pr
|
|
|
912
912
|
Z.prototype.resetConfiguration=Z.prototype.uh;Z.prototype.getBufferFullness=Z.prototype.Se;Z.prototype.getNonDefaultConfiguration=Z.prototype.wg;Z.prototype.getConfigurationForLowLatency=Z.prototype.kg;Z.prototype.getConfiguration=Z.prototype.getConfiguration;Z.prototype.configurationForLowLatency=Z.prototype.Zf;Z.prototype.configure=Z.prototype.configure;Z.prototype.releaseAllMutexes=Z.prototype.rh;Z.prototype.destroyAllPreloads=Z.prototype.Ne;Z.prototype.preload=Z.prototype.preload;
|
|
913
913
|
Z.prototype.detachAndSavePreload=Z.prototype.Oe;Z.prototype.unloadAndSavePreload=Z.prototype.Gh;Z.prototype.load=Z.prototype.load;Z.prototype.updateStartTime=Z.prototype.Kh;Z.prototype.unload=Z.prototype.Oc;Z.prototype.detach=Z.prototype.detach;Z.prototype.attachCanvas=Z.prototype.Vf;Z.prototype.attach=Z.prototype.ob;Z.probeSupport=async function(a=!0){let b={};a&&(b=await Rl());a=Lb();const c=kn(),d=await D().o(),e={manifest:a,media:c,drm:b,hardwareResolution:d};Et.forEach((f,g)=>{e[g]=f()});return e};
|
|
914
914
|
Z.isBrowserSupported=function(){window.Promise||x("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;D();return Mb()?!0:Nb("application/x-mpegurl")};Z.setQueueManagerFactory=function(a){Dt=a};Z.setAdManagerFactory=function(a){Ct=a};Z.registerSupportPlugin=function(a,b){Et.set(a,b)};Z.prototype.destroy=Z.prototype.destroy;var bt=0,Bt=1,ds=2,Ds=3;
|
|
915
|
-
Z.LoadMode={DESTROYED:bt,NOT_LOADED:Bt,MEDIA_SOURCE:ds,SRC_EQUALS:Ds};Z.version="v4.15.
|
|
915
|
+
Z.LoadMode={DESTROYED:bt,NOT_LOADED:Bt,MEDIA_SOURCE:ds,SRC_EQUALS:Ds};Z.version="v4.15.48";var Ca;const Ft=["4","15"];Ca=new za(Number(Ft[0]),Number(Ft[1]));Ea=new Da;var Et=new Map,Ct=null,Dt=null;function Gt(a,b){a={priority:b||0,callback:a};for(b=0;b<Ht.length;b++)if(Ht[b].priority<a.priority){Ht.splice(b,0,a);return}Ht.push(a)}var It=class{};v("shaka.polyfill",It);It.register=Gt;It.installAll=function(){for(const a of Ht)try{a.callback()}catch(b){x("Error installing polyfill!",b)}};var Ht=[];var Jt=class{constructor(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}getConfiguration(){const a=this.g.getConfiguration();if(a.videoCapabilities)for(const b of a.videoCapabilities)b.encryptionScheme=this.i;if(a.audioCapabilities)for(const b of a.audioCapabilities)b.encryptionScheme=this.h;return a}createMediaKeys(){return this.g.createMediaKeys()}};function Kt(a){if(ah(a))return"cbcs";if(Zg(a)||$g(a)||Yg(a)||a==="com.huawei.wiseplay")return"cenc";x("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Lt(a){if(!a)return!1;a=a.getConfiguration();const b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}function Mt(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&D().u()?!0:!1};function Nt(){D().L()&&!Ot&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(Ot=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=Pt,navigator.emeEncryptionSchemePolyfilled=!0)}async function Pt(a,b){const c=await Ot.call(this,a,b);if(Lt(c))return navigator.requestMediaKeySystemAccess=Ot,c;navigator.requestMediaKeySystemAccess=Qt;return Qt.call(this,a,b)}
|
|
916
916
|
async function Qt(a,b){var c=Kt(a),d=[];for(var e of b){b=Rt(e.videoCapabilities,c);const f=Rt(e.audioCapabilities,c);if(!e.videoCapabilities||!e.videoCapabilities.length||b.length)if(!e.audioCapabilities||!e.audioCapabilities.length||f.length){const g=Object.assign({},e);g.videoCapabilities=b;g.audioCapabilities=f;d.push(g)}}if(!d.length)throw d=Error("Unsupported keySystem or supportedConfigurations."),d.name="NotSupportedError",d.code=DOMException.NOT_SUPPORTED_ERR,d;a=await Ot.call(this,a,d);
|
|
917
917
|
e=c=null;d[0]&&(d[0].videoCapabilities&&(c=d[0].videoCapabilities[0].encryptionScheme),d[0].audioCapabilities&&(e=d[0].audioCapabilities[0].encryptionScheme));return new Jt(a,c,e)}function Rt(a,b){return a?a.filter(c=>Mt(c.encryptionScheme,b)):a}var St=class{},Ot;It.EmeEncryptionScheme=St;St.install=Nt;Gt(Nt);function Tt(){D().L()&&!Ut&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(Ut=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=Vt,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
|
|
918
918
|
async function Vt(a){const b=await Ut.call(this,a);if(!b.supported||!a.keySystemConfiguration)return b;const c=b.keySystemAccess;if(Lt(c))return navigator.mediaCapabilities.decodingInfo=Ut,b;navigator.mediaCapabilities.decodingInfo=Wt;return c?Wt.call(this,a):(b.keySystemAccess=await Xt(a),b)}
|
|
@@ -2300,7 +2300,7 @@ goog.exportProperty(shaka.Player.prototype,"getNonDefaultConfiguration",shaka.Pl
|
|
|
2300
2300
|
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);
|
|
2301
2301
|
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);
|
|
2302
2302
|
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);
|
|
2303
|
-
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.15.
|
|
2303
|
+
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.15.48-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
|
|
2304
2304
|
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)};
|
|
2305
2305
|
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};
|
|
2306
2306
|
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};
|
|
@@ -1093,7 +1093,7 @@ Y.prototype.getNetworkingEngine=Y.prototype.Te;Y.prototype.getMediaElement=Y.pro
|
|
|
1093
1093
|
Y.prototype.configure=Y.prototype.configure;Y.prototype.releaseAllMutexes=Y.prototype.Wi;Y.prototype.destroyAllPreloads=Y.prototype.Vf;Y.prototype.preload=Y.prototype.preload;Y.prototype.detachAndSavePreload=Y.prototype.Wf;Y.prototype.unloadAndSavePreload=Y.prototype.hj;Y.prototype.load=Y.prototype.load;Y.prototype.updateStartTime=Y.prototype.lj;Y.prototype.unload=Y.prototype.qd;Y.prototype.detach=Y.prototype.detach;Y.prototype.attachCanvas=Y.prototype.xh;Y.prototype.attach=Y.prototype.Cb;
|
|
1094
1094
|
Y.probeSupport=function(a){a=a===void 0?!0:a;var b,c,d,e,f,g,h;return B(function(k){switch(k.h){case 1:b={};if(!a){k.A(2);break}return k.g(An(),3);case 3:b=k.i;case 2:return c=Cc(),d=wo(),e=D(),k.g(e.Eb(),4);case 4:return f=k.i,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=Hu,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};
|
|
1095
1095
|
Y.isBrowserSupported=function(){window.Promise||Sa("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;D();return Dc()?!0:Ec().canPlayType("application/x-mpegurl")!=""};Y.setQueueManagerFactory=function(a){at=a};Y.setAdManagerFactory=function(a){$s=a};Y.registerSupportPlugin=function(a,b){Hu.set(a,b)};Y.prototype.destroy=Y.prototype.destroy;var gt=0,Ws=1,Xt=2,Qt=3;
|
|
1096
|
-
Y.LoadMode={DESTROYED:gt,NOT_LOADED:Ws,MEDIA_SOURCE:Xt,SRC_EQUALS:Qt};Y.version="v4.15.
|
|
1096
|
+
Y.LoadMode={DESTROYED:gt,NOT_LOADED:Ws,MEDIA_SOURCE:Xt,SRC_EQUALS:Qt};Y.version="v4.15.48";var Iu=["4","15"];jb=new function(a){this.g=a;this.i=lb;this.h=mb}(new ib(Number(Iu[0]),Number(Iu[1])));var Hu=new Map,$s=null,at=null;function Ju(){}function Ku(a,b){a={priority:b||0,callback:a};for(b=0;b<Lu.length;b++)if(Lu[b].priority<a.priority){Lu.splice(b,0,a);return}Lu.push(a)}C("shaka.polyfill",Ju);Ju.register=Ku;Ju.installAll=function(){for(var a=t(Lu),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Sa("Error installing polyfill!",c)}}};var Lu=[];function Mu(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}Mu.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};Mu.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};function Nu(a){if(Wh(a))return"cbcs";if(Uh(a)||Vh(a)||Th(a)||a==="com.huawei.wiseplay")return"cenc";Sa("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Ou(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 Pu(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&D().sc()?!0:!1};function Qu(){}var Ru;function Su(){D().pe()&&!Ru&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(Ru=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=Tu,navigator.emeEncryptionSchemePolyfilled=!0)}
|
|
1097
1097
|
function Tu(a,b){var c=this,d,e;return B(function(f){if(f.h==1)return f.g(Ru.call(c,a,b),2);d=f.i;if(e=Ou(d))return navigator.requestMediaKeySystemAccess=Ru,f.return(d);navigator.requestMediaKeySystemAccess=Uu;return f.return(Uu.call(c,a,b))})}
|
|
1098
1098
|
function Uu(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,r,v;return B(function(u){if(u.h==1){d=Nu(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=Vu(h.videoCapabilities,d),l=Vu(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",
|
|
1099
1099
|
n.code=DOMException.NOT_SUPPORTED_ERR,n;return u.g(Ru.call(c,a,e),2)}q=u.i;v=r=null;e[0]&&(e[0].videoCapabilities&&(r=e[0].videoCapabilities[0].encryptionScheme),e[0].audioCapabilities&&(v=e[0].audioCapabilities[0].encryptionScheme));return u.return(new Mu(q,r,v))})}function Vu(a,b){return a?a.filter(function(c){return Pu(c.encryptionScheme,b)}):a}Ju.EmeEncryptionScheme=Qu;Qu.install=Su;Ku(Su);function Wu(){}var Xu;function Yu(){D().pe()&&!Xu&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(Xu=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=Zu,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
|
|
@@ -1512,7 +1512,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
|
|
|
1512
1512
|
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);
|
|
1513
1513
|
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);
|
|
1514
1514
|
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);
|
|
1515
|
-
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.15.
|
|
1515
|
+
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.15.48-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=class{static installAll(){for(const a of shaka.polyfill.polyfills_)try{a.callback()}catch(b){shaka.log.alwaysWarn("Error installing polyfill!",b)}}static register(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)}};goog.exportSymbol("shaka.polyfill",shaka.polyfill);goog.exportProperty(shaka.polyfill,"register",shaka.polyfill.register);
|
|
1516
1516
|
goog.exportProperty(shaka.polyfill,"installAll",shaka.polyfill.installAll);shaka.polyfill.polyfills_=[];shaka.polyfill.EmeEncryptionSchemePolyfillMediaKeySystemAccess=class{constructor(a,b,c){this.mksa_=a;this.videoScheme_=b||null;this.audioScheme_=c||null;this.keySystem=a.keySystem}getConfiguration(){const a=this.mksa_.getConfiguration();if(a.videoCapabilities)for(const b of a.videoCapabilities)b.encryptionScheme=this.videoScheme_;if(a.audioCapabilities)for(const b of a.audioCapabilities)b.encryptionScheme=this.audioScheme_;return a}createMediaKeys(){return this.mksa_.createMediaKeys()}};shaka.polyfill.EncryptionSchemeUtils=class{static guessSupportedScheme(a){const 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}static hasEncryptionScheme(a){if(!a)return!1;a=a.getConfiguration();const b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&
|
|
1517
1517
|
a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}static checkSupportedScheme(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&shaka.device.DeviceFactory.getDevice().supportsCbcsWithoutEncryptionSchemeSupport()?!0:!1}};shaka.polyfill.EmeEncryptionScheme=class{static install(){shaka.device.DeviceFactory.getDevice().supportsEncryptionSchemePolyfill()&&(shaka.polyfill.EmeEncryptionScheme.originalRMKSA_||navigator.emeEncryptionSchemePolyfilled?shaka.log.debug("EmeEncryptionSchemePolyfill:","Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(shaka.polyfill.EmeEncryptionScheme.originalRMKSA_=navigator.requestMediaKeySystemAccess,shaka.log.debug("EmeEncryptionSchemePolyfill:",
|
|
1518
1518
|
"Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=shaka.polyfill.EmeEncryptionScheme.probeRMKSA_,navigator.emeEncryptionSchemePolyfilled=!0):shaka.log.debug("EmeEncryptionSchemePolyfill:","EME not found"))}static async probeRMKSA_(a,b){goog.asserts.assert(this==navigator,'bad "this" for requestMediaKeySystemAccess');const c=await shaka.polyfill.EmeEncryptionScheme.originalRMKSA_.call(this,a,b);if(shaka.polyfill.EncryptionSchemeUtils.hasEncryptionScheme(c))return shaka.log.debug("EmeEncryptionSchemePolyfill:",
|
|
@@ -894,7 +894,7 @@ Z.prototype.seekRange=Z.prototype.Ma;Z.prototype.isVideoOnly=Z.prototype.Wg;Z.pr
|
|
|
894
894
|
Z.prototype.resetConfiguration=Z.prototype.qh;Z.prototype.getBufferFullness=Z.prototype.cf;Z.prototype.getNonDefaultConfiguration=Z.prototype.wg;Z.prototype.getConfigurationForLowLatency=Z.prototype.kg;Z.prototype.getConfiguration=Z.prototype.getConfiguration;Z.prototype.configurationForLowLatency=Z.prototype.Zf;Z.prototype.configure=Z.prototype.configure;Z.prototype.releaseAllMutexes=Z.prototype.ph;Z.prototype.destroyAllPreloads=Z.prototype.$e;Z.prototype.preload=Z.prototype.preload;
|
|
895
895
|
Z.prototype.detachAndSavePreload=Z.prototype.bf;Z.prototype.unloadAndSavePreload=Z.prototype.Hh;Z.prototype.load=Z.prototype.load;Z.prototype.updateStartTime=Z.prototype.Kh;Z.prototype.unload=Z.prototype.Hc;Z.prototype.detach=Z.prototype.detach;Z.prototype.attachCanvas=Z.prototype.Tf;Z.prototype.attach=Z.prototype.xb;Z.probeSupport=async function(a=!0){let b={};a&&(b=await qi());a=Ob();const c=Pm(),d=await A().o(),e={manifest:a,media:c,drm:b,hardwareResolution:d};At.forEach((f,g)=>{e[g]=f()});return e};
|
|
896
896
|
Z.isBrowserSupported=function(){window.Promise||ka("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;A();return Pb()?!0:Qb("application/x-mpegurl")};Z.setQueueManagerFactory=function(a){zt=a};Z.setAdManagerFactory=function(a){yt=a};Z.registerSupportPlugin=function(a,b){At.set(a,b)};Z.prototype.destroy=Z.prototype.destroy;var Ys=0,xt=1,$r=2,zs=3;
|
|
897
|
-
Z.LoadMode={DESTROYED:Ys,NOT_LOADED:xt,MEDIA_SOURCE:$r,SRC_EQUALS:zs};Z.version="v4.15.
|
|
897
|
+
Z.LoadMode={DESTROYED:Ys,NOT_LOADED:xt,MEDIA_SOURCE:$r,SRC_EQUALS:zs};Z.version="v4.15.48";var Ea;const Bt=["4","15"];Ea=new Ba(Number(Bt[0]),Number(Bt[1]));Ia=new Fa;var At=new Map,yt=null,zt=null;function Ct(a,b){a={priority:b||0,callback:a};for(b=0;b<Dt.length;b++)if(Dt[b].priority<a.priority){Dt.splice(b,0,a);return}Dt.push(a)}var Et=class{};x("shaka.polyfill",Et);Et.register=Ct;Et.installAll=function(){for(const a of Dt)try{a.callback()}catch(b){ka("Error installing polyfill!",b)}};var Dt=[];var Ft=class{constructor(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}getConfiguration(){const a=this.g.getConfiguration();if(a.videoCapabilities)for(const b of a.videoCapabilities)b.encryptionScheme=this.i;if(a.audioCapabilities)for(const b of a.audioCapabilities)b.encryptionScheme=this.h;return a}createMediaKeys(){return this.g.createMediaKeys()}};function Gt(a){if(rh(a))return"cbcs";if(ph(a)||qh(a)||oh(a)||a==="com.huawei.wiseplay")return"cenc";ka("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Ht(a){if(!a)return!1;a=a.getConfiguration();const b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}function It(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&A().u()?!0:!1};function Jt(){A().L()&&!Kt&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(Kt=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=Lt,navigator.emeEncryptionSchemePolyfilled=!0)}async function Lt(a,b){const c=await Kt.call(this,a,b);if(Ht(c))return navigator.requestMediaKeySystemAccess=Kt,c;navigator.requestMediaKeySystemAccess=Mt;return Mt.call(this,a,b)}
|
|
898
898
|
async function Mt(a,b){var c=Gt(a),d=[];for(var e of b){b=Nt(e.videoCapabilities,c);const f=Nt(e.audioCapabilities,c);if(!e.videoCapabilities||!e.videoCapabilities.length||b.length)if(!e.audioCapabilities||!e.audioCapabilities.length||f.length){const g=Object.assign({},e);g.videoCapabilities=b;g.audioCapabilities=f;d.push(g)}}if(!d.length)throw d=Error("Unsupported keySystem or supportedConfigurations."),d.name="NotSupportedError",d.code=DOMException.NOT_SUPPORTED_ERR,d;a=await Kt.call(this,a,d);
|
|
899
899
|
e=c=null;d[0]&&(d[0].videoCapabilities&&(c=d[0].videoCapabilities[0].encryptionScheme),d[0].audioCapabilities&&(e=d[0].audioCapabilities[0].encryptionScheme));return new Ft(a,c,e)}function Nt(a,b){return a?a.filter(c=>It(c.encryptionScheme,b)):a}var Ot=class{},Kt;Et.EmeEncryptionScheme=Ot;Ot.install=Jt;Ct(Jt);function Pt(){A().L()&&!Qt&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(Qt=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=Rt,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
|
|
900
900
|
async function Rt(a){const b=await Qt.call(this,a);if(!b.supported||!a.keySystemConfiguration)return b;const c=b.keySystemAccess;if(Ht(c))return navigator.mediaCapabilities.decodingInfo=Qt,b;navigator.mediaCapabilities.decodingInfo=St;return c?St.call(this,a):(b.keySystemAccess=await Tt(a),b)}
|
|
@@ -2179,7 +2179,7 @@ goog.exportProperty(shaka.Player.prototype,"getNonDefaultConfiguration",shaka.Pl
|
|
|
2179
2179
|
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);
|
|
2180
2180
|
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);
|
|
2181
2181
|
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);
|
|
2182
|
-
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.15.
|
|
2182
|
+
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.15.48-debug";goog.exportProperty(shaka.Player,"version",shaka.Player.version);shaka.Deprecate.init(shaka.Player.version);
|
|
2183
2183
|
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)};
|
|
2184
2184
|
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};
|
|
2185
2185
|
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};
|
package/dist/shaka-player.hls.js
CHANGED
|
@@ -1075,7 +1075,7 @@ X.prototype.getNetworkingEngine=X.prototype.lf;X.prototype.getMediaElement=X.pro
|
|
|
1075
1075
|
X.prototype.configure=X.prototype.configure;X.prototype.releaseAllMutexes=X.prototype.Vi;X.prototype.destroyAllPreloads=X.prototype.ig;X.prototype.preload=X.prototype.preload;X.prototype.detachAndSavePreload=X.prototype.jg;X.prototype.unloadAndSavePreload=X.prototype.jj;X.prototype.load=X.prototype.load;X.prototype.updateStartTime=X.prototype.mj;X.prototype.unload=X.prototype.kd;X.prototype.detach=X.prototype.detach;X.prototype.attachCanvas=X.prototype.wh;X.prototype.attach=X.prototype.Jb;
|
|
1076
1076
|
X.probeSupport=function(a){a=a===void 0?!0:a;var b,c,d,e,f,g,h;return H(function(k){switch(k.h){case 1:b={};if(!a){k.u(2);break}return k.g(Yj(),3);case 3:b=k.i;case 2:return c=Ec(),d=wo(),e=jb(),k.g(e.Lb(),4);case 4:return f=k.i,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=gv,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};
|
|
1077
1077
|
X.isBrowserSupported=function(){window.Promise||Wa("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;jb();return Gc()?!0:Hc().canPlayType("application/x-mpegurl")!=""};X.setQueueManagerFactory=function(a){Gt=a};X.setAdManagerFactory=function(a){Ft=a};X.registerSupportPlugin=function(a,b){gv.set(a,b)};X.prototype.destroy=X.prototype.destroy;var Mt=0,Bt=1,wu=2,pu=3;
|
|
1078
|
-
X.LoadMode={DESTROYED:Mt,NOT_LOADED:Bt,MEDIA_SOURCE:wu,SRC_EQUALS:pu};X.version="v4.15.
|
|
1078
|
+
X.LoadMode={DESTROYED:Mt,NOT_LOADED:Bt,MEDIA_SOURCE:wu,SRC_EQUALS:pu};X.version="v4.15.48";var hv=["4","15"];qb=new function(a){this.g=a;this.i=rb;this.h=sb}(new ob(Number(hv[0]),Number(hv[1])));var gv=new Map,Ft=null,Gt=null;function iv(){}function jv(a,b){a={priority:b||0,callback:a};for(b=0;b<kv.length;b++)if(kv[b].priority<a.priority){kv.splice(b,0,a);return}kv.push(a)}J("shaka.polyfill",iv);iv.register=jv;iv.installAll=function(){for(var a=r(kv),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Wa("Error installing polyfill!",c)}}};var kv=[];function lv(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}lv.prototype.getConfiguration=function(){var a=this.g.getConfiguration();if(a.videoCapabilities)for(var b=r(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.i;if(a.audioCapabilities)for(b=r(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.h;return a};lv.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};function mv(a){if(wi(a))return"cbcs";if(ui(a)||vi(a)||ti(a)||a==="com.huawei.wiseplay")return"cenc";Wa("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function nv(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 ov(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&jb().sc()?!0:!1};function pv(){}var qv;function rv(){jb().ue()&&!qv&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(qv=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=sv,navigator.emeEncryptionSchemePolyfilled=!0)}
|
|
1079
1079
|
function sv(a,b){var c=this,d,e;return H(function(f){if(f.h==1)return f.g(qv.call(c,a,b),2);d=f.i;if(e=nv(d))return navigator.requestMediaKeySystemAccess=qv,f.return(d);navigator.requestMediaKeySystemAccess=tv;return f.return(tv.call(c,a,b))})}
|
|
1080
1080
|
function tv(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,t,u;return H(function(v){if(v.h==1){d=mv(a);e=[];f=r(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=uv(h.videoCapabilities,d),l=uv(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",
|
|
1081
1081
|
n.code=DOMException.NOT_SUPPORTED_ERR,n;return v.g(qv.call(c,a,e),2)}q=v.i;u=t=null;e[0]&&(e[0].videoCapabilities&&(t=e[0].videoCapabilities[0].encryptionScheme),e[0].audioCapabilities&&(u=e[0].audioCapabilities[0].encryptionScheme));return v.return(new lv(q,t,u))})}function uv(a,b){return a?a.filter(function(c){return ov(c.encryptionScheme,b)}):a}iv.EmeEncryptionScheme=pv;pv.install=rv;jv(rv);function vv(){}var wv;function xv(){jb().ue()&&!wv&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(wv=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=yv,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
|
|
@@ -242,9 +242,9 @@ a.insert("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_
|
|
|
242
242
|
["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"],
|
|
243
243
|
["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",
|
|
244
244
|
"\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"]]))};
|
|
245
|
-
shaka.ui.Locales.Ids={
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
shaka.ui.Locales.Ids={DOWNLOAD_VIDEO_FRAME:"DOWNLOAD_VIDEO_FRAME",AD_STATISTICS:"AD_STATISTICS",SKIP_TO_LIVE:"SKIP_TO_LIVE",FULL_SCREEN:"FULL_SCREEN",AD_PROGRESS:"AD_PROGRESS",AUTO_QUALITY:"AUTO_QUALITY",LIVE:"LIVE",MORE_SETTINGS:"MORE_SETTINGS",SURROUND:"SURROUND",RESOLUTION:"RESOLUTION",AD_DURATION:"AD_DURATION",RECENTER_VR:"RECENTER_VR",AIRPLAY:"AIRPLAY",CAST:"CAST",MUTE:"MUTE",PAUSE:"PAUSE",REWIND:"REWIND",REPLAY:"REPLAY",LANGUAGE:"LANGUAGE",BACK:"BACK",VOLUME:"VOLUME",ENTER_LOOP_MODE:"ENTER_LOOP_MODE",
|
|
246
|
+
SKIP_AD:"SKIP_AD",UNRECOGNIZED_LANGUAGE:"UNRECOGNIZED_LANGUAGE",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",FAST_FORWARD:"FAST_FORWARD",CAPTIONS:"CAPTIONS",OFF:"OFF",QUALITY:"QUALITY",EXIT_LOOP_MODE:"EXIT_LOOP_MODE",EXIT_PICTURE_IN_PICTURE:"EXIT_PICTURE_IN_PICTURE",STATISTICS:"STATISTICS",AD_TIME:"AD_TIME",EXIT_FULL_SCREEN:"EXIT_FULL_SCREEN",ENTER_PICTURE_IN_PICTURE:"ENTER_PICTURE_IN_PICTURE",LOOP:"LOOP",MULTIPLE_LANGUAGES:"MULTIPLE_LANGUAGES",TOGGLE_STEREOSCOPIC:"TOGGLE_STEREOSCOPIC",PLAYBACK_RATE:"PLAYBACK_RATE",
|
|
247
|
+
CHAPTERS:"CHAPTERS",SUBTITLE_FORCED:"SUBTITLE_FORCED",NOT_APPLICABLE:"NOT_APPLICABLE",ON:"ON",SEEK:"SEEK",UNMUTE:"UNMUTE",SKIP_NEXT:"SKIP_NEXT",PLAY:"PLAY",UNDETERMINED_LANGUAGE:"UNDETERMINED_LANGUAGE"};shaka.abr={};
|
|
248
248
|
shaka.abr.Ewma=class{constructor(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}updateAlpha(a){goog.asserts.assert(a>0,"expected halfLife to be positive");this.alpha_=Math.exp(this.logHalf_/a)}sample(a,b){const c=Math.pow(this.alpha_,a);b=b*(1-c)+c*this.estimate_;isNaN(b)||(this.estimate_=b,this.totalWeight_+=a)}getEstimate(){return this.estimate_/(1-Math.pow(this.alpha_,this.totalWeight_))}};shaka.abr.EwmaBandwidthEstimator=class{constructor(){this.fast_=new shaka.abr.Ewma(2);this.slow_=new shaka.abr.Ewma(5);this.bytesSampled_=0;this.minTotalBytes_=128E3;this.minBytes_=16E3}configure(a){this.minTotalBytes_=a.minTotalBytes;this.minBytes_=a.minBytes;this.fast_.updateAlpha(a.fastHalfLife);this.slow_.updateAlpha(a.slowHalfLife)}sample(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)}}getBandwidthEstimate(a){return this.bytesSampled_<
|
|
249
249
|
this.minTotalBytes_?a:Math.min(this.fast_.getEstimate(),this.slow_.getEstimate())}hasGoodEstimate(){return this.bytesSampled_>=this.minTotalBytes_}};shaka.util.EventManager=class{constructor(){this.bindingMap_=new shaka.util.MultiMap}release(){this.removeAll();this.bindingMap_=null}listen(a,b,c,d){this.bindingMap_&&(a=new shaka.util.EventManager.Binding_(a,b,c,d),this.bindingMap_.push(b,a))}listenOnce(a,b,c,d){const e=f=>{this.unlisten(a,b,e);c(f)};this.listen(a,b,e,d)}unlisten(a,b,c){if(this.bindingMap_){var d=this.bindingMap_.get(b)||[];for(const e of d)e.target!=a||c!=e.listener&&c||(e.unlisten(),this.bindingMap_.remove(b,e))}}removeAll(){if(this.bindingMap_){var a=
|
|
250
250
|
this.bindingMap_.getAll();for(const b of a)b.unlisten();this.bindingMap_.clear()}}};goog.exportSymbol("shaka.util.EventManager",shaka.util.EventManager);goog.exportProperty(shaka.util.EventManager.prototype,"removeAll",shaka.util.EventManager.prototype.removeAll);goog.exportProperty(shaka.util.EventManager.prototype,"unlisten",shaka.util.EventManager.prototype.unlisten);goog.exportProperty(shaka.util.EventManager.prototype,"listenOnce",shaka.util.EventManager.prototype.listenOnce);
|
|
@@ -1344,7 +1344,7 @@ goog.exportProperty(shaka.Player.prototype,"getConfigurationForLowLatency",shaka
|
|
|
1344
1344
|
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);
|
|
1345
1345
|
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);
|
|
1346
1346
|
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);
|
|
1347
|
-
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.15.
|
|
1347
|
+
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.15.48-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={};
|
|
1348
1348
|
shaka.ads.AdsStats=class{constructor(){this.loadTimes_=[];this.errors_=this.skipped_=this.playedCompletely_=this.overlayAds_=this.started_=0}addLoadTime(a){this.loadTimes_.push(a)}incrementStarted(){this.started_++}incrementOverlayAds(){this.overlayAds_++}incrementPlayedCompletely(){this.playedCompletely_++}incrementSkipped(){this.skipped_++}incrementErrors(){this.errors_++}getAverageLoadTime_(){return this.loadTimes_.length?this.loadTimes_.reduce((a,b)=>a+b,0)/this.loadTimes_.length:0}getBlob(){return{loadTimes:this.loadTimes_,
|
|
1349
1349
|
averageLoadTime:this.getAverageLoadTime_(),started:this.started_,overlayAds:this.overlayAds_,playedCompletely:this.playedCompletely_,skipped:this.skipped_,errors:this.errors_}}};shaka.ads.ClientSideAd=class{constructor(a,b,c){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,()=>{this.isPaused_=!0});this.eventManager_.listen(this.manager_,google.ima.AdEvent.Type.RESUMED,()=>{this.isPaused_=!1})}needsSkipUI(){return!1}isClientRendering(){return!0}hasCustomClick(){return!0}isUsingAnotherMediaElement(){return!0}getDuration(){return this.ad_.getDuration()}getMinSuggestedDuration(){return this.ad_.getMinSuggestedDuration()}getRemainingTime(){return this.manager_.getRemainingTime()}isPaused(){return this.isPaused_}isSkippable(){return this.ad_.getSkipTimeOffset()>=
|
|
1350
1350
|
0}getTimeUntilSkippable(){var a=this.ad_.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)}canSkipNow(){return this.manager_.getAdSkippableState()}skip(){return this.manager_.skip()}setPaused(a){this.isPaused_=a}pause(){return this.manager_.pause()}play(){return this.manager_.resume()}getVolume(){return this.manager_.getVolume()}setVolume(a){this.video_.volume=a;return this.manager_.setVolume(a)}isMuted(){return this.manager_.getVolume()==0}isLinear(){return this.ad_.isLinear()}resize(a,
|
|
@@ -2529,8 +2529,9 @@ a.textContent=shaka.ui.Enums.MaterialDesignIcons.CHECKMARK;a.ariaHidden="true";r
|
|
|
2529
2529
|
c>1&&(b=this.ad.getPositionInSequence(),b=this.localization.resolve(a.AD_PROGRESS).replace("[AD_ON]",String(b)).replace("[NUM_ADS]",String(c)));var d=Math.round(this.ad.getRemainingTime()),e=this.ad.getDuration();d!=-1&&e!=-1&&isFinite(d)&&isFinite(e)?d>0?(d=shaka.ui.Utils.buildTimeString(e-d,!1),e=shaka.ui.Utils.buildTimeString(e,!1),e=d+" / "+e,b=c>1?b+("\u00a0\u00a0"+e):this.localization.resolve(a.AD_TIME).replace("[AD_TIME]",e),this.adInfo_.textContent=b,shaka.ui.Utils.setDisplay(this.adInfo_,
|
|
2530
2530
|
b!="")):this.reset_():(this.adInfo_.textContent=b,shaka.ui.Utils.setDisplay(this.adInfo_,b!=""))}}reset_(){this.timer_.stop();this.adInfo_.textContent=""}release(){this.timer_.stop();this.timer_=null;super.release()}};goog.exportSymbol("shaka.ui.AdInfo",shaka.ui.AdInfo);shaka.ui.ContextMenu=class extends shaka.ui.Element{constructor(a,b){super(a,b);this.config_=this.controls.getConfig();this.controlsContainer_=this.controls.getControlsContainer();this.children_=[];this.contextMenu_=shaka.util.Dom.createHTMLElement("div");this.contextMenu_.classList.add("shaka-no-propagation");this.contextMenu_.classList.add("shaka-context-menu");this.contextMenu_.classList.add("shaka-hidden");this.controlsContainer_.appendChild(this.contextMenu_);this.eventManager.listen(this.controlsContainer_,
|
|
2531
2531
|
"contextmenu",c=>{if(this.contextMenu_.classList.contains("shaka-hidden")){c.preventDefault();const d=this.controlsContainer_.getBoundingClientRect();this.contextMenu_.style.left=`${c.clientX-d.left}px`;this.contextMenu_.style.top=`${c.clientY-d.top}px`;shaka.ui.Utils.setDisplay(this.contextMenu_,!0)}else shaka.ui.Utils.setDisplay(this.contextMenu_,!1)});this.eventManager.listen(window,"click",()=>{shaka.ui.Utils.setDisplay(this.contextMenu_,!1)});this.eventManager.listen(this.contextMenu_,"click",
|
|
2532
|
-
()=>{shaka.ui.Utils.setDisplay(this.contextMenu_,!1)});this.createChildren_()}release(){this.controlsContainer_=null;for(const a of this.children_)a.release();this.children_=[];super.release()}closeMenu(){shaka.ui.Utils.setDisplay(this.contextMenu_,!1)}static registerElement(a,b){shaka.ui.ContextMenu.elementNamesToFactories_.set(a,
|
|
2533
|
-
"Controls should not be null!"),this.children_.push(b.create(this.contextMenu_,this.controls))):shaka.log.alwaysWarn("Unrecognized context menu element:",a)}}};goog.exportSymbol("shaka.ui.ContextMenu",shaka.ui.ContextMenu);goog.exportProperty(shaka.ui.ContextMenu,"registerElement",shaka.ui.ContextMenu.registerElement);
|
|
2532
|
+
()=>{shaka.ui.Utils.setDisplay(this.contextMenu_,!1)});this.eventManager.listen(document,"click",c=>{!this.controlsContainer_||this.contextMenu_.classList.contains("shaka-hidden")||this.controlsContainer_.contains(c.target)||this.closeMenu()});this.createChildren_()}release(){this.controlsContainer_=null;for(const a of this.children_)a.release();this.children_=[];super.release()}closeMenu(){shaka.ui.Utils.setDisplay(this.contextMenu_,!1)}static registerElement(a,b){shaka.ui.ContextMenu.elementNamesToFactories_.set(a,
|
|
2533
|
+
b)}createChildren_(){for(const a of this.config_.contextMenuElements){const b=shaka.ui.ContextMenu.elementNamesToFactories_.get(a);b?(goog.asserts.assert(this.controls,"Controls should not be null!"),this.children_.push(b.create(this.contextMenu_,this.controls))):shaka.log.alwaysWarn("Unrecognized context menu element:",a)}}};goog.exportSymbol("shaka.ui.ContextMenu",shaka.ui.ContextMenu);goog.exportProperty(shaka.ui.ContextMenu,"registerElement",shaka.ui.ContextMenu.registerElement);
|
|
2534
|
+
goog.exportProperty(shaka.ui.ContextMenu.prototype,"closeMenu",shaka.ui.ContextMenu.prototype.closeMenu);shaka.ui.ContextMenu.elementNamesToFactories_=new Map;shaka.ui.PlayButton=class extends shaka.ui.Element{constructor(a,b){super(a,b);this.button=shaka.util.Dom.createButton();this.parent.appendChild(this.button);this.eventManager.listen(this.localization,shaka.ui.Localization.LOCALE_UPDATED,()=>{this.updateAriaLabel()});this.eventManager.listen(this.localization,shaka.ui.Localization.LOCALE_CHANGED,()=>{this.updateAriaLabel()});this.eventManager.listen(this.video,"play",()=>{this.updateAriaLabel();this.updateIcon()});this.eventManager.listen(this.video,
|
|
2534
2535
|
"pause",()=>{this.updateAriaLabel();this.updateIcon()});this.eventManager.listen(this.video,"seeking",()=>{this.updateAriaLabel();this.updateIcon()});this.eventManager.listen(this.player,"loaded",()=>{this.updateAriaLabel();this.updateIcon()});this.eventManager.listen(this.adManager,shaka.ads.Utils.AD_PAUSED,()=>{this.updateAriaLabel();this.updateIcon()});this.eventManager.listen(this.adManager,shaka.ads.Utils.AD_RESUMED,()=>{this.updateAriaLabel();this.updateIcon()});this.eventManager.listen(this.adManager,
|
|
2535
2536
|
shaka.ads.Utils.AD_STARTED,()=>{this.updateAriaLabel();this.updateIcon()});this.eventManager.listen(this.adManager,shaka.ads.Utils.AD_STOPPED,()=>{this.updateAriaLabel();this.updateIcon()});this.eventManager.listen(this.button,"click",()=>{this.controls.isOpaque()&&this.controls.playPausePresentation()});this.updateAriaLabel();this.updateIcon()}isPaused(){return this.ad&&this.ad.isLinear()?this.ad.isPaused():this.controls.presentationIsPaused()}isEnded(){return this.ad&&this.ad.isLinear()?!1:this.player?
|
|
2536
2537
|
this.player.isEnded():!0}updateAriaLabel(){var a=shaka.ui.Locales.Ids;this.isEnded()&&this.video.duration?this.button.ariaLabel=this.localization.resolve(a.REPLAY):(a=this.isPaused()?a.PLAY:a.PAUSE,this.button.ariaLabel=this.localization.resolve(a))}updateIcon(){const a=shaka.ui.Enums.MaterialDesignIcons;this.isEnded()&&this.video.duration?this.button.textContent=a.REPLAY:this.button.textContent=this.isPaused()?a.PLAY:a.PAUSE}};goog.exportSymbol("shaka.ui.PlayButton",shaka.ui.PlayButton);shaka.ui.BigPlayButton=class extends shaka.ui.PlayButton{constructor(a,b){super(a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation")}updateIcon(){this.isEnded()&&this.video.duration?this.button.setAttribute("icon","replay"):this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")}};goog.exportSymbol("shaka.ui.BigPlayButton",shaka.ui.BigPlayButton);shaka.ui.HiddenSeekButton=class extends shaka.ui.Element{constructor(a,b){super(a,b);this.lastTouchEventTimeSet_=null;this.hasMoved_=this.triggeredTouchValid_=!1;this.touchStartY_=this.touchStartX_=null;this.hideSeekButtonContainerTimer_=new shaka.util.Timer(()=>{if(parseInt(this.seekValue_.textContent,10)===0)this.controls.onContainerClick(!0);this.hideSeekButtonContainer_()});this.seekContainer=shaka.util.Dom.createHTMLElement("div");this.seekContainer.classList.add("shaka-no-propagation");this.parent.appendChild(this.seekContainer);
|