snapshotVideo abstract method
- String userId,
- TRTCVideoStreamType streamType,
- TRTCSnapshotSourceType sourceType
Screencapture video(Only supports Windows)
You can use this API to screencapture the local video image or the primary stream image and substream (screen sharing) image of a remote user.
Parameters:
- sourceType(TRTCSnapshotSourceType):
- Video image source, which can be the video stream image (TRTCSnapshotSourceType.stream, generally in higher definition), the video rendering image (TRTCSnapshotSourceType.view), or the capture picture (TRTCSnapshotSourceType.capture). The captured picture screenshot will be clearer.
- streamType(TRTCVideoStreamType):
- Video stream type, which can be the primary stream image (TRTCVideoStreamType.big, generally for camera) or substream image (TRTCVideoStreamType.sub, generally for screen sharing).
- userId(String):
- User ID. A null value indicates to screencapture the local video.
Note: On Windows, only video image from the TRTCSnapshotSourceType.stream source can be screencaptured currently.
Implementation
void snapshotVideo(String userId, TRTCVideoStreamType streamType, TRTCSnapshotSourceType sourceType);