decord/source/modules/go_live/utils/getSoundshareAnalyticsContext.tsx

37 lines
985 B
TypeScript
Raw Normal View History

// Module ID: 4773
// Function ID: 4774
2026-07-20 16:05:17 +00:00
// Name: getSoundshareAnalyticsContext
// Dependencies: [1916, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 4773 (getSoundshareAnalyticsContext)
import RunningGameStore from "RunningGameStore" /* 1916 */;
2026-07-23 10:11:24 +00:00
const size = fn(2);
const result = size.fileFinishedImporting("modules/go_live/utils/getSoundshareAnalyticsContext.tsx");
2026-07-20 16:05:17 +00:00
export default function getSoundshareAnalyticsContext(sourcePid) {
if (null == sourcePid) {
return {};
} else {
sourcePid = sourcePid.sourcePid;
let tmp;
let tmp2;
if (null != sourcePid) {
const gameForPID = RunningGameStore.getGameForPID(sourcePid);
2026-07-20 16:05:17 +00:00
let name;
2026-07-29 08:29:29 +00:00
if (gameForPID != null) {
2026-07-20 16:05:17 +00:00
name = gameForPID.name;
}
let id;
2026-07-29 08:29:29 +00:00
if (gameForPID != null) {
2026-07-20 16:05:17 +00:00
id = gameForPID.id;
}
2026-07-29 08:29:29 +00:00
tmp = id;
tmp2 = name;
2026-07-20 16:05:17 +00:00
}
const obj = { soundshare_session: sourcePid.soundshareSession, share_game_name: tmp2, share_game_id: tmp };
2026-07-20 16:05:17 +00:00
return obj;
}
};