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);
}

Properties

encodingPreference
Video encoder preference. See EncodingPreference.
compressionPreference
Compression preference for video encoding. See CompressionPreference.
encodeAlpha
When the video frame contains Alpha channel data, sets whether to encode and send the Alpha data to the remote end:
  • true: Encode and send the Alpha data.
  • false: (Default) Do not encode and send the Alpha data.