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

Public 成员函数

 NERtcTextureView (@NonNull Context context)
 
void setScalingType (ScalingType type)
 
void setMirror (boolean mirror)
 
boolean isMirror ()
 
void clearImage ()
 
void onFrame (VideoFrame videoFrame)
 
 NERtcTextureView (Context context)
 
 NERtcTextureView (Context context, AttributeSet attrs)
 
void setScalingType (int type)
 
void setScalingType (ScalingType type)
 
void setVideoBufferType (VideoBufferType bufferType)
 
VideoBufferType getVideoBufferType ()
 
void setExternalRender (boolean enable)
 
boolean isExternalRender ()
 
void setMirror (boolean mirror)
 
boolean isMirror ()
 
void setVisibility (int visibility)
 
void clearImage ()
 
void onFrame (VideoFrame videoFrame)
 
void setViewActionListener (VideoViewActionListener viewActionListener, int type)
 

Public 属性

IVideoRender mVideoView
 
LiteTextureView mVideoView
 

成员函数说明

◆ 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

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