UNPKG

mediasfu-reactnative-expo

Version:

mediasfu-reactnative-expo – Expo-managed React Native WebRTC SDK for video conferencing, webinars, live streaming, broadcast, screen sharing, whiteboard, chat, recording, live subtitles, translation, and AI agent rooms on iOS, Android, and web. Prebuilt r

61 lines 1.67 kB
import { focusPanelists as sharedFocusPanelists, unfocusPanelists as sharedUnfocusPanelists, } from 'mediasfu-shared'; /** * Focuses the display on panelists only. * When enabled, only panelists appear on the grid. * Optionally mutes other participants' mic and/or camera. * * @param {FocusPanelistsOptions} options - Options for focusing panelists. * * @example * ```typescript * await focusPanelists({ * socket, * roomName: "room123", * member: "currentUser", * islevel: "2", * focusEnabled: true, * muteOthersMic: true, * muteOthersCamera: false, * showAlert: (alert) => console.log(alert.message), * }); * ``` */ export const focusPanelists = async ({ socket, roomName, member, islevel, focusEnabled, muteOthersMic = false, muteOthersCamera = false, showAlert, }) => { await sharedFocusPanelists({ socket, roomName, member, islevel, focusEnabled, muteOthersMic, muteOthersCamera, showAlert, }); }; /** * Disables panelist focus mode. * All participants will be shown on the grid again. * * @param {UnfocusPanelistsOptions} options - Options for unfocusing panelists. * * @example * ```typescript * await unfocusPanelists({ * socket, * roomName: "room123", * member: "currentUser", * islevel: "2", * showAlert: (alert) => console.log(alert.message), * }); * ``` */ export const unfocusPanelists = async ({ socket, roomName, member, islevel, showAlert, }) => { await sharedUnfocusPanelists({ socket, roomName, member, islevel, showAlert, }); }; //# sourceMappingURL=focusPanelists.js.map