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
48 lines • 2.28 kB
JavaScript
import { producerMediaResumed as sharedProducerMediaResumed } from 'mediasfu-shared';
/**
* Resumes media for a specific participant in a meeting.
*
* @param {ProducerMediaResumedOptions} options - The options for resuming media.
* @param {string} options.name - The name of the participant whose media is to be resumed.
* @param {ProducerMediaResumedParameters} options.parameters - The parameters related to the meeting and participants.
* @param {string} options.parameters.meetingDisplayType - The type of meeting display.
* @param {Participant[]} options.parameters.participants - The list of participants in the meeting.
* @param {boolean} options.parameters.shared - Indicates if the screen is being shared.
* @param {boolean} options.parameters.shareScreenStarted - Indicates if screen sharing has started.
* @param {boolean} options.parameters.mainScreenFilled - Indicates if the main screen is filled.
* @param {string} options.parameters.hostLabel - The label of the host.
* @param {Function} options.parameters.updateUpdateMainWindow - Function to update the main window.
* @param {Function} options.parameters.reorderStreams - Function to reorder the streams.
* @param {Function} options.parameters.prepopulateUserMedia - Function to prepopulate user media.
*
* @returns {Promise<void>} A promise that resolves when the media has been resumed.
*
* @example
* ```typescript
* const options = {
* name: "John Doe",
* kind: 'audio',
* parameters: {
* meetingDisplayType: "media",
* participants: [{ name: "John Doe", islevel: "2", videoID: "" }],
* shared: false,
* shareScreenStarted: false,
* mainScreenFilled: false,
* hostLabel: "Host",
* updateUpdateMainWindow: (update) => { console.log("Main window updated:", update); },
* reorderStreams: async (opts) => { console.log("Reordered streams:", opts); },
* prepopulateUserMedia: async (opts) => { console.log("Prepopulated user media:", opts); },
* },
* };
*
* await producerMediaResumed(options);
* ```
*/
export const producerMediaResumed = async ({ name, kind, parameters, }) => {
return sharedProducerMediaResumed({
name,
kind,
parameters,
});
};
//# sourceMappingURL=producerMediaResumed.js.map