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

41 lines 1.72 kB
import { getPipedProducersAlt as sharedGetPipedProducersAlt } from 'mediasfu-shared'; /** * Retrieves piped producers and signals new consumer transport for each retrieved producer. * * @param {GetPipedProducersAltOptions} options - The options for retrieving piped producers. * @param {boolean} options.community - A flag indicating if the room is a community edition room. * @param {Socket} options.nsock - The WebSocket instance used for communication. * @param {string} options.islevel - A flag indicating the level of the request. * @param {GetPipedProducersAltParameters} options.parameters - Additional parameters for the request. * @param {string} options.parameters.member - The member identifier. * @param {Function} options.parameters.signalNewConsumerTransport - A function to signal new consumer transport. * * @returns {Promise<void>} A promise that resolves when the operation is complete. * * @throws {Error} If an error occurs during the process of retrieving producers. * * @example * const options = { * community: false, * nsock: socketInstance, * islevel: '1', * parameters: { * member: 'memberId', * signalNewConsumerTransport: async ({ nsock, remoteProducerId, islevel, parameters }) => { * // Implementation for signaling new consumer transport * }, * }, * }; * * getPipedProducersAlt(options) * .then(() => { * console.log('Successfully retrieved piped producers'); * }) * .catch((error) => { * console.error('Error retrieving piped producers:', error); * }); */ export const getPipedProducersAlt = async (options) => { await sharedGetPipedProducersAlt(options); }; //# sourceMappingURL=getPipedProducersAlt.js.map