mediasfu-reactjs
Version:
mediasfu-reactjs – React 18/19 WebRTC SDK for video conferencing, webinars, broadcasts, live streaming, chat, recording, whiteboard, and AI agents. Plug-in prebuilt rooms or build fully custom UIs.
43 lines • 1.51 kB
TypeScript
import { EventType } from '../@types/types';
export interface AutoAdjustOptions {
n: number;
eventType: EventType;
shareScreenStarted: boolean;
shared: boolean;
whiteboardStarted?: boolean;
whiteboardEnded?: boolean;
}
export type AutoAdjustType = (options: AutoAdjustOptions) => Promise<number[]>;
/**
* 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-reactjs';
*
* 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 declare function autoAdjust({ n, eventType, shareScreenStarted, shared, whiteboardStarted, whiteboardEnded }: AutoAdjustOptions): Promise<number[]>;
//# sourceMappingURL=autoAdjust.d.ts.map