Class MediaDescription
A media section of an SDP: its m= line and the attributes under it.
Inheritance
MediaDescription
Namespace: Uniform.Matrix.WebRtc.Sdp
Assembly: Uniform.Matrix.WebRtc.dll
public sealed record MediaDescription : IEquatable<MediaDescription>
Properties
|
Edit this page
View Source
The attributes, without a=, e.g. mid:0 or rtcp-mux, in order.
Declaration
public List<string> Attributes { get; init; }
Property Value
|
Edit this page
View Source
The formats: RTP payload types.
Declaration
public List<string> Formats { get; init; }
Property Value
|
Edit this page
View Source
The media kind, e.g. audio or video.
Declaration
public required string Kind { get; init; }
Property Value
|
Edit this page
View Source
Lines other than a=, such as c=, without their type letter's c=, in order.
Declaration
public List<string> Lines { get; init; }
Property Value
|
Edit this page
View Source
The port; 0 rejects the section.
Declaration
public int Port { get; init; }
Property Value
|
Edit this page
View Source
The protocol, e.g. UDP/TLS/RTP/SAVPF.
Declaration
public string Protocol { get; init; }
Property Value
Methods
|
Edit this page
View Source
Return the value of the first attribute named name, or null.
Declaration
public string? Get(string name)
Parameters
| Type |
Name |
Description |
| string |
name |
|
Returns
|
Edit this page
View Source
Return the values of the attributes named name; a flag such as rtcp-mux has the empty value.
Declaration
public IEnumerable<string> GetAll(string name)
Parameters
| Type |
Name |
Description |
| string |
name |
|
Returns
Implements