共用方式為


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) 

事件類型

適用於