setViewPort method
void
setViewPort(
- dynamic width,
- dynamic height
Sets the video quality of the participant’s video stream based on the specified viewport dimensions.
- This method adjusts the video stream quality dynamically according to the provided viewport width and height, helping optimize rendering quality and bandwidth usage.
Parameters
-
width: The width of the viewport in pixels. -
height: The height of the viewport in pixels.
Returns
void
Example
// Set viewport size for participant video
participant.setViewPort(480, 360);
Implementation
void setViewPort(width, height) => _setViewPort(width, height);