decord/alpha/source/modules/channel/native/getChannelSubtitleData.tsx

37 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 16969
// Function ID: 16970
2026-07-20 16:05:17 +00:00
// Name: getChannelSubtitleData
2026-10-03 08:58:59 +00:00
// Dependencies: [1126, 2]
2026-07-20 16:05:17 +00:00
// Exports: getChannelSubtitleData
2026-10-13 12:43:34 +00:00
// Module 16969 (getChannelSubtitleData)
2026-10-03 08:58:59 +00:00
import intl2 from "intl" /* 1126 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("modules/channel/native/getChannelSubtitleData.tsx");
2026-07-20 16:05:17 +00:00
export const getChannelSubtitleData = function getChannelSubtitleData(subtitle) {
2026-10-03 08:58:59 +00:00
let intl;
2026-07-20 16:05:17 +00:00
if (null == subtitle) {
return null;
} else {
const type = subtitle.type;
if ("embedded-activities" !== type) {
if ("event" !== type) {
if ("go-live" === type) {
2026-10-03 08:58:59 +00:00
const obj2 = { subtitle: intl.string(intl2.t.Pa817q), type: subtitle.type };
intl = intl2.intl;
return obj2;
2026-07-20 16:05:17 +00:00
} else if ("voice" === type) {
const obj = { subtitle: null, type: null };
({ text: obj.subtitle, type: obj.type } = subtitle);
2026-07-20 16:05:17 +00:00
return obj;
}
}
}
2026-10-03 08:58:59 +00:00
const obj5 = { subtitle: null, type: null };
({ name: obj3.subtitle, type: obj3.type } = subtitle);
2026-10-03 08:58:59 +00:00
return obj5;
2026-07-20 16:05:17 +00:00
}
};