MediaBreakSchedule MediaBreakSchedule MediaBreakSchedule MediaBreakSchedule MediaBreakSchedule Class

Definition

Represents a set of MediaBreak objects associated with a MediaPlaybackItem and the positions within the playback of the item that the media breaks are played.

public : sealed class MediaBreakSchedule
struct winrt::Windows::Media::Playback::MediaBreakSchedule
public sealed class MediaBreakSchedule
Public NotInheritable Class MediaBreakSchedule
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

Get the media break schedule for a media item by accessing the BreakSchedule property of the MediaPlaybackItem object.

For how-to guidance for working with media breaks, see Create, schedule, and manage media breaks.

Properties

MidrollBreaks MidrollBreaks MidrollBreaks MidrollBreaks MidrollBreaks

Gets the schedule's current list of MediaBreak objects that will be played at a point during the playback of the MediaPlaybackItem with which the MediaBreakSchedule is associated.

PlaybackItem PlaybackItem PlaybackItem PlaybackItem PlaybackItem

Gets the MediaPlaybackItem with which the MediaBreakSchedule is associated.

PostrollBreak PostrollBreak PostrollBreak PostrollBreak PostrollBreak

Gets or sets the MediaBreak to be played after the MediaPlaybackItem associated with the MediaBreakSchedule plays.

PrerollBreak PrerollBreak PrerollBreak PrerollBreak PrerollBreak

Gets or sets the MediaBreak to be played before the MediaPlaybackItem associated with the MediaBreakSchedule plays.

Methods

InsertMidrollBreak(MediaBreak) InsertMidrollBreak(MediaBreak) InsertMidrollBreak(MediaBreak) InsertMidrollBreak(MediaBreak) InsertMidrollBreak(MediaBreak)

Adds a MediaBreak to the schedule that will be played at a point during the playback of the MediaPlaybackItem with which the MediaBreakSchedule is associated.

RemoveMidrollBreak(MediaBreak) RemoveMidrollBreak(MediaBreak) RemoveMidrollBreak(MediaBreak) RemoveMidrollBreak(MediaBreak) RemoveMidrollBreak(MediaBreak)

Removes a midroll MediaBreak from the MediaBreakSchedule.

Events

ScheduleChanged ScheduleChanged ScheduleChanged ScheduleChanged ScheduleChanged

Occurs when the MediaBreakSchedule changes.

See also