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
36 lines • 1.19 kB
JavaScript
import { autoAdjust as sharedAutoAdjust } from 'mediasfu-shared';
/**
* Adjusts values based on the provided options and the number of participants.
*
* @function
* @async
* @param {AutoAdjustOptions} options - The options for auto adjustment.
* @param {number} options.n - The number of participants.
* @param {string} options.eventType - The type of event (e.g., 'broadcast', 'chat', 'conference').
* @param {boolean} options.shareScreenStarted - Indicates if screen sharing has started.
* @param {boolean} options.shared - Indicates if something is shared.
*
* @returns {Promise<number[]>} A promise that resolves to an array containing the adjusted values.
*
* @example
* import { autoAdjust } from 'mediasfu-reactnative-expo';
*
* const options = {
* n: 10,
* eventType: 'conference',
* shareScreenStarted: false,
* shared: false,
* };
*
* autoAdjust(options)
* .then(values => {
* console.log('Adjusted values:', values);
* })
* .catch(error => {
* console.error('Error adjusting values:', error);
* });
*/
export const autoAdjust = async (options) => {
return sharedAutoAdjust(options);
};
//# sourceMappingURL=autoAdjust.js.map