To take snapshot of a video stream in your application use the Enx.captureScreenShot() method. The image from the video stream will be captured as raw bitmap and returned as base64 string data in the callback.

Method: Enx.captureScreenShot(streamId)

Parameter: streamId – String. ID of Stream from which Snapshot to be taken

Callback: capturedView – Receives base64 encoded String for the capatured raw bitmap

Enx.captureScreenShot(localStreamId);

capturedView: event => {
	this.setState({
		base64Icon: event
	});
}

// To show captured snapshot
<Image 
	style={{ width: 50, height: 50 }}
	source={{ uri: `data:image/png;b ase64,${this.state.base64Icon}`}}
/>