cloudinary-video-player
Version:
Cloudinary Video Player
2 lines • 5.68 kB
JavaScript
(self.cloudinaryVideoPlayerChunkLoading=self.cloudinaryVideoPlayerChunkLoading||[]).push([[40],{8592:(e,a,i)=>{i.d(a,{$n:()=>t,Lp:()=>o,mM:()=>s});const t={fastStart:{capLevelToPlayerSize:!0,ignoreDevicePixelRatio:!0,maxDevicePixelRatio:2,abrEwmaDefaultEstimate:4194304,abrEwmaDefaultEstimateMax:4194304,enableWorker:!1,startLevel:0},balanced:{capLevelToPlayerSize:!0,ignoreDevicePixelRatio:!0,maxDevicePixelRatio:2,abrEwmaDefaultEstimate:4194304,abrEwmaDefaultEstimateMax:4194304,enableWorker:!1},highQuality:{capLevelToPlayerSize:!0,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:2,abrEwmaDefaultEstimate:4194304,abrEwmaDefaultEstimateMax:4194304,enableWorker:!1}},s=Object.keys(t),o=window.matchMedia&&window.matchMedia("(dynamic-range: high)").matches},9017:(e,a,i)=>{i.d(a,{F0:()=>r,Fg:()=>o,IT:()=>n,T$:()=>u,Vv:()=>c,Yx:()=>l,be:()=>s,q3:()=>g,sb:()=>t});const t="cld-ia-layout-state",s="vp-ia",o="interaction-areas-container",r={PORTRAIT:"portrait",LANDSCAPE:"landscape",All:"all",CENTER:"center"},n={PULSING:"pulsing",SHADOWED:"shadowed"},l={[r.PORTRAIT]:"https://res.cloudinary.com/prod/raw/upload/v1623772481/video-player/vtts/portrait.vtt",[r.LANDSCAPE]:"https://res.cloudinary.com/prod/raw/upload/v1623772303/video-player/vtts/landscape.vtt",[r.All]:"https://res.cloudinary.com/prod/raw/upload/v1623250266/video-player/vtts/all.vtt",[r.CENTER]:"https://res.cloudinary.com/prod/raw/upload/v1623250265/video-player/vtts/center.vtt"},u="https://res.cloudinary.com/prod/image/upload/v1626764643/video-player/interaction-area-hand.svg",c=4500,g=250},9754:(e,a,i)=>{i.r(a),i.d(a,{playerValidators:()=>S,sourceValidators:()=>f});var t=i(608),s=i(9017),o=i(8592),r=i(8552),n=i.n(r),l=i(8446),u=i.n(l),c=i(7531),g=i.n(c),d=i(8953),m=i.n(d),b=i(7571),p=i.n(b),y=i(5779);const v=e=>m()(e)?`:(${Object.values(e).join("/")})`:"",h={isString:e=>({value:p(),message:a=>`'${a}' should be a string${v(e)}`}),isNumber:e=>({value:g(),message:a=>`'${a}' should be a number${v(e)}`}),isBoolean:()=>({value:n(),message:e=>`'${e}' should be a boolean`}),isFunction:()=>({value:u(),message:e=>`'${e}' should be a function`}),isPlainObject:()=>({value:m(),message:e=>`'${e}' should be an object`}),isObject:()=>({value:e=>e&&"object"==typeof e,message:e=>`'${e}' should be an object`}),isArray:()=>({value:Array.isArray,message:e=>`'${e}' should be an array`}),isArrayOfNumbers:()=>({value:e=>Array.isArray(e)&&e.every(g()),message:e=>`'${e}' should be an array of numbers`}),isArrayOfStrings:()=>({value:e=>Array.isArray(e)&&e.every(p()),message:e=>`'${e}' should be an array of strings`}),isArrayOfObjects:e=>({value:a=>a.every((a=>{for(let i in a)if(Object.prototype.hasOwnProperty.call(a,i)){const t=a[i],s=e[i];if(!s||!(0,y.QF)(s(t),t,i))return!1}return!0})),message:()=>"invalid array"}),or:function(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return()=>({value:e=>a.some((a=>(0,y.O6)(a).value(e))),message:e=>a.map((a=>(0,y.O6)(a).message(e))).join(" or ")})}},S={videojsOptions:{loop:h.isBoolean,controls:h.isBoolean,autoplay:h.isBoolean,autoplayMode:h.isString(t.HJ),bigPlayButton:h.isBoolean,playbackRates:h.isArray,showLogo:h.isBoolean,logoImageUrl:h.isString,logoOnclickUrl:h.isString,videoJS:h.isPlainObject,maxTries:h.isNumber,muted:h.isBoolean,playsinline:h.isBoolean,videoTimeout:h.isNumber,preload:h.isString,sourceTransformation:h.isPlainObject,allowUsageReport:h.isBoolean,interactionAreas:{theme:{template:h.isString(s.IT)},layout:{enable:h.isBoolean,showAgain:h.isBoolean}}},playerOptions:{debug:h.isBoolean,queryParams:h.isPlainObject,publicId:h.isString,fluid:h.isBoolean,withCredentials:h.isBoolean,analytics:h.isBoolean,cloudinaryAnalytics:h.or(h.isBoolean,h.isPlainObject),hideContextMenu:h.isBoolean,playedEventPercents:h.isArrayOfNumbers,showJumpControls:h.isBoolean,chaptersButton:h.isBoolean,pictureInPictureToggle:h.isBoolean,seekThumbnails:h.isBoolean,aiHighlightsGraph:h.isBoolean,floatingWhenNotVisible:h.isString(t.rT),playedEventTimes:h.isArray,playlistWidget:{direction:h.isString,total:h.isNumber},colors:{base:h.isString,accent:h.isString,text:h.isString},ads:{adTagUrl:h.isString,showCountdown:h.isBoolean,adLabel:h.isString,locale:h.isString,prerollTimeout:h.isNumber,postrollTimeout:h.isNumber,adsInPlaylist:h.isString(t.KE)},cloudinary:{autoShowRecommendations:h.isBoolean,sourceTypes:h.isArrayOfStrings,transformation:h.isObject,fontFace:h.isString,posterOptions:{publicId:h.isString,transformation:h.isObject}}}},f={raw_transformation:h.isString,shoppable:h.isPlainObject,chapters:h.or(h.isBoolean,h.isPlainObject),visualSearch:h.or(h.isBoolean),interactionAreas:{enable:h.isBoolean,template:h.or(h.isString(s.F0),h.isArray),vttUrl:h.isString,onClick:h.isFunction},textTracks:{options:{theme:h.isString,fontFace:h.isString,fontSize:h.isString,gravity:h.isString,box:h.isPlainObject,style:h.isPlainObject,wordHighlightStyle:h.isPlainObject},captions:{label:h.isString,language:h.isString,default:h.isBoolean,url:h.isString,maxWords:h.isNumber,wordHighlight:h.isBoolean,timeOffset:h.isNumber},subtitles:h.isArrayOfObjects({label:h.isString,language:h.isString,default:h.isBoolean,url:h.isString,maxWords:h.isNumber,wordHighlight:h.isBoolean,timeOffset:h.isNumber})},info:{title:h.isString,subtitle:h.isString,description:h.isString},cloudinary:{sourceTypes:h.isArrayOfStrings,transformation:h.isObject},adaptiveStreaming:{strategy:h.isString(o.mM)}}},8552:(e,a,i)=>{var t=i(7148),s=i(2934);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==t(e)}},7531:(e,a,i)=>{var t=i(7148),s=i(2934);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==t(e)}}}]);
//# sourceMappingURL=debug.js.map