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.43 kB
JavaScript
import { receiveAllPipedTransports as sharedReceiveAllPipedTransports } from 'mediasfu-shared';
/**
* Receives all piped transports by emitting an event to the server and processing the response.
*
* @param {ReceiveAllPipedTransportsOptions} options - The options for receiving all piped transports.
* @param {Socket} options.nsock - The socket instance used for communication.
* @param {boolean} options.community - Whether the room is a community edition room.
* @param {ReceiveAllPipedTransportsParameters} options.parameters - The parameters for the operation.
* @param {string} options.parameters.roomName - The name of the room.
* @param {string} options.parameters.member - The member identifier.
* @param {Function} options.parameters.getPipedProducersAlt - The function to get piped producers for a given level.
*
* @returns {Promise<void>} A promise that resolves when the operation is complete.
*
* @throws Will log an error message if the operation fails.
*
* @example
* ```typescript
* await receiveAllPipedTransports({
* nsock: socketInstance,
* community: false,
* parameters: {
* roomName: 'Room1',
* member: 'Member1',
* getPipedProducersAlt: getPipedProducersAltFunction,
* },
* });
* ```
*/
export const receiveAllPipedTransports = async (options) => {
await sharedReceiveAllPipedTransports(options);
};
//# sourceMappingURL=receiveAllPipedTransports.js.map