public class RCRTCTextureView extends Object implements RCRTCBaseView
限定符和类型 | 类和说明 |
---|---|
static interface |
RCRTCTextureView.TextureRendererEvents
已过时。
|
构造器和说明 |
---|
RCRTCTextureView(String name)
In order to render something, you must first call init().
|
限定符和类型 | 方法和说明 |
---|---|
void |
init(Context context,
RCRTCVideoStream videoStream)
初始化方法
注意: 只允许 RTC SDK 内部调用,外部不允许调用
|
void |
onFrame(VideoFrame frame) |
void |
onFrameResolutionChanged(int videoWidth,
int videoHeight,
int rotation) |
void |
registerTextureRendererEvents(RCRTCTextureView.TextureRendererEvents textureRendererEvents)
已过时。
|
void |
release()
释放资源
注意: 只允许 RTC SDK 内部调用,外部不允许调用
|
void |
setMirror(boolean mirror)
是否镜像
|
void |
setRendererEventsListener(RCRTCRendererEventsListener listener)
设置渲染回调事件
|
void |
setScalingType(ScalingType mode)
设置填充模式
|
void |
surfaceCreated(SurfaceTexture texture) |
void |
surfaceDestroyed() |
public RCRTCTextureView(String name)
public void setRendererEventsListener(RCRTCRendererEventsListener listener)
RCRTCBaseView
setRendererEventsListener
在接口中 RCRTCBaseView
public void setMirror(boolean mirror)
RCRTCBaseView
setMirror
在接口中 RCRTCBaseView
public void setScalingType(ScalingType mode)
RCRTCBaseView
setScalingType
在接口中 RCRTCBaseView
public void onFrameResolutionChanged(int videoWidth, int videoHeight, int rotation)
public void release()
RCRTCBaseView
release
在接口中 RCRTCBaseView
public void init(Context context, RCRTCVideoStream videoStream)
RCRTCBaseView
init
在接口中 RCRTCBaseView
@Deprecated public void registerTextureRendererEvents(RCRTCTextureView.TextureRendererEvents textureRendererEvents)
public void onFrame(VideoFrame frame)
public void surfaceCreated(SurfaceTexture texture)
public void surfaceDestroyed()