set View Port
This method can be used to set the viewport dimensions for adaptive video quality.
The SDK uses these dimensions to automatically select the best video resolution for this participant based on the available display area. For example, a small thumbnail view will receive a lower-resolution stream, while a full-screen view will receive a higher-resolution stream. This requires adaptive subscriptions to be enabled via enableAdaptiveSubscriptions.
Code Example:
// Set viewport to match the VideoView dimensions
participant.setViewPort(videoView.width, videoView.height)
Content copied to clipboard
Parameters
width
the viewport width in pixels
height
the viewport height in pixels
See also
Meeting.enableAdaptiveSubscriptions()