sendCustomVideoData method

void sendCustomVideoData(
  1. TRTCVideoStreamType streamType,
  2. TRTCVideoFrame frame
)

Implementation

void sendCustomVideoData(TRTCVideoStreamType streamType, TRTCVideoFrame frame) {
  ffi.Pointer<trtc_video_frame_t> framePointer = trtc_video_frame_t.fromParams(frame);

  _trtcFFIBindings.send_custom_video_data(_trtcsharedInstanceNativePointer, streamType.value(), framePointer.ref);

  trtc_video_frame_t.freeStruct(framePointer);
}