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

38 lines
1.1 KiB
TypeScript
Raw Normal View History

2026-09-02 09:53:35 +00:00
// Module ID: 16046
// Function ID: 16047
2026-07-20 16:05:17 +00:00
// Name: getChannelSubtitleData
2026-09-02 09:53:35 +00:00
// Dependencies: [1233, 2]
2026-07-20 16:05:17 +00:00
// Exports: getChannelSubtitleData
2026-09-02 09:53:35 +00:00
// Module 16046 (getChannelSubtitleData)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-09-02 09:53:35 +00:00
import getSystemLocale from "getSystemLocale" /* 1233 */;
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/channel/native/getChannelSubtitleData.tsx");
2026-07-20 16:05:17 +00:00
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) {
2026-07-29 08:29:29 +00:00
let obj = { subtitle: null, type: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[0] = intl.string(getSystemLocale.t.Pa817q);
2026-07-29 08:29:29 +00:00
obj[1] = subtitle.type;
2026-07-20 16:05:17 +00:00
return obj;
} else if ("voice" === type) {
2026-07-29 08:29:29 +00:00
obj = { subtitle: null, type: null };
({ text: obj[0], type: obj[1] } = subtitle);
2026-07-20 16:05:17 +00:00
return obj;
}
}
}
2026-07-29 08:29:29 +00:00
obj = { subtitle: null, type: null };
({ name: obj3[0], type: obj3[1] } = subtitle);
2026-07-20 16:05:17 +00:00
return obj;
}
};