UNPKG

cloudinary-video-player

Version:

Cloudinary Video Player

7 lines 5.86 kB
/*! * Cloudinary Video Player v3.0.1 * Built on 2025-06-09T18:03:50.334Z * https://github.com/cloudinary/cloudinary-video-player */ (self.cloudinaryVideoPlayerChunkLoading=self.cloudinaryVideoPlayerChunkLoading||[]).push([[40],{8592:(e,i,a)=>{"use strict";a.d(i,{$n:()=>t,Lp:()=>r,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),r=window.matchMedia&&window.matchMedia("(dynamic-range: high)").matches},9017:(e,i,a)=>{"use strict";a.d(i,{F0:()=>o,Fg:()=>r,IT:()=>n,T$:()=>u,Vv:()=>c,Yx:()=>l,be:()=>s,q3:()=>g,sb:()=>t});const t="cld-ia-layout-state",s="vp-ia",r="interaction-areas-container",o={PORTRAIT:"portrait",LANDSCAPE:"landscape",All:"all",CENTER:"center"},n={PULSING:"pulsing",SHADOWED:"shadowed"},l={[o.PORTRAIT]:"https://res.cloudinary.com/prod/raw/upload/v1623772481/video-player/vtts/portrait.vtt",[o.LANDSCAPE]:"https://res.cloudinary.com/prod/raw/upload/v1623772303/video-player/vtts/landscape.vtt",[o.All]:"https://res.cloudinary.com/prod/raw/upload/v1623250266/video-player/vtts/all.vtt",[o.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,i,a)=>{"use strict";a.r(i),a.d(i,{playerValidators:()=>S,sourceValidators:()=>f});var t=a(608),s=a(9017),r=a(8592),o=a(8552),n=a.n(o),l=a(8446),u=a.n(l),c=a(7531),g=a.n(c),d=a(8953),m=a.n(d),b=a(7571),p=a.n(b),y=a(5779);const v=e=>m()(e)?`:(${Object.values(e).join("/")})`:"",h={isString:e=>({value:p(),message:i=>`'${i}' should be a string${v(e)}`}),isNumber:e=>({value:g(),message:i=>`'${i}' 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:i=>i.every((i=>{for(let a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const t=i[a],s=e[a];if(!(s&&(0,y.QF)(s(t),t,a)))return!1}return!0})),message:()=>"invalid array"}),or:function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];return()=>({value:e=>i.some((i=>(0,y.O6)(i).value(e))),message:e=>i.map((i=>(0,y.O6)(i).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(r.mM)}}},8552:(e,i,a)=>{var t=a(7148),s=a(2934);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==t(e)}},7531:(e,i,a)=>{var t=a(7148),s=a(2934);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==t(e)}}}]); //# sourceMappingURL=debug.min.js.map