captureBitmap

fun captureBitmap(onBitmap: (Bitmap?) -> Unit, scale: Float = 1.0f)

This API returns a Bitmap from the HMSVideoView If this HMSVideoView contains local video track then it returns the bitmap at the maximum resolution of the publisher If this HMSVideoView contains a remote video track then it returns the bitmap at the resolution which it is receiving currently.