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

46 lines 1.75 kB
import { allMembersRest as sharedAllMembersRest } from 'mediasfu-shared'; /** * Handles the reception and processing of all members' data. * * @param {Object} options - The options for the function. * @param {Array} options.members - The list of members. * @param {Settings} options.settings - The settings for audio, video, screenshare, and chat. * @param {string} [options.coHoste] - Optional co-host information. * @param {CoHostResponsibility[]} [options.coHostRes] - Optional co-host responsibility information. * @param {AllMembersRestParameters} options.parameters - The parameters for the function. * @param {ConsumeSocket[]} options.consume_sockets - The sockets to consume. * @param {string} options.apiUserName - The API username. * @param {string} options.apiKey - The API key. * @param {string} options.apiToken - The API token. * * @returns {Promise<void>} A promise that resolves when the function completes. * * @example * ```typescript * await allMembersRest({ * members: memberList, * settings: { audio: 'on', video: 'on', screenshare: 'off', chat: 'on' }, * coHoste: 'coHostName', * coHostRes: [{ type: 'moderate', allowed: true }], * parameters: allParams, * consume_sockets: [socket1, socket2], * apiUserName: 'apiUser', * apiKey: 'apiKey123', * apiToken: 'tokenXYZ' * }); * ``` */ export const allMembersRest = async ({ members, settings, coHoste, coHostRes, parameters, consume_sockets, apiUserName, apiKey, apiToken, }) => { return sharedAllMembersRest({ members, settings, coHoste, coHostRes, parameters, consume_sockets, apiUserName, apiKey, apiToken, }); }; //# sourceMappingURL=allMembersRest.js.map