MediaSegmentTrack Class
A track of an initialization segment (MediaInitializationSegment).
public sealed class MediaSegmentTrack : IEquatable<MediaSegmentTrack>- Implements
Constructors
| Name | Description |
|---|---|
| MediaSegmentTrack(long, bool, string, string, string, int, int) | A track of an initialization segment (MediaInitializationSegment). |
MediaSegmentTrack(long, bool, string, string, string, int, int)
MediaSegmentParser.csA 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
Idlong- The identifier of the track in the byte stream (the track ID of the coded frames, see
MediaCodedFrame.TrackId). IsVideobool- Whether the track is a video track (else an audio track).
Kindstring- The category of the track (
main,alternative...), or an empty string. Labelstring- The label of the track, or an empty string.
Languagestring- The BCP 47 language tag of the track, or an empty string.
VideoWidthint- The natural width of the frames of a video track, in CSS pixels.
VideoHeightint- The natural height of the frames of a video track, in CSS pixels.
Properties
| Name | Description |
|---|---|
| Id | The identifier of the track in the byte stream (the track ID of the coded frames, see MediaCodedFrame.TrackId). |
| IsVideo | Whether the track is a video track (else an audio track). |
| Kind | The category of the track (main, alternative...), or an empty string. |
| Label | The label of the track, or an empty string. |
| Language | The BCP 47 language tag of the track, or an empty string. |
| VideoHeight | The natural height of the frames of a video track, in CSS pixels. |
| VideoWidth | The 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
IsVideo
MediaSegmentParser.csLanguage
MediaSegmentParser.csVideoHeight
MediaSegmentParser.csVideoWidth
MediaSegmentParser.csMethods
| Name | Description |
|---|---|
| Deconstruct(long, bool, string, string, string, int, int) | |
| Equals(MediaSegmentTrack?) | |
| Equals(object?) | |
| GetHashCode() | |
| ToString() |
Deconstruct(long, bool, string, string, string, int, int)
Equals overloads
Equals(MediaSegmentTrack?)
public bool Equals(MediaSegmentTrack? other)No documentation is available.
Equals(object?)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(MediaSegmentTrack?, MediaSegmentTrack?) | |
| operator !=(MediaSegmentTrack?, MediaSegmentTrack?) |
operator ==(MediaSegmentTrack?, MediaSegmentTrack?)
public static bool operator ==(MediaSegmentTrack? left, MediaSegmentTrack? right)No documentation is available.
operator !=(MediaSegmentTrack?, MediaSegmentTrack?)
public static bool operator !=(MediaSegmentTrack? left, MediaSegmentTrack? right)No documentation is available.