Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.58 KB

mediabreak.md

File metadata and controls

25 lines (17 loc) · 1.58 KB
-api-id -api-type
T:Windows.Media.Playback.MediaBreak
winrt class

Windows.Media.Playback.MediaBreak

-description

Represents a set of one or more MediaPlaybackItem objects that are played before, after, or at specified points during the playback of another MediaPlaybackItem.

-remarks

Get a reference to the currently playing MediaBreak using the constructor or by accessing the CurrentBreak property of the MediaBreakManager. When a media break begins playing, you can get a reference to the associated MediaBreak object by handling the BreakStarted event and accessing the MediaBreak property of the MediaBreakStartedEventArgs passed into the handler.

Get or set a pre-roll or post-roll media break for a media item by accessing the PrerollBreak or PostrollBreak property of the MediaBreakSchedule object associated with a MediaPlaybackItem.

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

-examples

-see-also

Create, schedule, and manage media breaks