snapshotVideo method

void snapshotVideo(
  1. String userId,
  2. TRTCVideoStreamType streamType,
  3. TRTCSnapshotSourceType sourceType
)

Implementation

void snapshotVideo(String userId, TRTCVideoStreamType streamType, TRTCSnapshotSourceType sourceType) {
  ffi.Pointer<ffi.Char> userIdPointer = userId.toNativeUtf8().cast<ffi.Char>();

  _trtcFFIBindings.snapshot_video(_trtcsharedInstanceNativePointer, userIdPointer, streamType.value(), sourceType.value());

  calloc.free(userIdPointer);
}