MediaPlayer.PlaybackMediaMarkerReached MediaPlayer.PlaybackMediaMarkerReached MediaPlayer.PlaybackMediaMarkerReached MediaPlayer.PlaybackMediaMarkerReached MediaPlayer.PlaybackMediaMarkerReached Event

Definition

Occurs when a media marker has been reached during playback.

Note

MediaPlayer.PlaybackMediaMarkerReached may be altered or unavailable after Windows 10, version 1607. Instead, use MediaPlaybackItem.TimedMetadataTracks to manage data or text cues. For more information, see Media playback with MediaSource.

public : event TypedEventHandler<MediaPlayer, PlaybackMediaMarkerReachedEventArgs> PlaybackMediaMarkerReached
// Register
event_token PlaybackMediaMarkerReached(TypedEventHandler<MediaPlayer, PlaybackMediaMarkerReachedEventArgs> const& handler) const;

// Revoke with event_token
void PlaybackMediaMarkerReached(event_token const& cookie) const;

// Revoke with event_revoker
PlaybackMediaMarkerReached_revoker PlaybackMediaMarkerReached(auto_revoke_t, TypedEventHandler<MediaPlayer, PlaybackMediaMarkerReachedEventArgs> const& handler) const;
public event TypedEventHandler<MediaPlayer, PlaybackMediaMarkerReachedEventArgs> PlaybackMediaMarkerReached
Public Event PlaybackMediaMarkerReached As TypedEventHandler (Of MediaPlayer, PlaybackMediaMarkerReachedEventArgs)
function onPlaybackMediaMarkerReached(eventArgs){/* Your code */}


mediaPlayer.addEventListener("playbackmediamarkerreached", onPlaybackMediaMarkerReached);
mediaPlayer.removeEventListener("playbackmediamarkerreached", onPlaybackMediaMarkerReached);