decord/source/modules/go_live/utils/getSoundshareAnalyticsContext.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

38 lines
1,007 B
TypeScript

// Module ID: 4662
// Function ID: 4663
// Name: getSoundshareAnalyticsContext
// Dependencies: [4504, 2]
// Exports: default
// Module 4662 (getSoundshareAnalyticsContext)
import closure_0 from "initialize" /* 4504 */;
const result = require("set").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) {
gameForPID = gameForPID.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: null, share_game_name: null, share_game_id: null };
obj[0] = sourcePid.soundshareSession;
obj[1] = tmp2;
obj[2] = tmp;
return obj;
}
};