ByteRTCVideoEncoderConfig class
- Inheritance
-
- Object
- NativeClass
- ByteRTCVideoEncoderConfig
Properties
-
$resource
→ NativeResource
-
no setterinherited
-
encoderPreference
↔ FutureOr<ByteRTCVideoEncoderPreference?>
-
@brief Encoding preference. The default value is ByteRTCVideoEncoderPreferenceMaintainFramerate(1). See ByteRTCVideoEncoderPreference{@link #ByteRTCVideoEncoderPreference}.
getter/setter pair
-
frameRate
↔ FutureOr<NSInteger?>
-
@brief Video frame rate in fps
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
height
↔ FutureOr<NSInteger?>
-
@brief Height of the video frame in px
getter/setter pair
-
maxBitrate
↔ FutureOr<NSInteger?>
-
@brief Maximum bit rate in kbps. Optional for internal capturing while mandatory for custom capturing.
If you set this value to -1, SDK will automatically calculate the applicable bit rate based on the input resolution and frame rate.
No stream will be encoded and published if you set this value to 0.
In 344 and later versions, the default value is -1 for internal capturing, but no default value in versions earlier than 344.
getter/setter pair
-
minBitrate
↔ FutureOr<NSInteger?>
-
@brief Minimum video encoding bitrate in kbps. The encoding bitrate will not be lower than the
minBitrate.
It defaults to 0.
It ranges within [0, maxBitrate). When maxBitrate < minBitrate, the bitrate is self-adpapted.
In the following circumstance, the assignment to this variable has no effect:
- When maxBitrate = 0, the video encoding is disabled.
- When maxBitrate < 0, the bitrate is self-adapted.
getter/setter pair
-
ready
→ Future<void>
-
Whether the instance is initialized
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
width
↔ FutureOr<NSInteger?>
-
@brief Width of the video frame in px
getter/setter pair