Udostępnij za pośrednictwem


MediaBinder.Binding Event

Definition

Occurs when a media player is ready for the media content to be bound to a MediaSource. Use the handler for this to set the media content for the source by calling SetStream, SetStreamReference, or SetUri.

// Register
event_token Binding(TypedEventHandler<MediaBinder, MediaBindingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MediaBinder::Binding_revoker Binding(auto_revoke_t, TypedEventHandler<MediaBinder, MediaBindingEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaBinder,MediaBindingEventArgs> Binding;
function onBinding(eventArgs) { /* Your code */ }
mediaBinder.addEventListener("binding", onBinding);
mediaBinder.removeEventListener("binding", onBinding);
- or -
mediaBinder.onbinding = onBinding;
Public Custom Event Binding As TypedEventHandler(Of MediaBinder, MediaBindingEventArgs) 

Event Type

Applies to