MediaSegmentTrack Class

A track of an initialization segment (MediaInitializationSegment).

public sealed class MediaSegmentTrack : IEquatable<MediaSegmentTrack>
Implements

Constructors

NameDescription
MediaSegmentTrack(long, bool, string, string, string, int, int)A track of an initialization segment (MediaInitializationSegment).

MediaSegmentTrack(long, bool, string, string, string, int, int)

MediaSegmentParser.cs

A track of an initialization segment (MediaInitializationSegment).

public MediaSegmentTrack(long Id, bool IsVideo, string Kind = "", string Label = "", string Language = "", int VideoWidth = 0, int VideoHeight = 0)

Parameters

Id long
The identifier of the track in the byte stream (the track ID of the coded frames, see MediaCodedFrame.TrackId).
IsVideo bool
Whether the track is a video track (else an audio track).
Kind string
The category of the track (main, alternative...), or an empty string.
Label string
The label of the track, or an empty string.
Language string
The BCP 47 language tag of the track, or an empty string.
VideoWidth int
The natural width of the frames of a video track, in CSS pixels.
VideoHeight int
The natural height of the frames of a video track, in CSS pixels.

Properties

NameDescription
IdThe identifier of the track in the byte stream (the track ID of the coded frames, see MediaCodedFrame.TrackId).
IsVideoWhether the track is a video track (else an audio track).
KindThe category of the track (main, alternative...), or an empty string.
LabelThe label of the track, or an empty string.
LanguageThe BCP 47 language tag of the track, or an empty string.
VideoHeightThe natural height of the frames of a video track, in CSS pixels.
VideoWidthThe natural width of the frames of a video track, in CSS pixels.

The identifier of the track in the byte stream (the track ID of the coded frames, see MediaCodedFrame.TrackId).

public long Id { get; init; }

Property value

long

Whether the track is a video track (else an audio track).

public bool IsVideo { get; init; }

Property value

bool

The category of the track (main, alternative...), or an empty string.

public string Kind { get; init; }

Property value

string

The label of the track, or an empty string.

public string Label { get; init; }

Property value

string

The BCP 47 language tag of the track, or an empty string.

public string Language { get; init; }

Property value

string

The natural height of the frames of a video track, in CSS pixels.

public int VideoHeight { get; init; }

Property value

int

The natural width of the frames of a video track, in CSS pixels.

public int VideoWidth { get; init; }

Property value

int

Methods

NameDescription
Deconstruct(long, bool, string, string, string, int, int)
Equals(MediaSegmentTrack?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(long, bool, string, string, string, int, int)

public void Deconstruct(out long Id, out bool IsVideo, out string Kind, out string Label, out string Language, out int VideoWidth, out int VideoHeight)

Parameters

Id long
IsVideo bool
Kind string
Label string
Language string
VideoWidth int
VideoHeight int

No documentation is available.

Equals overloads

Equals(MediaSegmentTrack?)

public bool Equals(MediaSegmentTrack? other)
Parameters
other MediaSegmentTrack?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(MediaSegmentTrack?, MediaSegmentTrack?)
operator !=(MediaSegmentTrack?, MediaSegmentTrack?)

operator ==(MediaSegmentTrack?, MediaSegmentTrack?)

public static bool operator ==(MediaSegmentTrack? left, MediaSegmentTrack? right)

Parameters

left MediaSegmentTrack?
right MediaSegmentTrack?

Returns

bool

No documentation is available.

operator !=(MediaSegmentTrack?, MediaSegmentTrack?)

public static bool operator !=(MediaSegmentTrack? left, MediaSegmentTrack? right)

Parameters

left MediaSegmentTrack?
right MediaSegmentTrack?

Returns

bool

No documentation is available.