decord/alpha/source/modules/activities/utils/getPreviewVideoAssetUrl.tsx

25 lines
849 B
TypeScript
Raw Normal View History

// Module ID: 11751
// Function ID: 11752
2026-07-20 16:05:17 +00:00
// Name: getPreviewVideoAssetUrl
// Dependencies: [1074, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 11751 (getPreviewVideoAssetUrl)
import Constants from "Constants" /* 1074 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const Endpoints = Constants.Endpoints;
const result = size.fileFinishedImporting("modules/activities/utils/getPreviewVideoAssetUrl.tsx");
2026-07-20 16:05:17 +00:00
export default function getPreviewVideoAssetUrl(arg0, banner_asset_id) {
2026-07-20 16:05:17 +00:00
if (null != CDN_HOST) {
const _HermesInternal2 = HermesInternal;
let combined = "https://" + CDN_HOST + "/app-assets/" + arg0 + "/store/" + banner_asset_id + ".mp4";
2026-07-20 16:05:17 +00:00
} else {
const _location = location;
const _HermesInternal = HermesInternal;
combined = "" + location.protocol + tmp + Endpoints.STORE_ASSET(arg0, banner_asset_id, "mp4");
2026-07-20 16:05:17 +00:00
}
return combined;
};