Jaa


MediaBreakSchedule.InsertMidrollBreak(MediaBreak) Method

Definition

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.

public:
 virtual void InsertMidrollBreak(MediaBreak ^ mediaBreak) = InsertMidrollBreak;
void InsertMidrollBreak(MediaBreak const& mediaBreak);
public void InsertMidrollBreak(MediaBreak mediaBreak);
function insertMidrollBreak(mediaBreak)
Public Sub InsertMidrollBreak (mediaBreak As MediaBreak)

Parameters

mediaBreak
MediaBreak

The MediaBreak to add to the schedule.

Remarks

Remove a midroll break by calling RemoveMidrollBreak.

Access the current list of midroll media breaks in the schedule with the MidrollBreaks property.

If you want a MediaBreak to be played before the associated MediaPlaybackItem plays, assign it to the PrerollBreak property. If you want a MediaBreak to be played after the associated MediaPlaybackItem plays, assign it to the PostrollBreak property.

Applies to