WebRTC module

CodecSpec

Canonical description of a codec supported by icey's WebRTC helpers.

CodecSpec

#include <icy/webrtc/codecnegotiator.h>

Canonical description of a codec supported by icey's WebRTC helpers.

Public Attributes

ReturnNameDescription
CodecIdidStable codec identifier.
CodecMediaTypemediaTypeAudio or video media kind.
std::stringrtpNameCanonical RTP codec name.
std::stringffmpegNamePreferred FFmpeg encoder name.
uint32_tclockRateRTP clock rate in Hz.
intpayloadTypeDefault static or preferred dynamic payload type.
std::stringfmtpCanonical fmtp line for SDP generation.

id

CodecId id = 

Stable codec identifier.


mediaType

CodecMediaType mediaType = 

Audio or video media kind.


rtpName

std::string rtpName

Canonical RTP codec name.


ffmpegName

std::string ffmpegName

Preferred FFmpeg encoder name.


clockRate

uint32_t clockRate = 0

RTP clock rate in Hz.


payloadType

int payloadType = 0

Default static or preferred dynamic payload type.


fmtp

std::string fmtp

Canonical fmtp line for SDP generation.

Public Methods

ReturnNameDescription
boolvalid const inline

valid

const inline

inline bool valid() const