@pixi/assets
Version:
Asset manager for PixiJS, loading resolving and Cacheing
9 lines (8 loc) • 307 B
JavaScript
const inWorker = "WorkerGlobalScope" in globalThis && globalThis instanceof globalThis.WorkerGlobalScope;
function testVideoFormat(mimeType) {
return inWorker ? !1 : document.createElement("video").canPlayType(mimeType) !== "";
}
export {
testVideoFormat
};
//# sourceMappingURL=testVideoFormat.mjs.map