decord/source/13354_BlobModule.js

35 lines
1 KiB
JavaScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 13354
// Function ID: 102134
2026-07-20 16:05:17 +00:00
// Name: BlobModule
2026-07-24 07:16:23 +00:00
// Dependencies: [27, 13355]
2026-07-20 16:05:17 +00:00
2026-07-24 07:16:23 +00:00
// Module 13354 (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) {
tmp2 = "string" === typeof BlobModule.BLOB_URI_SCHEME;
}
if (tmp2) {
closure_0 = `${BlobModule.BLOB_URI_SCHEME}:`;
if ("string" === typeof BlobModule.BLOB_URI_HOST) {
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;
return "" + closure_0 + data.data.blobId + "?offset=" + data.data.offset + "&size=" + data.size;
}
};
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;