ChapterCue ChapterCue ChapterCue ChapterCue Class

Definition

Represents a chapter cue that can be included in a TimedMetadataTrack.

public : sealed class ChapterCue : IChapterCue, IMediaCue
public sealed class ChapterCue : IChapterCue, IMediaCue
Public NotInheritable Class ChapterCue Implements IChapterCue, IMediaCue
var chapterCue = new chapterCue();
Attributes
Windows 10 requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

A ChapterCue can be added to a TimedMetadataTrack with the AddCue method. When the cue's start time is reached, the CueEntered event is raised and you can use the MediaCueEventArgs passed into the handler to get a copy of the ChapterCue.

Constructors

ChapterCue() ChapterCue() ChapterCue() ChapterCue()

Initializes a new instance of the ChapterCue class.

public : ChapterCue()
public ChapterCue()
Public Sub New()
var chapterCue = new chapterCue();

Properties

Duration Duration Duration Duration

Gets or sets a value that specifies the duration of the chapter associated with the cue.

public : TimeSpan Duration { get; set; }
public TimeSpan Duration { get; set; }
Public ReadWrite Property Duration As TimeSpan
var timeSpan = chapterCue.duration;
chapterCue.duration = timeSpan;
Value
TimeSpan TimeSpan TimeSpan TimeSpan

A value that specifies the duration of the chapter.

Remarks

At the end of a cue's duration, the TimedMetadataTrack.CueExited event is raised.

Id Id Id Id

Gets the identifier for the timed metadata track.

public : Platform::String Id { get; set; }
public string Id { get; set; }
Public ReadWrite Property Id As string
var string = chapterCue.id;
chapterCue.id = string;
Value
Platform::String string string string

The identifier for the timed metadata track.

StartTime StartTime StartTime StartTime

Gets the start time of the cue.

public : TimeSpan StartTime { get; set; }
public TimeSpan StartTime { get; set; }
Public ReadWrite Property StartTime As TimeSpan
var timeSpan = chapterCue.startTime;
chapterCue.startTime = timeSpan;
Value
TimeSpan TimeSpan TimeSpan TimeSpan

The start time of the cue.

Remarks

When a cue's start time is reached, the TimedMetadataTrack.CueEntered event is raised.

Title Title Title Title

Gets the title of the chapter associated with the cue.

public : Platform::String Title { get; set; }
public string Title { get; set; }
Public ReadWrite Property Title As string
var string = chapterCue.title;
chapterCue.title = string;
Value
Platform::String string string string

The title of the chapter