MediaPlayer.MediaPlayerRateChanged MediaPlayer.MediaPlayerRateChanged MediaPlayer.MediaPlayerRateChanged MediaPlayer.MediaPlayerRateChanged MediaPlayer.MediaPlayerRateChanged Event

Definition

Occurs when the media playback rate has changed.

Note

MediaPlayer.MediaPlayerRateChanged may be altered or unavailable after Windows 10, version 1607. Instead, use the MediaPlayer.PlaybackSession property to get a MediaPlaybackSession object and then use the MediaPlaybackSession.PlaybackRateChanged event.

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

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

// Revoke with event_revoker
MediaPlayerRateChanged_revoker MediaPlayerRateChanged(auto_revoke_t, TypedEventHandler<MediaPlayer, MediaPlayerRateChangedEventArgs> const& handler) const;
public event TypedEventHandler<MediaPlayer, MediaPlayerRateChangedEventArgs> MediaPlayerRateChanged
Public Event MediaPlayerRateChanged As TypedEventHandler (Of MediaPlayer, MediaPlayerRateChangedEventArgs)
function onMediaPlayerRateChanged(eventArgs){/* Your code */}


mediaPlayer.addEventListener("mediaplayerratechanged", onMediaPlayerRateChanged);
mediaPlayer.removeEventListener("mediaplayerratechanged", onMediaPlayerRateChanged);