TxCodecCapability

public struct TxCodecCapability : Codable, Equatable, Identifiable

Represents an audio codec capability that can be used for preferred codec selection This mirrors the RTCRtpCodecCapability structure from WebRTC

  • id

    Unique identifier for the codec combining mimeType, clockRate, and channels

    Declaration

    Swift

    public var id: String { get }
  • The MIME type of the codec (e.g., “audio/opus”, “audio/PCMA”)

    Declaration

    Swift

    public let mimeType: String
  • The clock rate of the codec in Hz

    Declaration

    Swift

    public let clockRate: Int
  • The number of audio channels (typically 1 or 2)

    Declaration

    Swift

    public let channels: Int?
  • The SDP format-specific parameters line

    Declaration

    Swift

    public let sdpFmtpLine: String?
  • Undocumented

    Declaration

    Swift

    public init(mimeType: String, clockRate: Int, channels: Int? = nil, sdpFmtpLine: String? = nil)