decord/source/modules/calls/ParticipantFocusManager.tsx

40 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 16812
// Function ID: 16813
2026-07-29 08:29:29 +00:00
// Name: handleFocusParticipant
2026-08-25 06:04:03 +00:00
// Dependencies: [4454, 4396, 5367, 2]
2026-07-23 10:11:24 +00:00
2026-08-25 06:04:03 +00:00
// Module 16812 (handleFocusParticipant)
import initializeDefault from "initialize" /* 5367 */;
import closure_0 from "createRTCConnection" /* 4454 */;
import closure_1 from "getParticipants" /* 4396 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
initializeDefault;
2026-07-29 08:29:29 +00:00
class ParticipantFocusManager extends tmp2 {
constructor() {
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
map = new Map();
2026-08-24 06:08:38 +00:00
applyArgumentsResult.stores = map.set(closure_1, applyArgumentsResult.handleFocusParticipant);
2026-07-29 08:29:29 +00:00
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
ParticipantFocusManager.prototype["handleFocusParticipant"] = function handleFocusParticipant() {
channelId = channelId.getChannelId();
if (null != channelId) {
channelId = store.getSelectedParticipantId(channelId);
const videoParticipants = store.getVideoParticipants(channelId);
const rTCConnection = channelId.getRTCConnection();
if (rTCConnection != null) {
2026-08-24 06:08:38 +00:00
const found = videoParticipants.find((id) => id.id === closure_0 && !id.localVideoDisabled);
2026-07-29 08:29:29 +00:00
let id;
if (found != null) {
id = found.id;
}
const result = rTCConnection.setSelectedParticipant(id);
}
}
};
const participantFocusManager = new ParticipantFocusManager();
2026-08-24 06:08:38 +00:00
let result = require("set").fileFinishedImporting("modules/calls/ParticipantFocusManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default participantFocusManager;