firstLocalVideoFrame property
VideoFrameCallback?
firstLocalVideoFrame
getter/setter pair
Occurs when the first local video frame is rendered.
This callback is triggered after the first local video frame is rendered on the local video window.
The VideoFrameCallback
typedef includes the following parameters:
- int
width
: Width (pixels) of the first local video frame. - int
height
: Height (pixels) of the first local video frame. - int
elapsed
: Time elapsed (ms) from the local user calling RtcEngine.joinChannel until this callback is triggered. If RtcEngine.startPreview is called before RtcEngine.joinChannel, elapsed is the time elapsed (ms) from the local user calling RtcEngine.startPreview until this callback is triggered.
Implementation
VideoFrameCallback? firstLocalVideoFrame;