public class VideoConstraints extends Object
LocalVideoTrack.
The default video constraints is a 4:3 aspect ratio with a maximum resolution of 640x480 and a maximum of 30 fps.
Note: VideoConstraints is used to resolve the capture format, but the actual
video sent to Participants may be downscaled temporally or spatially in response to network and
device conditions.
| Modifier and Type | Class and Description |
|---|---|
static class |
VideoConstraints.Builder |
| Modifier and Type | Field and Description |
|---|---|
static int |
FPS_10
Battery saving 10 fps video.
|
static int |
FPS_15
Battery saving 15 fps video.
|
static int |
FPS_20
Battery efficient 20 fps video.
|
static int |
FPS_24
Cinematic 24 fps video.
|
static int |
FPS_30
Smooth 30 fps video.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
AspectRatio |
getAspectRatio()
The aspect ratio.
|
int |
getMaxFps()
The maximum frames per second allowed.
|
VideoDimensions |
getMaxVideoDimensions()
The maximum video size allowed.
|
int |
getMinFps()
The minimum frames per second allowed.
|
VideoDimensions |
getMinVideoDimensions()
The minimum video size allowed.
|
int |
hashCode() |
public static final int FPS_10
public static final int FPS_15
public static final int FPS_20
public static final int FPS_24
public static final int FPS_30
public VideoDimensions getMinVideoDimensions()
public VideoDimensions getMaxVideoDimensions()
public int getMinFps()
public int getMaxFps()
public AspectRatio getAspectRatio()
4.0.1