MediaTrackInfo Class

An audio or video track of a media resource (https://html.spec.whatwg.org/multipage/media.html#media-resources-with-multiple-media-tracks), reported by a MediaPlayer.

public sealed class MediaTrackInfo : IEquatable<MediaTrackInfo>
Implements

Constructors

NameDescription
MediaTrackInfo(string, string, string, string)An audio or video track of a media resource (https://html.spec.whatwg.org/multipage/media.html#media-resources-with-multiple-media-tracks), reported by a MediaPlayer.

MediaTrackInfo(string, string, string, string)

MediaBackend.cs

An audio or video track of a media resource (https://html.spec.whatwg.org/multipage/media.html#media-resources-with-multiple-media-tracks), reported by a MediaPlayer.

public MediaTrackInfo(string Id, string Kind = "", string Label = "", string Language = "")

Parameters

Id string
The identifier of the track (AudioTrack.id, VideoTrack.id), or an empty string.
Kind string
The category of the track (main, alternative, commentary...), or an empty string when it is unknown.
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.

Properties

NameDescription
IdThe identifier of the track (AudioTrack.id, VideoTrack.id), or an empty string.
KindThe category of the track (main, alternative, commentary...), or an empty string when it is unknown.
LabelThe label of the track, or an empty string.
LanguageThe BCP 47 language tag of the track, or an empty string.

The identifier of the track (AudioTrack.id, VideoTrack.id), or an empty string.

public string Id { get; init; }

Property value

string

The category of the track (main, alternative, commentary...), or an empty string when it is unknown.

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

Methods

NameDescription
Deconstruct(string, string, string, string)
Equals(MediaTrackInfo?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(string, string, string, string)

public void Deconstruct(out string Id, out string Kind, out string Label, out string Language)

Parameters

Id string
Kind string
Label string
Language string

No documentation is available.

Equals overloads

Equals(MediaTrackInfo?)

public bool Equals(MediaTrackInfo? other)
Parameters
other MediaTrackInfo?
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 ==(MediaTrackInfo?, MediaTrackInfo?)
operator !=(MediaTrackInfo?, MediaTrackInfo?)

operator ==(MediaTrackInfo?, MediaTrackInfo?)

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

Parameters

left MediaTrackInfo?
right MediaTrackInfo?

Returns

bool

No documentation is available.

operator !=(MediaTrackInfo?, MediaTrackInfo?)

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

Parameters

left MediaTrackInfo?
right MediaTrackInfo?

Returns

bool

No documentation is available.