Agora Objective-C API Reference for iOS/macOS

AgoraVideoRenderMode Constants Reference

Declared in AgoraEnumerates.h

AgoraVideoRenderMode

Video display mode.

Definition

typedef NS_ENUM(NSUInteger, AgoraVideoRenderMode ) {
   AgoraVideoRenderModeHidden = 1,
   AgoraVideoRenderModeFit = 2,
   AgoraVideoRenderModeAdaptive = 3,
};

Constants

AgoraVideoRenderModeHidden

Hidden(1): Uniformly scale the video until it fills the visible boundaries (cropped). One dimension of the video may have clipped contents.

Declared In AgoraEnumerates.h.

AgoraVideoRenderModeFit

Fit(2): Uniformly scale the video until one of its dimension fits the boundary (zoomed to fit). Areas that are not filled due to the disparity in the aspect ratio are filled with black.

Declared In AgoraEnumerates.h.

AgoraVideoRenderModeAdaptive

Adaptive(3):This mode is deprecated.

Declared In AgoraEnumerates.h.

Declared In

AgoraEnumerates.h

X
Is this page helpful?