snapshotVideo method

Future<void> snapshotVideo(
  1. String userId,
  2. TRTCVideoStreamType streamType,
  3. TRTCSnapshotSourceType sourceType,
  4. String path,
)

Implementation

Future<void> snapshotVideo(String userId, TRTCVideoStreamType streamType, TRTCSnapshotSourceType sourceType, String path) async {
  _channel.invokeMethod("snapshotVideo", {
    "userId": userId,
    "streamType": streamType.value(),
    "sourceType": sourceType.value(),
    "path": path,
  });
}