shaka-player 4.14.27 → 4.14.28
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 +36 -36
- package/dist/shaka-player.compiled.debug.js +6 -6
- package/dist/shaka-player.compiled.debug.map +1 -1
- package/dist/shaka-player.compiled.js +8 -8
- package/dist/shaka-player.compiled.map +2 -2
- package/dist/shaka-player.dash.debug.js +6 -6
- package/dist/shaka-player.dash.debug.map +1 -1
- package/dist/shaka-player.dash.js +5 -5
- package/dist/shaka-player.dash.map +2 -2
- package/dist/shaka-player.hls.debug.js +6 -6
- package/dist/shaka-player.hls.debug.map +1 -1
- package/dist/shaka-player.hls.js +5 -5
- package/dist/shaka-player.hls.map +2 -2
- package/dist/shaka-player.ui.debug.js +9 -9
- package/dist/shaka-player.ui.debug.map +2 -2
- package/dist/shaka-player.ui.js +9 -9
- package/dist/shaka-player.ui.map +2 -2
- package/externs/mediaerror.js +0 -9
- package/lib/player.js +1 -1
- package/lib/text/ui_text_displayer.js +10 -0
- package/lib/util/stream_utils.js +6 -0
- package/package.json +1 -1
- package/externs/cache.js +0 -16
- package/externs/css_style_declaration.js +0 -19
- package/externs/mediakeys.js +0 -18
- package/externs/msmediakeys.js +0 -103
- package/externs/remote-playback.js +0 -20
- package/externs/sourcebuffer.js +0 -15
- package/externs/texttrack.js +0 -25
- package/externs/xmlhttprequest.js +0 -33
package/dist/locales.js
CHANGED
|
@@ -912,51 +912,51 @@ shaka.ui.Locales.addTo = function(localization) {
|
|
|
912
912
|
* @const
|
|
913
913
|
*/
|
|
914
914
|
shaka.ui.Locales.Ids = {
|
|
915
|
-
|
|
916
|
-
|
|
915
|
+
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
916
|
+
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
917
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
918
|
+
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
919
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
917
920
|
SKIP_AD: 'SKIP_AD',
|
|
918
|
-
|
|
921
|
+
CHAPTERS: 'CHAPTERS',
|
|
922
|
+
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
919
923
|
VOLUME: 'VOLUME',
|
|
920
|
-
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
921
|
-
AIRPLAY: 'AIRPLAY',
|
|
922
924
|
ON: 'ON',
|
|
923
|
-
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
924
|
-
CAPTIONS: 'CAPTIONS',
|
|
925
|
-
AD_TIME: 'AD_TIME',
|
|
926
|
-
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
927
|
-
LIVE: 'LIVE',
|
|
928
|
-
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
929
|
-
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
930
|
-
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
931
|
-
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
932
|
-
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
933
|
-
REPLAY: 'REPLAY',
|
|
934
|
-
CHAPTERS: 'CHAPTERS',
|
|
935
|
-
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
936
|
-
AD_PROGRESS: 'AD_PROGRESS',
|
|
937
|
-
QUALITY: 'QUALITY',
|
|
938
925
|
FAST_FORWARD: 'FAST_FORWARD',
|
|
926
|
+
OFF: 'OFF',
|
|
939
927
|
FULL_SCREEN: 'FULL_SCREEN',
|
|
940
|
-
|
|
941
|
-
|
|
928
|
+
AD_PROGRESS: 'AD_PROGRESS',
|
|
929
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
930
|
+
RESOLUTION: 'RESOLUTION',
|
|
931
|
+
MUTE: 'MUTE',
|
|
932
|
+
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
933
|
+
REPLAY: 'REPLAY',
|
|
942
934
|
LANGUAGE: 'LANGUAGE',
|
|
943
|
-
|
|
944
|
-
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
945
|
-
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
946
|
-
DOWNLOAD_VIDEO_FRAME: 'DOWNLOAD_VIDEO_FRAME',
|
|
947
|
-
OFF: 'OFF',
|
|
948
|
-
SURROUND: 'SURROUND',
|
|
949
|
-
AD_DURATION: 'AD_DURATION',
|
|
935
|
+
PLAY: 'PLAY',
|
|
950
936
|
LOOP: 'LOOP',
|
|
951
|
-
|
|
937
|
+
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
938
|
+
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
952
939
|
STATISTICS: 'STATISTICS',
|
|
940
|
+
AD_STATISTICS: 'AD_STATISTICS',
|
|
941
|
+
SURROUND: 'SURROUND',
|
|
942
|
+
AD_TIME: 'AD_TIME',
|
|
953
943
|
CAST: 'CAST',
|
|
954
|
-
PLAY: 'PLAY',
|
|
955
|
-
RESOLUTION: 'RESOLUTION',
|
|
956
944
|
UNMUTE: 'UNMUTE',
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
945
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
946
|
+
PAUSE: 'PAUSE',
|
|
947
|
+
TOGGLE_STEREOSCOPIC: 'TOGGLE_STEREOSCOPIC',
|
|
948
|
+
REWIND: 'REWIND',
|
|
949
|
+
AIRPLAY: 'AIRPLAY',
|
|
960
950
|
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
961
|
-
|
|
951
|
+
LIVE: 'LIVE',
|
|
952
|
+
QUALITY: 'QUALITY',
|
|
953
|
+
CAPTIONS: 'CAPTIONS',
|
|
954
|
+
SEEK: 'SEEK',
|
|
955
|
+
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
956
|
+
AD_DURATION: 'AD_DURATION',
|
|
957
|
+
BACK: 'BACK',
|
|
958
|
+
RECENTER_VR: 'RECENTER_VR',
|
|
959
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
960
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
961
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
962
962
|
};
|
|
@@ -409,8 +409,8 @@ shaka.util.StreamUtils.isImageSupported_=function(a){return new Promise(function
|
|
|
409
409
|
shaka.util.StreamUtils.variantToTrack=function(a){var b=shaka.util.ManifestParserUtils,c=shaka.util.ManifestParserUtils.ContentType,d=a.audio,e=a.video,f=d?d.mimeType:null,g=e?e.mimeType:null,h=d?d.codecs:null,k=e?e.codecs:null,l=d?d.groupId:null,m=[];e&&m.push(e.mimeType);d&&m.push(d.mimeType);m=m[0]||null;var n=[];d&&n.push(d.kind);e&&n.push(e.kind);n=n[0]||null;var p=new Set;if(d)for(var q=(0,$jscomp.makeIterator)(d.roles),r=q.next();!r.done;r=q.next())p.add(r.value);if(e)for(q=(0,$jscomp.makeIterator)(e.roles),
|
|
410
410
|
r=q.next();!r.done;r=q.next())p.add(r.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,kind:n,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:m,audioMimeType:f,videoMimeType:g,codecs:"",audioCodec:h,videoCodec:k,primary:a.primary,roles:Array.from(p),audioRoles:null,forced:!1,videoId:null,audioId:null,audioGroupId:l,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,
|
|
411
411
|
audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null};if(e){a.videoId=e.id;a.originalVideoId=e.originalId;a.width=e.width||null;a.height=e.height||null;a.frameRate=e.frameRate||null;a.pixelAspectRatio=e.pixelAspectRatio||null;a.videoBandwidth=e.bandwidth||null;a.hdr=e.hdr||null;a.colorGamut=e.colorGamut||null;a.videoLayout=e.videoLayout||null;if(f=e.dependencyStream)a.width=f.width||
|
|
412
|
-
a.width,a.height=f.height||a.height,a.videoCodec=f.codecs||a.videoCodec;if(k.includes(",")){a.channelsCount=e.channelsCount;a.audioSamplingRate=e.audioSamplingRate;a.spatialAudio=e.spatialAudio;a.originalLanguage=e.originalLanguage;a.audioMimeType=g;e=k.split(",");try{a.videoCodec=b.guessCodecs(c.VIDEO,e),a.audioCodec=b.guessCodecs(c.AUDIO,e)}catch(t){}}}d&&(a.audioId=d.id,a.originalAudioId=d.originalId,a.channelsCount=d.channelsCount,
|
|
413
|
-
null,a.spatialAudio=d.spatialAudio,a.label=d.label,a.audioRoles=d.roles,a.accessibilityPurpose=d.accessibilityPurpose,a.originalLanguage=d.originalLanguage,b=d.dependencyStream)&&(a.audioCodec=b.codecs||a.audioCodec);b=[];a.videoCodec&&b.push(a.videoCodec);a.audioCodec&&b.push(a.audioCodec);a.codecs=b.join(", ");return a};
|
|
412
|
+
a.width,a.height=f.height||a.height,a.videoCodec=f.codecs||a.videoCodec,a.videoBandwidth&&f.bandwidth&&(a.videoBandwidth+=f.bandwidth);if(k.includes(",")){a.channelsCount=e.channelsCount;a.audioSamplingRate=e.audioSamplingRate;a.spatialAudio=e.spatialAudio;a.originalLanguage=e.originalLanguage;a.audioMimeType=g;e=k.split(",");try{a.videoCodec=b.guessCodecs(c.VIDEO,e),a.audioCodec=b.guessCodecs(c.AUDIO,e)}catch(t){}}}d&&(a.audioId=d.id,a.originalAudioId=d.originalId,a.channelsCount=d.channelsCount,
|
|
413
|
+
a.audioSamplingRate=d.audioSamplingRate,a.audioBandwidth=d.bandwidth||null,a.spatialAudio=d.spatialAudio,a.label=d.label,a.audioRoles=d.roles,a.accessibilityPurpose=d.accessibilityPurpose,a.originalLanguage=d.originalLanguage,b=d.dependencyStream)&&(a.audioCodec=b.codecs||a.audioCodec,a.audioBandwidth&&b.bandwidth&&(a.audioBandwidth+=b.bandwidth));b=[];a.videoCodec&&b.push(a.videoCodec);a.audioCodec&&b.push(a.audioCodec);a.codecs=b.join(", ");return a};
|
|
414
414
|
shaka.util.StreamUtils.textStreamToTrack=function(a){return{id:a.id,active:!1,type:shaka.util.ManifestParserUtils.ContentType.TEXT,bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,forced:a.forced,videoId:null,audioId:null,audioGroupId:null,
|
|
415
415
|
channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:a.originalId,originalImageId:null,accessibilityPurpose:a.accessibilityPurpose,originalLanguage:a.originalLanguage}};
|
|
416
416
|
shaka.util.StreamUtils.imageStreamToTrack=function(a){var b=shaka.util.ManifestParserUtils.ContentType,c=a.width||null,d=a.height||null,e=null;a.segmentIndex&&(e=a.segmentIndex.earliestReference());var f=a.tilesLayout;e&&(f=e.getTilesLayout()||f);f&&c!=null&&(c/=Number(f.split("x")[0]));f&&d!=null&&(d/=Number(f.split("x")[1]));return{id:a.id,active:!1,type:b.IMAGE,bandwidth:a.bandwidth||0,language:"",label:null,kind:null,width:c,height:d,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,
|
|
@@ -531,7 +531,7 @@ shaka.util.Pssh.prototype.parsePsshBox_=function(a){goog.asserts.assert(a.versio
|
|
|
531
531
|
if(a.version>0){b=a.reader.readUint32();for(var c=0;c<b;c++){var d=shaka.util.Uint8ArrayUtils.toHex(a.reader.readBytes(16));this.cencKeyIds.push(d)}}}};
|
|
532
532
|
shaka.util.Pssh.createPssh=function(a,b,c,d){goog.asserts.assert(b.byteLength==16,"Invalid system ID length");var e=a.length,f=12+b.length+4+e;d>0&&(f+=4+16*c.size);var g=new Uint8Array(f),h=shaka.util.BufferUtils.toDataView(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;d<1?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(d>0)for(h.setUint32(k,c.size),k+=4,b=shaka.util.Uint8ArrayUtils,c=(0,$jscomp.makeIterator)(c),d=c.next();!d.done;d=c.next())d=b.fromHex(d.value),
|
|
533
533
|
g.set(d,k),k+=d.length;h.setUint32(k,e);k+=4;g.set(a,k);goog.asserts.assert(k+e===f,"PSSH invalid length.");return g};shaka.util.Pssh.getPsshData=function(a){var b=8;a=shaka.util.BufferUtils.toDataView(a);var c=a.getUint8(b);b+=20;c>0&&(b+=4+16*a.getUint32(b));return shaka.util.BufferUtils.toUint8(a,b+4)};
|
|
534
|
-
shaka.util.Pssh.normaliseInitData=function(a){if(!a)return a;var b=new shaka.util.Pssh(a);if(b.data.length<=1)return a;a=[];b=(0,$jscomp.makeIterator)(b.data);for(var c=b.next(),d={};!c.done;d={initData$jscomp$
|
|
534
|
+
shaka.util.Pssh.normaliseInitData=function(a){if(!a)return a;var b=new shaka.util.Pssh(a);if(b.data.length<=1)return a;a=[];b=(0,$jscomp.makeIterator)(b.data);for(var c=b.next(),d={};!c.done;d={initData$jscomp$9:void 0},c=b.next())d.initData$jscomp$9=c.value,a.some(function(e){return function(f){return shaka.util.BufferUtils.equal(f,e.initData$jscomp$9)}}(d))||a.push(d.initData$jscomp$9);return shaka.util.Uint8ArrayUtils.concat.apply(shaka.util.Uint8ArrayUtils,(0,$jscomp.arrayFromIterable)(a))};shaka.drm.DrmEngine=function(a){var b=this;this.playerInterface_=a;this.video_=this.mediaKeys_=null;this.initializedForStorage_=this.initialized_=!1;this.licenseTimeSeconds_=0;this.currentDrmInfo_=null;this.eventManager_=new shaka.util.EventManager;this.activeSessions_=new Map;this.activeRequests_=[];this.storedPersistentSessions_=new Map;this.hasInitData_=!1;this.allSessionsLoaded_=new shaka.util.PublicPromise;this.config_=null;this.onError_=function(c){c.severity==shaka.util.Error.Severity.CRITICAL&&
|
|
535
535
|
b.allSessionsLoaded_.reject(c);a.onError(c)};this.keyStatusByKeyId_=new Map;this.announcedKeyStatusByKeyId_=new Map;this.keyStatusTimer_=new shaka.util.Timer(function(){return b.processKeyStatusChanges_()});this.usePersistentLicenses_=!1;this.mediaKeyMessageEvents_=[];this.initialRequestsSent_=!1;this.expirationTimer_=new shaka.util.Timer(function(){b.pollExpiration_()});this.allSessionsLoaded_.catch(function(){});this.destroyer_=new shaka.util.Destroyer(function(){return b.destroyNow_()});this.srcEquals_=
|
|
536
536
|
!1;this.manifestInitData_=this.mediaKeysAttached_=null;this.isPreload_=function(){return!1}};shaka.drm.DrmEngine.prototype.destroy=function(){return this.destroyer_.destroy()};
|
|
537
537
|
shaka.drm.DrmEngine.prototype.destroyNow_=function(){var a=this,b;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(c){switch(c.nextAddress){case 1:return a.eventManager_.release(),a.eventManager_=null,a.allSessionsLoaded_.reject(),a.expirationTimer_.stop(),a.expirationTimer_=null,a.keyStatusTimer_.stop(),a.keyStatusTimer_=null,c.yield(a.closeOpenSessions_(),2);case 2:if(!a.video_){c.jumpTo(3);break}shaka.drm.DrmUtils.isMediaKeysPolyfilled("webkit")||goog.asserts.assert(!a.video_.src&&
|
|
@@ -1335,8 +1335,8 @@ shaka.text.UITextDisplayer.convertLengthValue_(b.linePadding,b,this.videoContain
|
|
|
1335
1335
|
b.textAlign==e.textAlign.END)f.width="100%",f.alignItems="end";f.justifyContent=b.displayAlign==e.displayAlign.BEFORE?"flex-start":b.displayAlign==e.displayAlign.CENTER?"center":"flex-end"}g||(f.margin="0");f.fontFamily=b.fontFamily;f.fontWeight=b.fontWeight.toString();f.fontStyle=b.fontStyle;f.letterSpacing=b.letterSpacing;f.fontSize=shaka.text.UITextDisplayer.convertLengthValue_(b.fontSize,b,this.videoContainer_,this.config_?this.config_.fontScaleFactor:1);c=b.line;c!=null&&(g=b.lineInterpretation,
|
|
1336
1336
|
g==e.lineInterpretation.LINE_NUMBER&&(g=e.lineInterpretation.PERCENTAGE,h=16,this.aspectRatio_&&this.aspectRatio_<1&&(h=32),c=c<0?100+c/h*100:c/h*100),g==e.lineInterpretation.PERCENTAGE&&(f.position="absolute",b.writingMode==e.writingMode.HORIZONTAL_TOP_TO_BOTTOM?(f.width="100%",b.lineAlign==e.lineAlign.START?f.top=c+"%":b.lineAlign==e.lineAlign.END&&(f.bottom=100-c+"%")):b.writingMode==e.writingMode.VERTICAL_LEFT_TO_RIGHT?(f.height="100%",b.lineAlign==e.lineAlign.START?f.left=c+"%":b.lineAlign==
|
|
1337
1337
|
e.lineAlign.END&&(f.right=100-c+"%")):(f.height="100%",b.lineAlign==e.lineAlign.START?f.right=c+"%":b.lineAlign==e.lineAlign.END&&(f.left=100-c+"%"))));f.lineHeight=b.lineHeight;c=this.computeCuePositionAlignment_(b);c==e.positionAlign.LEFT?(f.cssFloat="left",b.position!==null&&(f.position="absolute",b.writingMode==e.writingMode.HORIZONTAL_TOP_TO_BOTTOM?(f.left=b.position+"%",f.width="auto"):f.top=b.position+"%")):c==e.positionAlign.RIGHT?(f.cssFloat="right",b.position!==null&&(f.position="absolute",
|
|
1338
|
-
b.writingMode==e.writingMode.HORIZONTAL_TOP_TO_BOTTOM?(f.right=100-b.position+"%",f.width="auto"):f.bottom=b.position+"%")):b.position!==null&&b.position!=50&&(f.position="absolute",b.writingMode==e.writingMode.HORIZONTAL_TOP_TO_BOTTOM?(f.left=b.position+"%",f.width="auto"):f.top=b.position+"%");f.textAlign=b.textAlign;f.textDecoration=b.textDecoration.join(" ");f.writingMode=b.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==b.writingMode||
|
|
1339
|
-
b.size&&(b.writingMode==e.writingMode.HORIZONTAL_TOP_TO_BOTTOM?f.width=b.size+"%":f.height=b.size+"%")};shaka.text.UITextDisplayer.getLengthValueInfo_=function(a){return(a=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(a[1]),unit:a[2]}:null};
|
|
1338
|
+
b.writingMode==e.writingMode.HORIZONTAL_TOP_TO_BOTTOM?(f.right=100-b.position+"%",f.width="auto"):f.bottom=b.position+"%")):b.position!==null&&b.position!=50&&(f.position="absolute",b.writingMode==e.writingMode.HORIZONTAL_TOP_TO_BOTTOM?(f.left=b.position+"%",f.width="auto"):f.top=b.position+"%",b.size&&(f.transform="translateX(-50%)"));f.textAlign=b.textAlign;f.textDecoration=b.textDecoration.join(" ");f.writingMode=b.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==b.writingMode||
|
|
1339
|
+
(f.webkitWritingMode=b.writingMode);b.size&&(b.writingMode==e.writingMode.HORIZONTAL_TOP_TO_BOTTOM?f.width=b.size+"%":f.height=b.size+"%")};shaka.text.UITextDisplayer.getLengthValueInfo_=function(a){return(a=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(a[1]),unit:a[2]}:null};
|
|
1340
1340
|
shaka.text.UITextDisplayer.convertLengthValue_=function(a,b,c,d){d=d===void 0?1:d;var e=shaka.text.UITextDisplayer.getLengthValueInfo_(a);if(!e)return a;a=e.unit;d*=e.value;switch(a){case "%":return shaka.text.UITextDisplayer.getAbsoluteLengthInPixels_(d/100,b,c);case "c":return shaka.text.UITextDisplayer.getAbsoluteLengthInPixels_(d,b,c);default:return d+a}};shaka.text.UITextDisplayer.getAbsoluteLengthInPixels_=function(a,b,c){return c.clientHeight*a/b.cellResolution.rows+"px"};
|
|
1341
1341
|
shaka.text.UITextDisplayer.inheritProperty_=function(a,b){for(var c=a.length-1;c>=0;c--){var d=b(a[c]);if(d||d===0)return d}return null};goog.exportSymbol("shaka.text.UITextDisplayer",shaka.text.UITextDisplayer);goog.exportProperty(shaka.text.UITextDisplayer.prototype,"enableTextDisplayer",shaka.text.UITextDisplayer.prototype.enableTextDisplayer);goog.exportProperty(shaka.text.UITextDisplayer.prototype,"setTextLanguage",shaka.text.UITextDisplayer.prototype.setTextLanguage);
|
|
1342
1342
|
goog.exportProperty(shaka.text.UITextDisplayer.prototype,"setTextVisibility",shaka.text.UITextDisplayer.prototype.setTextVisibility);goog.exportProperty(shaka.text.UITextDisplayer.prototype,"isTextVisible",shaka.text.UITextDisplayer.prototype.isTextVisible);goog.exportProperty(shaka.text.UITextDisplayer.prototype,"remove",shaka.text.UITextDisplayer.prototype.remove);goog.exportProperty(shaka.text.UITextDisplayer.prototype,"destroy",shaka.text.UITextDisplayer.prototype.destroy);
|
|
@@ -1694,7 +1694,7 @@ goog.exportProperty(shaka.Player.prototype,"resetConfiguration",shaka.Player.pro
|
|
|
1694
1694
|
goog.exportProperty(shaka.Player.prototype,"getConfiguration",shaka.Player.prototype.getConfiguration);goog.exportProperty(shaka.Player.prototype,"configurationForLowLatency",shaka.Player.prototype.configurationForLowLatency);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);
|
|
1695
1695
|
goog.exportProperty(shaka.Player.prototype,"preload",shaka.Player.prototype.preload);goog.exportProperty(shaka.Player.prototype,"detachAndSavePreload",shaka.Player.prototype.detachAndSavePreload);goog.exportProperty(shaka.Player.prototype,"unloadAndSavePreload",shaka.Player.prototype.unloadAndSavePreload);goog.exportProperty(shaka.Player.prototype,"load",shaka.Player.prototype.load);goog.exportProperty(shaka.Player.prototype,"updateStartTime",shaka.Player.prototype.updateStartTime);
|
|
1696
1696
|
goog.exportProperty(shaka.Player.prototype,"unload",shaka.Player.prototype.unload);goog.exportProperty(shaka.Player.prototype,"detach",shaka.Player.prototype.detach);goog.exportProperty(shaka.Player.prototype,"attachCanvas",shaka.Player.prototype.attachCanvas);goog.exportProperty(shaka.Player.prototype,"attach",shaka.Player.prototype.attach);goog.exportProperty(shaka.Player,"probeSupport",shaka.Player.probeSupport);goog.exportProperty(shaka.Player,"isBrowserSupported",shaka.Player.isBrowserSupported);
|
|
1697
|
-
goog.exportProperty(shaka.Player,"setAdManagerFactory",shaka.Player.setAdManagerFactory);goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.14.
|
|
1697
|
+
goog.exportProperty(shaka.Player,"setAdManagerFactory",shaka.Player.setAdManagerFactory);goog.exportProperty(shaka.Player,"registerSupportPlugin",shaka.Player.registerSupportPlugin);goog.exportProperty(shaka.Player.prototype,"destroy",shaka.Player.prototype.destroy);shaka.Player.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3};goog.exportProperty(shaka.Player,"LoadMode",shaka.Player.LoadMode);shaka.Player.TYPICAL_BUFFERING_THRESHOLD_=.5;shaka.Player.version="v4.14.28-debug";
|
|
1698
1698
|
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.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_++};
|
|
1699
1699
|
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};
|
|
1700
1700
|
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};
|