ByteRTCVideoEncoderConfig class

Inheritance
  • Object
  • NativeClass
  • ByteRTCVideoEncoderConfig

Constructors

ByteRTCVideoEncoderConfig([NativeClassOptions? options])

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

Methods

destroy() → void
inherited
nativeCall<T>(String method, [List? args, NativeMethodMeta? meta]) Future<T>
Call instance method
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendInstanceGet<T>(String property) Future<T>
Get instance property
inherited
sendInstancePropertiesGet(dynamic nativeClass) Future<Map<String, dynamic>>
Get instance properties
inherited
sendInstanceSet(String property, dynamic value) Future<void>
Set instance property
inherited
toString() String
A string representation of this object.
inherited
updateResource(NativeResource resource) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

codegen_$namespace → dynamic
no setter