AdaptiveMediaSource.PlaybackBitrateChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the CurrentPlaybackBitrate changes.
// Register
event_token PlaybackBitrateChanged(TypedEventHandler<AdaptiveMediaSource, AdaptiveMediaSourcePlaybackBitrateChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void PlaybackBitrateChanged(event_token const* cookie) const;
// Revoke with event_revoker
AdaptiveMediaSource::PlaybackBitrateChanged_revoker PlaybackBitrateChanged(auto_revoke_t, TypedEventHandler<AdaptiveMediaSource, AdaptiveMediaSourcePlaybackBitrateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<AdaptiveMediaSource,AdaptiveMediaSourcePlaybackBitrateChangedEventArgs> PlaybackBitrateChanged;
function onPlaybackBitrateChanged(eventArgs) { /* Your code */ }
adaptiveMediaSource.addEventListener("playbackbitratechanged", onPlaybackBitrateChanged);
adaptiveMediaSource.removeEventListener("playbackbitratechanged", onPlaybackBitrateChanged);
- or -
adaptiveMediaSource.onplaybackbitratechanged = onPlaybackBitrateChanged;
Public Custom Event PlaybackBitrateChanged As TypedEventHandler(Of AdaptiveMediaSource, AdaptiveMediaSourcePlaybackBitrateChangedEventArgs)