CodecUtils class
Utility class for audio codec operations in WebRTC. Provides functionality for codec parsing from SDP strings and RTP capabilities.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
convertAudioCodecMapsToCapabilities(
List< Map< codecMaps) → List<String, dynamic> >RTCRtpCodecCapability> - Converts audio codec maps to RTCRtpCodecCapability objects for use with transceiver codec preferences. This method transforms the Map format (from AudioCodec.toJson()) into the format required by RTCRtpTransceiver.setCodecPreferences().
-
filterSdpCodecs(
String sdp, List< AudioCodec> preferredCodecs) → String - Filters SDP to include only preferred audio codecs. This method is used on Android where setCodecPreferences() doesn't work reliably.
-
findAudioTransceiver(
RTCPeerConnection peerConnection) → Future< RTCRtpTransceiver?> - Finds the audio transceiver from a peer connection. This method attempts multiple strategies to identify the audio transceiver, similar to the Android SDK implementation.
-
getSupportedAudioCodecs(
) → Future< List< AudioCodec> > - Returns a list of audio codecs supported by WebRTC for this device.