Interface ITRTCVideoRenderCallback
Custom video rendering callbacks
Namespace: trtc
Assembly: cs.temp.dll.dll
Syntax
public interface ITRTCVideoRenderCallback
Methods
onRenderVideoFrame(String, TRTCVideoStreamType, TRTCVideoFrame)
12.1 Callback of video frames for custom rendering
You can use `setLocalVideoRenderCallback` and `setRemoteVideoRenderCallback` to set the custom rendering callback.
Declaration
void onRenderVideoFrame(string userId, TRTCVideoStreamType streamType, TRTCVideoFrame frame)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | userId | User ID |
| TRTCVideoStreamType | streamType | Stream type: the camera or screen sharing stream |
| TRTCVideoFrame | frame | Video frames |