decord/source/13802_BlobModule.js

38 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 13802
// Function ID: 13803
2026-07-20 16:05:17 +00:00
// Name: BlobModule
2026-08-24 06:08:38 +00:00
// Dependencies: [17, 13803]
// Module 13802 (BlobModule)
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import parseURL from "parseURL" /* 13803 */;
2026-07-20 16:05:17 +00:00
let closure_0 = null;
2026-08-24 06:08:38 +00:00
const BlobModule = get_ActivityIndicator.NativeModules.BlobModule;
2026-07-20 16:05:17 +00:00
let tmp2 = BlobModule;
if (BlobModule) {
2026-08-04 21:03:28 +00:00
tmp2 = typeof BlobModule.BLOB_URI_SCHEME === "string";
2026-07-20 16:05:17 +00:00
}
if (tmp2) {
closure_0 = `${BlobModule.BLOB_URI_SCHEME}:`;
2026-08-04 21:03:28 +00:00
if (typeof BlobModule.BLOB_URI_HOST === "string") {
2026-07-23 10:11:24 +00:00
let _HermesInternal = HermesInternal;
2026-07-20 16:05:17 +00:00
closure_0 = `${BlobModule.BLOB_URI_SCHEME}:` + "//" + BlobModule.BLOB_URI_HOST + "/";
}
}
2026-08-24 06:08:38 +00:00
parseURL.URL.createObjectURL = function createObjectURL(data) {
2026-07-20 16:05:17 +00:00
if (null === closure_0) {
const _Error = Error;
2026-08-24 06:08:38 +00:00
error = new Error("Cannot create URL for blob!");
2026-07-20 16:05:17 +00:00
throw error;
} else {
const _HermesInternal = HermesInternal;
2026-07-29 08:29:29 +00:00
return "" + tmp + data.data.blobId + "?offset=" + data.data.offset + "&size=" + data.size;
2026-07-20 16:05:17 +00:00
}
};
2026-08-24 06:08:38 +00:00
parseURL.URL.revokeObjectURL = function revokeObjectURL(arg0) {
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
export const URL = parseURL.URL;