다음을 통해 공유


MediaPlayer.MediaPlayerRateChanged 이벤트

정의

미디어 재생 속도가 변경되면 발생합니다.

참고

MediaPlayer.MediaPlayerRateChanged는 Windows 10 버전 1607 이후에 변경되거나 사용할 수 없습니다. 대신 MediaPlayer.PlaybackSession 속성을 사용하여 MediaPlaybackSession 개체를 가져와 MediaPlaybackSession.PlaybackRateChanged 이벤트를 사용합니다.

// 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) 

이벤트 유형

특성

적용 대상