NERtc Android SDK  V4.6.20
Public 成员函数 | 所有成员列表
com.netease.lava.nertc.sdk.video.NERtcTextureView类 参考
类 com.netease.lava.nertc.sdk.video.NERtcTextureView 继承关系图:

Public 成员函数

 NERtcTextureView (Context context)
 
 NERtcTextureView (Context context, AttributeSet attrs)
 
void setScalingType (int type)
 
void setScalingType (ScalingType type)
 
void setMirror (boolean mirror)
 
void clearImage ()
 

成员函数说明

◆ clearImage()

void com.netease.lava.nertc.sdk.video.NERtcTextureView.clearImage ( )

清除画布

◆ setMirror()

void com.netease.lava.nertc.sdk.video.NERtcTextureView.setMirror ( boolean  mirror)

设置是否开启镜像模式,即画面是否左右翻转。
如果使用前置摄像头,SDK 默认启用镜像模式;如果使用后置摄像头,SDK 默认关闭镜像模式。

参数
mirror是否开启镜像模式。

◆ setScalingType() [1/2]

void com.netease.lava.nertc.sdk.video.NERtcTextureView.setScalingType ( int  type)

设置视频的显示模式。

注意:该方法通过 NERtcVideoView 进行设置。

参数
typeNERtcConstants.VideoScalingType

◆ setScalingType() [2/2]

void com.netease.lava.nertc.sdk.video.NERtcTextureView.setScalingType ( ScalingType  type)

设置显示模式。

参数
typeNERtcConstants.VideoScalingType

该类的文档由以下文件生成: