decord/source/13708_BlobModule.js
2026-08-12 06:57:52 +00:00

34 lines
1 KiB
JavaScript

// Module ID: 13708
// Function ID: 13709
// Name: BlobModule
// Dependencies: [17, 13709]
// Module 13708 (BlobModule)
let closure_0 = null;
const BlobModule = require("get ActivityIndicator").NativeModules.BlobModule;
let tmp2 = BlobModule;
if (BlobModule) {
tmp2 = typeof BlobModule.BLOB_URI_SCHEME === "string";
}
if (tmp2) {
closure_0 = `${BlobModule.BLOB_URI_SCHEME}:`;
if (typeof BlobModule.BLOB_URI_HOST === "string") {
let _HermesInternal = HermesInternal;
closure_0 = `${BlobModule.BLOB_URI_SCHEME}:` + "//" + BlobModule.BLOB_URI_HOST + "/";
}
}
require("parseURL").URL.createObjectURL = function createObjectURL(data) {
if (null === closure_0) {
const _Error = Error;
const error = new Error("Cannot create URL for blob!");
throw error;
} else {
const _HermesInternal = HermesInternal;
return "" + tmp + data.data.blobId + "?offset=" + data.data.offset + "&size=" + data.size;
}
};
require("parseURL").URL.revokeObjectURL = function revokeObjectURL(arg0) {
};
export const URL = require("parseURL").URL;