RtpCodecParameters class

Provides information on codec settings within the RTP parameters. The list of media codecs supported by mediasoup and their settings is defined in the supportedRtpCapabilities.ts file.

Constructors

RtpCodecParameters({required String mimeType, required int payloadType, required int clockRate, int? channels = 1, Map parameters = const {}, List<RtcpFeedback> rtcpFeedback = const []})
RtpCodecParameters.fromMap(Map data)

Properties

channels ↔ int?
The number of channels supported (e.g. two for stereo). Just for audio. Default 1.
getter/setter pair
clockRate → int
Codec clock rate expressed in Hertz.
final
hashCode → int
The hash code for this object.
no setterinherited
mimeType → String
The codec MIME media type/subtype (e.g. 'audio/opus', 'video/VP8').
final
parameters → Map
Codec-specific parameters available for signaling. Some parameters (such as 'packetization-mode' and 'profile-level-id' in H264 or 'profile-id' in VP9) are critical for codec matching.
final
payloadType ↔ int
The value that goes in the RTP Payload Type Field. Must be unique.
getter/setter pair
rtcpFeedback ↔ List<RtcpFeedback>
Transport layer and codec-specific feedback messages for this codec.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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