Table of Contents

Class RTPStreamInfo

Namespace
VisioForge.Core.Types.MediaInfo
Assembly
VisioForge.Core.dll

Represents detailed information about an RTP (Real-time Transport Protocol) stream. This class provides properties such as encoding name, payload type, and stream type.

public class RTPStreamInfo

Inheritance

Inherited Members

Examples

// Assume mediaInfo is an instance of MediaFileInfo containing RTP stream information.
foreach (var rtpStream in mediaInfo.RTPStreams)
{
    Console.WriteLine($"RTP Stream Found:");
    Console.WriteLine($"  Encoding Name: {rtpStream.EncodingName}");
    Console.WriteLine($"  Payload ID: {rtpStream.Payload}");
    Console.WriteLine($"  Type: {rtpStream.Type}");

    // Further processing based on RTP stream properties.
}

Remarks

RTP streams are commonly used for real-time media transmission over IP networks. This information is typically retrieved by a media information parser and is useful for configuring RTP receivers or analyzing network streams. RTP is the standard protocol for delivering audio and video over IP networks in real-time applications. EncodingName identifies the codec or format (H264, H265, VP8, VP9, PCMU, PCMA, Opus, AAC, etc.). Payload type is a 7-bit identifier (0-127) mapping to the encoding format in RTP packets. Standard payload types (0-95) are defined in RFC 3551, while dynamic types (96-127) require SDP negotiation. Type property (from CapsType) indicates whether the stream carries video, audio, or other data. RTP stream info is essential for RTSP clients, SIP applications, WebRTC implementations, and IP camera integration. Understanding RTP parameters enables proper decoder selection, jitter buffer configuration, and quality monitoring. RTP streams typically require companion RTCP (RTP Control Protocol) for quality feedback and synchronization. Applications use this information for stream selection, codec negotiation, and dynamic RTP handling.

Properties

EncodingName

Gets or sets the encoding name of the RTP stream (e.g., "H264", "PCMU", "MPEG4-GENERIC").

public string EncodingName { get; set; }

Property Value

string

Payload

Gets or sets the payload type ID of the RTP stream. This identifies the type of data carried by the RTP packets (e.g., 96 for custom video, 0 for PCMU audio).

public int Payload { get; set; }

Property Value

int

Type

Gets or sets the type of the RTP stream, typically indicating if it's video, audio, or other data.

public CapsType Type { get; set; }

Property Value

CapsType