39 lines
1.4 KiB
TypeScript
39 lines
1.4 KiB
TypeScript
// Module ID: 16812
|
|
// Function ID: 16813
|
|
// Name: handleFocusParticipant
|
|
// Dependencies: [4454, 4396, 5367, 2]
|
|
|
|
// Module 16812 (handleFocusParticipant)
|
|
import initializeDefault from "initialize" /* 5367 */;
|
|
import closure_0 from "createRTCConnection" /* 4454 */;
|
|
import closure_1 from "getParticipants" /* 4396 */;
|
|
|
|
initializeDefault;
|
|
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() {
|
|
channelId = channelId.getChannelId();
|
|
if (null != channelId) {
|
|
channelId = store.getSelectedParticipantId(channelId);
|
|
const videoParticipants = store.getVideoParticipants(channelId);
|
|
const rTCConnection = channelId.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();
|
|
let result = require("set").fileFinishedImporting("modules/calls/ParticipantFocusManager.tsx");
|
|
|
|
export default participantFocusManager;
|