snapshotVideo method
void
snapshotVideo(
- String userId,
- TRTCVideoStreamType streamType,
- 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);
}