次の方法で共有


MediaPlayer.PlaybackMediaMarkerReached イベント

定義

再生中にメディア マーカーに到達したときに発生します。

注意

MediaPlayer.PlaybackMediaMarkerReached は、バージョン 1607 Windows 10後に変更または使用できない場合があります。 代わりに、 MediaPlaybackItem.TimedMetadataTracks を使用してデータまたはテキストキューを管理します。詳細については、「 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) 

イベントの種類

属性

適用対象