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

35 lines
1 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 15106
// Function ID: 115048
2026-07-20 16:05:17 +00:00
// Name: getChannelSubtitleData
2026-07-23 10:11:24 +00:00
// Dependencies: [1212, 2]
2026-07-20 16:05:17 +00:00
// Exports: getChannelSubtitleData
2026-07-25 08:10:48 +00:00
// Module 15106 (getChannelSubtitleData)
2026-07-23 10:11:24 +00:00
const result = require("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) {
let obj = {};
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
obj.subtitle = intl.string(require(1212) /* getSystemLocale */.t.Pa817q);
2026-07-20 16:05:17 +00:00
obj.type = subtitle.type;
return obj;
} else if ("voice" === type) {
obj = {};
({ text: obj.subtitle, type: obj.type } = subtitle);
return obj;
}
}
}
obj = {};
({ name: obj3.subtitle, type: obj3.type } = subtitle);
return obj;
}
};