MediaTextTrackCue Class

A cue of a text track of a media resource, exposed as a VTTCue.

public sealed class MediaTextTrackCue : IEquatable<MediaTextTrackCue>
Implements

Constructors

NameDescription
MediaTextTrackCue(double, double, string, string, string)A cue of a text track of a media resource, exposed as a VTTCue.

MediaTextTrackCue(double, double, string, string, string)

MediaBackend.cs

A cue of a text track of a media resource, exposed as a VTTCue.

public MediaTextTrackCue(double StartTime, double EndTime, string Text, string Id = "", string Settings = "")

Parameters

StartTime double
The start time of the cue, in seconds.
EndTime double
The end time of the cue, in seconds (positive infinity for an unbounded cue).
Text string
The text of the cue (WebVTT cue text).
Id string
The identifier of the cue, or an empty string.
Settings string
The WebVTT cue settings of the cue (e.g. line:0 align:start), or an empty string.

Properties

NameDescription
EndTimeThe end time of the cue, in seconds (positive infinity for an unbounded cue).
IdThe identifier of the cue, or an empty string.
SettingsThe WebVTT cue settings of the cue (e.g. line:0 align:start), or an empty string.
StartTimeThe start time of the cue, in seconds.
TextThe text of the cue (WebVTT cue text).

The end time of the cue, in seconds (positive infinity for an unbounded cue).

public double EndTime { get; init; }

Property value

double

The identifier of the cue, or an empty string.

public string Id { get; init; }

Property value

string

The WebVTT cue settings of the cue (e.g. line:0 align:start), or an empty string.

public string Settings { get; init; }

Property value

string

The start time of the cue, in seconds.

public double StartTime { get; init; }

Property value

double

The text of the cue (WebVTT cue text).

public string Text { get; init; }

Property value

string

Methods

NameDescription
Deconstruct(double, double, string, string, string)
Equals(MediaTextTrackCue?)
Equals(object?)
GetHashCode()
ToString()

Deconstruct(double, double, string, string, string)

public void Deconstruct(out double StartTime, out double EndTime, out string Text, out string Id, out string Settings)

Parameters

StartTime double
EndTime double
Text string
Id string
Settings string

No documentation is available.

Equals overloads

Equals(MediaTextTrackCue?)

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

operator ==(MediaTextTrackCue?, MediaTextTrackCue?)

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

Parameters

left MediaTextTrackCue?
right MediaTextTrackCue?

Returns

bool

No documentation is available.

operator !=(MediaTextTrackCue?, MediaTextTrackCue?)

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

Parameters

left MediaTextTrackCue?
right MediaTextTrackCue?

Returns

bool

No documentation is available.