decord/source/modules/channel/native/getChannelSubtitleData.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

37 lines
1.1 KiB
TypeScript

// Module ID: 16229
// Function ID: 16230
// Name: getChannelSubtitleData
// Dependencies: [1114, 2]
// Exports: getChannelSubtitleData
// Module 16229 (getChannelSubtitleData)
import set from "set" /* 2 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
const result = set.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) {
let obj = { subtitle: null, type: null };
const intl = getSystemLocale.intl;
obj[0] = intl.string(getSystemLocale.t.Pa817q);
obj[1] = subtitle.type;
return obj;
} else if ("voice" === type) {
obj = { subtitle: null, type: null };
({ text: obj[0], type: obj[1] } = subtitle);
return obj;
}
}
}
obj = { subtitle: null, type: null };
({ name: obj3[0], type: obj3[1] } = subtitle);
return obj;
}
};