decord/source/modules/go_live/utils/getSoundshareAnalyticsContext.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

36 lines
985 B
TypeScript

// Module ID: 4773
// Function ID: 4774
// Name: getSoundshareAnalyticsContext
// Dependencies: [1916, 2]
// Exports: default
// Module 4773 (getSoundshareAnalyticsContext)
import RunningGameStore from "RunningGameStore" /* 1916 */;
const size = fn(2);
const result = size.fileFinishedImporting("modules/go_live/utils/getSoundshareAnalyticsContext.tsx");
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);
let name;
if (gameForPID != null) {
name = gameForPID.name;
}
let id;
if (gameForPID != null) {
id = gameForPID.id;
}
tmp = id;
tmp2 = name;
}
const obj = { soundshare_session: sourcePid.soundshareSession, share_game_name: tmp2, share_game_id: tmp };
return obj;
}
};