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

36 lines
971 B
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 4307
2026-07-27 11:26:19 +00:00
// Function ID: 37708
2026-07-20 16:05:17 +00:00
// Name: getSoundshareAnalyticsContext
2026-07-25 08:10:48 +00:00
// Dependencies: [4151, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 4307 (getSoundshareAnalyticsContext)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
const result = require("set").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) {
2026-07-23 10:11:24 +00:00
gameForPID = gameForPID.getGameForPID(sourcePid);
2026-07-20 16:05:17 +00:00
let name;
if (null != gameForPID) {
name = gameForPID.name;
}
let id;
if (null != gameForPID) {
id = gameForPID.id;
}
tmp2 = id;
tmp = name;
}
const obj = { soundshare_session: sourcePid.soundshareSession, share_game_name: tmp, share_game_id: tmp2 };
return obj;
}
};