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

24 lines 1.05 kB
import { mixStreams as sharedMixStreams } from 'mediasfu-shared'; /** * Mixes video and audio streams and participants based on specified parameters. * * @param {MixStreamsOptions} options - The options for mixing streams. * @param {Array} options.alVideoStreams - The list of audio and video streams to mix. * @param {Array} options.non_alVideoStreams - The list of non-audio and video streams to mix. * @param {Array} options.ref_participants - The list of reference participants to mix. * @returns {Promise<Array>} A promise that resolves with the mixed streams. * @throws Will throw an error if there is an issue mixing the streams. * @example * ```typescript * const mixedStreams = await mixStreams({ * alVideoStreams: [stream1, stream2], * non_alVideoStreams: [participant1, participant2], * ref_participants: [participant1, participant2], * }); * console.log('Mixed streams:', mixedStreams); * ``` */ export async function mixStreams(options) { return sharedMixStreams(options); } //# sourceMappingURL=mixStreams.js.map