TVIVideoConstraintsBuilder Class Reference
Inherits from | NSObject |
---|---|
Declared in | TVIVideoConstraints.h |
Overview
TVIVideoConstraintsBuilder
is a video constraints object builder.
You can pass video constraints to the builder using TVIVideoConstraints
’s class method
constraintsWithBlock:
. The builder will build video constraints object using the constraints you
passed in the builder block.
maxSize
Specifies the maximum size for your video in native input coordinates (think landscape for
TVICameraCapturer
).
@property (nonatomic, assign) CMVideoDimensions maxSize
Discussion
Each dimension must be divisible by 8.
Declared In
TVIVideoConstraints.h
minSize
Specifies the minimum size for your video in native input coordinates.
@property (nonatomic, assign) CMVideoDimensions minSize
Discussion
Defaults to {0,0}, which indicates no minimum video size.
Set this property if you wish to choose a size within the range of minSize
and maxSize
.
Declared In
TVIVideoConstraints.h
maxFrameRate
Specifies the maximum frame rate of your video (frames per second).
@property (nonatomic, assign) NSUInteger maxFrameRate
Discussion
Frame rates are capped at TVIVideoConstraintsMaximumFPS
.
Declared In
TVIVideoConstraints.h
minFrameRate
Specifies the minimum frame rate of your video (frames per second).
@property (nonatomic, assign) NSUInteger minFrameRate
Discussion
Defaults to no minimum value.
Declared In
TVIVideoConstraints.h
aspectRatio
Specifies the aspect ratio of your video.
@property (nonatomic, assign) TVIAspectRatio aspectRatio
Declared In
TVIVideoConstraints.h
– init
Developers shouldn’t initialize this class directly.
- (null_unspecified instancetype)init
Discussion
Use a TVIVideoConstraintsBuilderBlock instead.
Declared In
TVIVideoConstraints.h