toggle menu
Android-RTCLib-SDK
5.6.9
cn.rongcloud.rtc
switch theme
search in API
Android-RTCLib-SDK
/
cn.rongcloud.rtc.api.stream.view
/
RCRTCBaseRenderer
RCRTCBase
Renderer
public
abstract
class
RCRTCBaseRenderer
Created by RongCloud on 2021/10/25.
Members
Constructors
RCRTCBase
Renderer
Link copied to clipboard
public
void
RCRTCBaseRenderer
(
String
resourceName
)
Functions
add
Frame
Listener
Link copied to clipboard
public
void
addFrameListener
(
FrameListener listener
,
float scale
)
public
void
addFrameListener
(
FrameListener listener
,
float scale
,
GlDrawer drawer
)
clear
Image
Link copied to clipboard
public
void
clearImage
(
)
create
Egl
Surface
Link copied to clipboard
public
void
createEglSurface
(
Surface surface
)
public
void
createEglSurface
(
SurfaceTexture texture
)
disable
Fps
Reduction
Link copied to clipboard
public
void
disableFpsReduction
(
)
init
Link copied to clipboard
public
final
void
init
(
Context context
,
RCRTCVideoStream videoStream
)
on
Frame
Link copied to clipboard
public
void
onFrame
(
VideoFrame frame
)
pause
Video
Link copied to clipboard
public
void
pauseVideo
(
)
release
Link copied to clipboard
public
void
release
(
)
release
Egl
Surface
Link copied to clipboard
public
void
releaseEglSurface
(
Runnable
completionCallback
)
remove
Frame
Listener
Link copied to clipboard
public
void
removeFrameListener
(
FrameListener listener
)
set
Fps
Reduction
Link copied to clipboard
public
void
setFpsReduction
(
float fps
)
set
Layout
Aspect
Ratio
Link copied to clipboard
public
void
setLayoutAspectRatio
(
float layoutAspectRatio
)
set
Mirror
Link copied to clipboard
public
void
setMirror
(
boolean mirror
)
set
Renderer
Events
Listener
Link copied to clipboard
public
void
setRendererEventsListener
(
RCRTCRendererEventsListener listener
)
set
Scaling
Type
Link copied to clipboard
public
void
setScalingType
(
ScalingType mode
)