UNPKG

@googleforcreators/media

Version:

Functionality for creating and working with media resources in the Web Stories editor.

3 lines (2 loc) 300 B
function e(e){const t=document.createElement("video");return t.muted=!0,t.crossOrigin="anonymous",t.preload="metadata",new Promise(((a,n)=>{t.addEventListener("loadedmetadata",(()=>a(t))),t.addEventListener("error",n),t.src=e}))}export{e as default}; //# sourceMappingURL=preloadVideoMetadata.js.map