NERTC Android SDK V5.8.10
载入中...
搜索中...
未找到
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 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 setLocalViewActionListener (VideoViewActionListener viewActionListener, int type)
 
void markAsRemoteView ()
 

Public 属性

LiteTextureView mVideoView
 
int mirrorMode = LiteSDKVideoMirrorMode.kLiteSDKVideoMirrorModeAuto
 

成员函数说明

◆ 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

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