NERtc Android SDK
V4.6.61
|
Public 成员函数 | |
NERtcTextureView (Context context) | |
NERtcTextureView (Context context, AttributeSet attrs) | |
void | setScalingType (int type) |
void | setScalingType (ScalingType type) |
void | setVideoBufferType (VideoBufferType bufferType) |
void | setMirror (boolean mirror) |
void | clearImage () |
void com.netease.lava.nertc.sdk.video.NERtcTextureView.clearImage | ( | ) |
清除画布
void com.netease.lava.nertc.sdk.video.NERtcTextureView.setMirror | ( | boolean | mirror | ) |
设置是否开启镜像模式,即画面是否左右翻转。
如果使用前置摄像头,SDK 默认启用镜像模式;如果使用后置摄像头,SDK 默认关闭镜像模式。
mirror | 是否开启镜像模式。 |
void com.netease.lava.nertc.sdk.video.NERtcTextureView.setScalingType | ( | int | type | ) |
设置画布中本地视频画面的显示模式。
通过本接口可以实现设置本地视频画面的适应性,即是否裁剪或缩放。
参数名称 | 类型 | 描述 |
---|---|---|
type | int | 视频显示模式类型(详细信息请参考 NERtcConstants.VideoScalingType):
|
void com.netease.lava.nertc.sdk.video.NERtcTextureView.setScalingType | ( | ScalingType | type | ) |
设置画布中本地视频画面的显示模式。
通过本接口可以实现设置本地视频画面的适应性,即是否裁剪或缩放。
参数名称 | 类型 | 描述 |
---|---|---|
type | int | 视频显示模式类型(详细信息请参考 NERtcConstants.VideoScalingType):
|