decord/source/13641_BlobModule.js

35 lines
1 KiB
JavaScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 13641
// Function ID: 13642
2026-07-20 16:05:17 +00:00
// Name: BlobModule
2026-08-08 06:10:11 +00:00
// Dependencies: [17, 13642]
2026-07-20 16:05:17 +00:00
2026-08-08 06:10:11 +00:00
// Module 13641 (BlobModule)
2026-07-20 16:05:17 +00:00
let closure_0 = null;
2026-07-23 10:11:24 +00:00
const BlobModule = require("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-07-23 10:11:24 +00:00
require("parseURL").URL.createObjectURL = function createObjectURL(data) {
2026-07-20 16:05:17 +00:00
if (null === closure_0) {
const _Error = Error;
const error = new Error("Cannot create URL for blob!");
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-07-23 10:11:24 +00:00
require("parseURL").URL.revokeObjectURL = function revokeObjectURL(arg0) {
2026-07-20 16:05:17 +00:00
};
2026-07-23 10:11:24 +00:00
export const URL = require("parseURL").URL;