MediaSFU React Native
    Preparing search index...

    Function compareActiveNames

    • Compares the current active names with the previous active names and triggers an action if there are changes.

      Parameters

      Returns Promise<void>

      A promise that resolves when the comparison is complete.

      Will log an error message if an error occurs during the comparison.

      const options = {
      restart: false,
      parameters: {
      getUpdatedAllParams: getUpdatedAllParamsFunction,
      activeNames: ['name1', 'name2'],
      prevActiveNames: ['name1'],
      updatePrevActiveNames: updatePrevActiveNamesFunction,
      trigger: triggerFunction,
      },
      };

      compareActiveNames(options)
      .then(() => {
      console.log('Active names compared successfully');
      });