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
28 lines • 1.1 kB
JavaScript
import { resumePauseAudioStreams as sharedResumePauseAudioStreams } from 'mediasfu-shared';
/**
* Resumes or pauses audio streams based on the provided options.
*
* @param {ResumePauseAudioStreamsOptions} options - The options for resuming or pausing audio streams.
* @param {number} [options.breakRoom=-1] - The ID of the break room.
* @param {boolean} [options.inBreakRoom=false] - Indicates if the participant is in a break room.
* @param {ResumePauseAudioStreamsParameters} options.parameters - The parameters required for processing audio streams.
*
* @returns {Promise<void>} A promise that resolves when the audio streams have been processed.
*
* @throws Will log an error message if there is an issue processing the audio streams.
*
* @example
* ```typescript
* await resumePauseAudioStreams({
* breakRoom: 1,
* inBreakRoom: true,
* parameters: {
* // ...parameters here
* },
* });
* ```
*/
export const resumePauseAudioStreams = async (options) => {
await sharedResumePauseAudioStreams(options);
};
//# sourceMappingURL=resumePauseAudioStreams.js.map