decord/alpha/source/modules/calls/ParticipantFocusManager.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

39 lines
1.5 KiB
TypeScript

// Module ID: 17975
// Function ID: 17976
// Name: ParticipantFocusManager
// Dependencies: [4852, 4845, 7451, 2]
// Module 17975 (ParticipantFocusManager)
import RTCConnectionStore from "RTCConnectionStore" /* 4852 */;
import ChannelRTCStore from "ChannelRTCStore" /* 4845 */;
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 7451 */;
class ParticipantFocusManager extends tmp2 {
constructor() {
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
map = new Map();
applyArgumentsResult.stores = map.set(closure_1, applyArgumentsResult.handleFocusParticipant);
return applyArgumentsResult;
}
}
ParticipantFocusManager.prototype["handleFocusParticipant"] = function handleFocusParticipant() {
const channelId = RTCConnectionStore.getChannelId();
if (null != channelId) {
const selectedParticipantId = ChannelRTCStore.getSelectedParticipantId(channelId);
const videoParticipants = ChannelRTCStore.getVideoParticipants(channelId);
const rTCConnection = RTCConnectionStore.getRTCConnection();
if (rTCConnection != null) {
const found = videoParticipants.find((id) => id.id === closure_0 && !id.localVideoDisabled);
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");
export default participantFocusManager;