MediaSFU React Native
    Preparing search index...

    Function autoAdjust

    • Function

      Adjusts values based on the provided options and the number of participants.

      Parameters

      • options: AutoAdjustOptions

        The options for auto adjustment.

        • n: number
        • eventType: EventType
        • shareScreenStarted: boolean
        • shared: boolean

      Returns Promise<number[]>

      A promise that resolves to an array containing the adjusted values.

      import { autoAdjust } from 'mediasfu-reactnative';

      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);
      });