Table of Contents

Enum RTPMediaType

Namespace
VisioForge.Core.Types.X
Assembly
VisioForge.Core.dll

Represents the media types supported in RTP (Real-time Transport Protocol) payloads. This enumeration covers common audio and video codecs used in real-time streaming applications.

public enum RTPMediaType

Fields

H264 = 0

H.264/AVC (Advanced Video Coding). Widely used video compression standard offering good quality and compression. Common in streaming, broadcasting, and video conferencing.

H265 = 1

H.265/HEVC (High Efficiency Video Coding). Next-generation video codec offering improved compression over H.264. Designed for 4K/8K resolutions and HDR content.

VP8 = 2

VP8 Video Codec. Open-source video codec developed by Google/WebM Project. Commonly used in WebRTC and web-based video applications.

VP9 = 3

VP9 Video Codec Successor to VP8, offering improved compression efficiency. Used extensively by YouTube and other web platforms.

JPEG = 4

Motion JPEG. Series of JPEG images used for video compression. Commonly used in security cameras and professional video equipment.

RAW = 5

Raw Video Format. Uncompressed video data in its native format. Used in professional video production and high-quality capture.

AAC = 6

Advanced Audio Coding (AAC). Digital audio compression standard offering high quality at lower bitrates. Widely used in streaming services, digital broadcasting, and mobile devices.

Opus = 7

Opus Audio Codec. Open-source, highly versatile audio codec. Excellent for both speech and music, with low latency for real-time applications.

Vorbis = 8

Vorbis Audio Codec. Free and open-source audio compression format. Popular in game development and open-source multimedia applications.

MP3 = 9

MPEG Audio Layer III (MP3). Popular audio compression format with wide device support. Commonly used for music distribution and streaming.

PCM = 10

Pulse Code Modulation (PCM). Raw digital representation of sampled analog signals. Used in professional audio equipment and high-quality recordings.

G722 = 11

G.722 Audio Codec. Wideband audio codec operating at 16 kHz sampling rate. Common in VoIP systems and digital telephony applications.

AMR = 12

Adaptive Multi-Rate (AMR) Audio Codec. Speech codec optimized for voice communication. Widely used in GSM and UMTS mobile phone systems.

Unknown = 13

The media type is unknown or not specified.

Examples

// Configure an RTP sender to use H.264 video.
// rtpSender.VideoMediaType = RTPMediaType.H264;

// Configure an RTP receiver to expect Opus audio.
// rtpReceiver.AudioMediaType = RTPMediaType.Opus;

// In an RTP stream information event, check the media type.
// public void OnRTPStreamInfo(object sender, RTPStreamInfoEventArgs e)
// {
//     if (e.MediaType == RTPMediaType.H264)
//     {
//         Console.WriteLine("Received H.264 video over RTP.");
//     }
// }

Remarks

The RTP protocol is widely used for transmitting real-time data such as audio and video over IP networks. This enum helps in identifying the specific codec and format of the media being transported.