AgoraMediaPlayerRenderMode Constants Reference

Declared in AgoraMediaPlayerKit.h

AgoraMediaPlayerRenderMode

AgoraMediaPlayerRenderMode,播放器视图的渲染模式

Definition

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

Constants

AgoraMediaPlayerRenderModeHidden

1: 视频尺寸等比缩放,优先保证视窗被填满,因视频尺寸与显示视窗尺寸不一致而多出的视频将被截掉。

Declared In AgoraMediaPlayerKit.h.

AgoraMediaPlayerRenderModeFit

2: 视频尺寸等比缩放,优先保证视频内容全部显示,因视频尺寸与显示视窗尺寸不一致造成的视窗未被填满的区域填充黑色。

Declared In AgoraMediaPlayerKit.h.

Declared In

AgoraMediaPlayerKit.h