Agora Java API Reference for Android

Static Public Member Functions | Public Attributes | List of all members
io.agora.rte.Constants.VideoRenderMode Enum Reference

Video rendering mode. More...

## Static Public Member Functions
static int | getValue (VideoRenderMode type)
static VideoRenderMode | fromInt (int v)

## Public Attributes
| HIDDEN =(0)
| FIT =(1)

## Detailed Description

Video rendering mode.

Since
  v4.4.0

## Member Data Documentation

## ◆ HIDDEN

io.agora.rte.Constants.VideoRenderMode.HIDDEN =(0)

0: Scales the video dimensions proportionally. Prioritizes filling the viewport. Any excess video content resulting from a mismatch between the video dimensions and the display viewport will be cropped.

## ◆ FIT

io.agora.rte.Constants.VideoRenderMode.FIT =(1)

1: Scales the video dimensions proportionally, prioritizing full display of the video content.
Black bars are added to fill any unoccupied areas of the display viewport caused by mismatched video and viewport dimensions.