Freigeben über


MediaPlayer.MediaPlayerRateChanged Ereignis

Definition

Tritt auf, wenn sich die Medienwiedergaberate geändert hat.

Hinweis

MediaPlayer.MediaPlayerRateChanged kann nach Windows 10 Version 1607 geändert oder nicht mehr verfügbar sein. Verwenden Sie stattdessen die MediaPlayer.PlaybackSession-Eigenschaft , um ein MediaPlaybackSession-Objekt abzurufen, und verwenden Sie dann das MediaPlaybackSession.PlaybackRateChanged-Ereignis .

// Register
event_token MediaPlayerRateChanged(TypedEventHandler<MediaPlayer, MediaPlayerRateChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MediaPlayer::MediaPlayerRateChanged_revoker MediaPlayerRateChanged(auto_revoke_t, TypedEventHandler<MediaPlayer, MediaPlayerRateChangedEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.PlaybackRateChanged instead of MediaPlayerRateChanged.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.PlaybackRateChanged instead of MediaPlayerRateChanged.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
// Register
event_token MediaPlayerRateChanged(TypedEventHandler<MediaPlayer, MediaPlayerRateChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MediaPlayer::MediaPlayerRateChanged_revoker MediaPlayerRateChanged(auto_revoke_t, TypedEventHandler<MediaPlayer, MediaPlayerRateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaPlayer,MediaPlayerRateChangedEventArgs> MediaPlayerRateChanged;
[add: Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.PlaybackRateChanged instead of MediaPlayerRateChanged.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("Use PlaybackSession.PlaybackRateChanged instead of MediaPlayerRateChanged.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<MediaPlayer,MediaPlayerRateChangedEventArgs> MediaPlayerRateChanged;
function onMediaPlayerRateChanged(eventArgs) { /* Your code */ }
mediaPlayer.addEventListener("mediaplayerratechanged", onMediaPlayerRateChanged);
mediaPlayer.removeEventListener("mediaplayerratechanged", onMediaPlayerRateChanged);
- or -
mediaPlayer.onmediaplayerratechanged = onMediaPlayerRateChanged;
Public Custom Event MediaPlayerRateChanged As TypedEventHandler(Of MediaPlayer, MediaPlayerRateChangedEventArgs) 

Ereignistyp

Attribute

Gilt für: