AudioCodec class
Represents an audio codec with its properties
Constructors
- AudioCodec.new({int? channels, int? clockRate, String? mimeType, String? sdpFmtpLine})
-
Creates an AudioCodec instance
const
-
AudioCodec.fromJson(Map<
String, dynamic> json) -
Creates an AudioCodec from JSON
factory
Properties
- channels → int?
-
The number of audio channels (e.g., 1 for mono, 2 for stereo)
final
- clockRate → int?
-
The clock rate in Hz (e.g., 48000, 8000)
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- mimeType → String?
-
The MIME type of the codec (e.g., "audio/opus", "audio/PCMU")
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdpFmtpLine → String?
-
The SDP format parameters line
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the AudioCodec to JSON
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override