MediaBinder.Binding 事件

定义

当媒体播放器准备好将媒体内容绑定到 MediaSource 时发生。 为此使用处理程序通过调用 SetStreamSetStreamReferenceSetUri 来设置源的媒体内容。

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

事件类型

适用于