INNER CODE UNIT · TypeScript

PreferAuto

AgoraIO-Extensions/react-native-agora · src/AgoraBase.ts:1317

  PreferAuto = -1,
  /**
   * 0: Software encoder preference. The SDK prioritizes using the software encoder for video encoding.
   */
  PreferSoftware = 0,
  /**
   * 1: Hardware encoder preference. The SDK prioritizes using the hardware encoder for video encoding. If the device does not support hardware encoding, the SDK automatically switches to software encoding and reports the current encoder type via the hwEncoderAccelerating field in the onLocalVideoStats callback.
   */
  PreferHardware = 1,
}

/**
 * Advanced options for video encoding.
 */
export class AdvanceOptions {
  /**
   * Video encoder preference. See EncodingPreference.
   */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…