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

33 lines 1.36 kB
import { resumePauseStreams as sharedResumePauseStreams } from 'mediasfu-shared'; /** * Resumes or pauses streams based on the provided parameters. * * @param {ResumePauseStreamsOptions} options - The options for resuming or pausing streams. * @param {Object} options.parameters - The parameters for the function. * @param {Array} options.parameters.participants - The list of participants. * @param {Array} options.parameters.dispActiveNames - The list of active display names. * @param {Array} options.parameters.consumerTransports - The list of consumer transports. * @param {string} [options.parameters.screenId] - The screen producer ID. * @param {string} options.parameters.islevel - The level of the user. * * @returns {Promise<void>} A promise that resolves when the streams have been resumed or paused. * * @throws Will throw an error if there is an issue during the process of resuming or pausing streams. * * @example * ```typescript * await resumePauseStreams({ * parameters: { * participants: participantArray, * dispActiveNames: ['user1', 'user2'], * consumerTransports: transportArray, * screenId: 'screen-123', * islevel: '1', * }, * }); * ``` */ export async function resumePauseStreams(options) { await sharedResumePauseStreams(options); } //# sourceMappingURL=resumePauseStreams.js.map