共用方式為


MediaSourceAudioInputNode.MediaSourceCompleted 事件

定義

發生于播放位置到達媒體內容的結尾或 以 EndTime 屬性指定的位置時。

// Register
event_token MediaSourceCompleted(TypedEventHandler<MediaSourceAudioInputNode, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
MediaSourceAudioInputNode::MediaSourceCompleted_revoker MediaSourceCompleted(auto_revoke_t, TypedEventHandler<MediaSourceAudioInputNode, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaSourceAudioInputNode,object> MediaSourceCompleted;
function onMediaSourceCompleted(eventArgs) { /* Your code */ }
mediaSourceAudioInputNode.addEventListener("mediasourcecompleted", onMediaSourceCompleted);
mediaSourceAudioInputNode.removeEventListener("mediasourcecompleted", onMediaSourceCompleted);
- or -
mediaSourceAudioInputNode.onmediasourcecompleted = onMediaSourceCompleted;
Public Custom Event MediaSourceCompleted As TypedEventHandler(Of MediaSourceAudioInputNode, Object) 

事件類型

適用於