AdaptiveMediaSource.DownloadBitrateChanged Evento
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Se produce cuando cambia CurrentDownloadBitrate .
// Register
event_token DownloadBitrateChanged(TypedEventHandler<AdaptiveMediaSource, AdaptiveMediaSourceDownloadBitrateChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void DownloadBitrateChanged(event_token const* cookie) const;
// Revoke with event_revoker
AdaptiveMediaSource::DownloadBitrateChanged_revoker DownloadBitrateChanged(auto_revoke_t, TypedEventHandler<AdaptiveMediaSource, AdaptiveMediaSourceDownloadBitrateChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<AdaptiveMediaSource,AdaptiveMediaSourceDownloadBitrateChangedEventArgs> DownloadBitrateChanged;
function onDownloadBitrateChanged(eventArgs) { /* Your code */ }
adaptiveMediaSource.addEventListener("downloadbitratechanged", onDownloadBitrateChanged);
adaptiveMediaSource.removeEventListener("downloadbitratechanged", onDownloadBitrateChanged);
- or -
adaptiveMediaSource.ondownloadbitratechanged = onDownloadBitrateChanged;
Public Custom Event DownloadBitrateChanged As TypedEventHandler(Of AdaptiveMediaSource, AdaptiveMediaSourceDownloadBitrateChangedEventArgs)