AdvanceOptions

Advanced options for video encoding.

@JsonSerializable(explicitToJson: true, includeIfNull: false)
class AdvanceOptions {
  const AdvanceOptions(
      {this.encodingPreference, this.compressionPreference, this.encodeAlpha});

  @JsonKey(name: 'encodingPreference')
  final EncodingPreference? encodingPreference;

  @JsonKey(name: 'compressionPreference')
  final CompressionPreference? compressionPreference;

  @JsonKey(name: 'encodeAlpha')
  final bool? encodeAlpha;

  factory AdvanceOptions.fromJson(Map<String, dynamic> json) =>
      _$AdvanceOptionsFromJson(json);

  Map<String, dynamic> toJson() => _$AdvanceOptionsToJson(this);
}

Attributes

encodingPreference
Video encoder preference. See EncodingPreference.
compressionPreference
Compression preference for video encoding. See CompressionPreference.
encodeAlpha
Whether to encode and send the Alpha data present in the video frame to the remote end:
  • true: Encode and send Alpha data.
  • false: (Default) Do not encode and send Alpha data.