React Native Api Reference - v2.0.0
    Preparing search index...

    Function addVideoEffectsStatsListener

      • Subscribes to the effects pipeline's per-second measurements.

      • This is a diagnostic stream that is off in every normal build. It only runs when a flag was set before the SDK initialised — Android adb shell settings put global videosdk_effects_stats 1, iOS VIDEOSDK_EFFECTS_STATS=1 in the process environment — and it is room-scoped, so nothing arrives before join. No JS API turns it on.

      Parameters

      Returns () => void

      The function that removes the listener.

      import { addVideoEffectsStatsListener } from "@videosdk.live/react-native-sdk";

      const removeListener = addVideoEffectsStatsListener((stats) => {
      console.log(stats.fpsEncoded, stats.cpuMsP95);
      });

      // later
      removeListener();