AgoraMediaPlayerRenderMode Constants Reference

Declared in AgoraMediaPlayerKit.h

AgoraMediaPlayerRenderMode

AgoraMediaPlayerRenderMode, reporting the render mode of the player.

Definition

typedef NS_ENUM(NSUInteger, AgoraMediaPlayerRenderMode ) {
   AgoraMediaPlayerRenderModeHidden = 1,
   AgoraMediaPlayerRenderModeFit = 2,
};

Constants

AgoraMediaPlayerRenderModeHidden

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

Declared In AgoraMediaPlayerKit.h.

AgoraMediaPlayerRenderModeFit

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

Declared In AgoraMediaPlayerKit.h.

Declared In

AgoraMediaPlayerKit.h