decord/alpha/source/modules/calls/ParticipantFocusManager.tsx

40 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 17493
// Function ID: 17494
// Name: ParticipantFocusManager
// Dependencies: [4868, 4861, 6725, 2]
2026-07-23 10:11:24 +00:00
// Module 17493 (ParticipantFocusManager)
import RTCConnectionStore from "RTCConnectionStore" /* 4868 */;
import ChannelRTCStore from "ChannelRTCStore" /* 4861 */;
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 6725 */;
2026-07-20 16:05:17 +00:00
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() {
const channelId = RTCConnectionStore.getChannelId();
2026-07-29 08:29:29 +00:00
if (null != channelId) {
const selectedParticipantId = ChannelRTCStore.getSelectedParticipantId(channelId);
const videoParticipants = ChannelRTCStore.getVideoParticipants(channelId);
const rTCConnection = RTCConnectionStore.getRTCConnection();
2026-07-29 08:29:29 +00:00
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();
const size = fn(2);
let result = size.fileFinishedImporting("modules/calls/ParticipantFocusManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default participantFocusManager;