enableSmallVideoStream method

int enableSmallVideoStream(
  1. bool enable,
  2. TRTCVideoEncParam smallVideoEncParam
)

Implementation

int enableSmallVideoStream(bool enable, TRTCVideoEncParam smallVideoEncParam) {
  ffi.Pointer<trtc_video_enc_param_t> paramPointer = trtc_video_enc_param_t.fromParams(smallVideoEncParam);

  int result = _trtcFFIBindings.enable_small_video_stream(_trtcsharedInstanceNativePointer, enable, paramPointer.ref);

  trtc_video_enc_param_t.freeStruct(paramPointer);
  return result;
}