Compartir a través de


MediaPlayer.PlaybackMediaMarkerReached Evento

Definición

Se produce cuando se ha alcanzado un marcador multimedia durante la reproducción.

Nota

MediaPlayer.PlaybackMediaMarkerReached puede modificarse o no estar disponible después de Windows 10, versión 1607. En su lugar, use MediaPlaybackItem.TimedMetadataTracks para administrar las indicaciones de datos o texto. Para obtener más información, vea Reproducción multimedia con MediaSource.

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

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

// Revoke with event_revoker
MediaPlayer::PlaybackMediaMarkerReached_revoker PlaybackMediaMarkerReached(auto_revoke_t, TypedEventHandler<MediaPlayer, PlaybackMediaMarkerReachedEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("Use media tracks on MediaPlaybackItem instead of PlaybackMediaMarkers.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("Use media tracks on MediaPlaybackItem instead of PlaybackMediaMarkers.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
// Register
event_token PlaybackMediaMarkerReached(TypedEventHandler<MediaPlayer, PlaybackMediaMarkerReachedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MediaPlayer::PlaybackMediaMarkerReached_revoker PlaybackMediaMarkerReached(auto_revoke_t, TypedEventHandler<MediaPlayer, PlaybackMediaMarkerReachedEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaPlayer,PlaybackMediaMarkerReachedEventArgs> PlaybackMediaMarkerReached;
[add: Windows.Foundation.Metadata.Deprecated("Use media tracks on MediaPlaybackItem instead of PlaybackMediaMarkers.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("Use media tracks on MediaPlaybackItem instead of PlaybackMediaMarkers.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<MediaPlayer,PlaybackMediaMarkerReachedEventArgs> PlaybackMediaMarkerReached;
function onPlaybackMediaMarkerReached(eventArgs) { /* Your code */ }
mediaPlayer.addEventListener("playbackmediamarkerreached", onPlaybackMediaMarkerReached);
mediaPlayer.removeEventListener("playbackmediamarkerreached", onPlaybackMediaMarkerReached);
- or -
mediaPlayer.onplaybackmediamarkerreached = onPlaybackMediaMarkerReached;
Public Custom Event PlaybackMediaMarkerReached As TypedEventHandler(Of MediaPlayer, PlaybackMediaMarkerReachedEventArgs) 

Tipo de evento

Atributos

Se aplica a