MediaSFU React Native
    Preparing search index...

    Function getEstimate

    • Estimates the number of rows and columns for a given set of parameters.

      Parameters

      Returns [number, number, number]

      An array containing the estimated number of items, rows, and columns.

      Will log an error message if an error occurs during estimation.

      const options = {
      n: 10,
      parameters: {
      fixedPageLimit: 5,
      screenPageLimit: 8,
      shareScreenStarted: false,
      shared: false,
      eventType: 'conference',
      removeAltGrid: false,
      isWideScreen: true,
      isMediumScreen: false,
      updateRemoveAltGrid: (value) => console.log('Remove Alt Grid:', value),
      calculateRowsAndColumns: ({ n }) => [3, 4], // Example implementation
      },
      };

      const estimate = getEstimate(options);
      console.log('Estimated:', estimate); // Output: Estimated: [10, 3, 4]