decord/beta/source/modules/channel/native/getChannelSubtitleData.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

36 lines
1.1 KiB
TypeScript

// Module ID: 16566
// Function ID: 16567
// Name: getChannelSubtitleData
// Dependencies: [1119, 2]
// Exports: getChannelSubtitleData
// Module 16566 (getChannelSubtitleData)
import util from "util" /* 1119 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/channel/native/getChannelSubtitleData.tsx");
export const getChannelSubtitleData = function getChannelSubtitleData(subtitle) {
if (null == subtitle) {
return null;
} else {
const type = subtitle.type;
if ("embedded-activities" !== type) {
if ("event" !== type) {
if ("go-live" === type) {
const obj2 = { subtitle: null, type: null };
const intl = util.intl;
obj2.subtitle = intl.string(util.t.Pa817q);
obj2.type = subtitle.type;
return obj2;
} else if ("voice" === type) {
const obj = { subtitle: null, type: null };
({ text: obj.subtitle, type: obj.type } = subtitle);
return obj;
}
}
}
({ name: obj3.subtitle, type: obj3.type } = subtitle);
return { subtitle: null, type: null };
}
};