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
| Name | Description |
|---|---|
| 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.csAn 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.
Parameters
Idstring- The identifier of the track (
AudioTrack.id,VideoTrack.id), or an empty string. Kindstring- The category of the track (
main,alternative,commentary...), or an empty string when it is unknown. Labelstring- The label of the track, or an empty string.
Languagestring- The BCP 47 language tag of the track, or an empty string.
Properties
| Name | Description |
|---|---|
| Id | The identifier of the track (AudioTrack.id, VideoTrack.id), or an empty string. |
| Kind | The category of the track (main, alternative, commentary...), or an empty string when it is unknown. |
| Label | The label of the track, or an empty string. |
| Language | The BCP 47 language tag of the track, or an empty string. |
Kind
MediaBackend.csLabel
MediaBackend.csLanguage
MediaBackend.csMethods
| Name | Description |
|---|---|
| Deconstruct(string, string, string, string) | |
| Equals(MediaTrackInfo?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Deconstruct(string, string, string, string)
Equals overloads
Equals(MediaTrackInfo?)
public bool Equals(MediaTrackInfo? other)No documentation is available.
Equals(object?)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(MediaTrackInfo?, MediaTrackInfo?) | |
| operator !=(MediaTrackInfo?, MediaTrackInfo?) |
operator ==(MediaTrackInfo?, MediaTrackInfo?)
public static bool operator ==(MediaTrackInfo? left, MediaTrackInfo? right)No documentation is available.
operator !=(MediaTrackInfo?, MediaTrackInfo?)
public static bool operator !=(MediaTrackInfo? left, MediaTrackInfo? right)No documentation is available.