decord/source/5455_parsePossibleSources.js
2026-07-21 22:01:30 +00:00

39 lines
916 B
JavaScript

// Module ID: 5455
// Function ID: 46615
// Name: parsePossibleSources
// Dependencies: []
// Exports: parsePossibleSources
// Module 5455 (parsePossibleSources)
const Image = require(dependencyMap[0]).Image;
export const parsePossibleSources = function parsePossibleSources(uri) {
uri = uri.uri;
if ("string" === typeof uri) {
let obj = { sourceName: uri };
} else {
if ("object" === tmp) {
if (!uri) {
obj = {};
const _JSON = JSON;
obj.sourceJson = JSON.stringify(uri);
}
}
if ("object" !== tmp) {
let tmp3;
if ("number" === tmp) {
obj = { sourceDotLottieURI: Image.resolveAssetSource(uri).uri };
tmp3 = obj;
}
}
const obj1 = {};
if (uri.includes(".lottie")) {
obj1.sourceDotLottieURI = uri;
let tmp5 = obj1;
} else {
obj1.sourceURL = uri;
tmp5 = obj1;
}
}
return obj;
};