INNER CODE UNIT · TypeScript
PreferCompressionAuto
AgoraIO-Extensions/react-native-agora · src/AgoraBase.ts:1299
PreferCompressionAuto = -1,
/**
* 0: Low latency preference. The SDK compresses video frames to reduce latency. Suitable for scenarios where smoothness is prioritized and some quality loss is acceptable.
*/
PreferLowLatency = 0,
/**
* 1: High quality preference. The SDK compresses video frames while maintaining video quality. Suitable for scenarios where video quality is prioritized.
*/
PreferQuality = 1,
}
/**
* Video encoder preference.
*/
export enum EncodingPreference {
/**
* -1: Adaptive preference. The SDK automatically selects the optimal encoder type based on platform, device type, and other factors.
*/