sdfsdfs
This commit is contained in:
12
node_modules/pixi.js/lib/assets/detections/utils/testVideoFormat.mjs
generated
vendored
Normal file
12
node_modules/pixi.js/lib/assets/detections/utils/testVideoFormat.mjs
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
const inWorker = "WorkerGlobalScope" in globalThis && globalThis instanceof globalThis.WorkerGlobalScope;
|
||||
function testVideoFormat(mimeType) {
|
||||
if (inWorker) {
|
||||
return false;
|
||||
}
|
||||
const video = document.createElement("video");
|
||||
return video.canPlayType(mimeType) !== "";
|
||||
}
|
||||
|
||||
export { testVideoFormat };
|
||||
//# sourceMappingURL=testVideoFormat.mjs.map
|
Reference in New Issue
Block a user