MiracastReceiverSession.MediaSourceCreated 事件

定义

创建 MiracastReceiverConnectionMediaSource 对象时引发的事件。

// Register
event_token MediaSourceCreated(TypedEventHandler<MiracastReceiverSession, MiracastReceiverMediaSourceCreatedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MiracastReceiverSession::MediaSourceCreated_revoker MediaSourceCreated(auto_revoke_t, TypedEventHandler<MiracastReceiverSession, MiracastReceiverMediaSourceCreatedEventArgs const&> const& handler) const;
public event TypedEventHandler<MiracastReceiverSession,MiracastReceiverMediaSourceCreatedEventArgs> MediaSourceCreated;
function onMediaSourceCreated(eventArgs) { /* Your code */ }
miracastReceiverSession.addEventListener("mediasourcecreated", onMediaSourceCreated);
miracastReceiverSession.removeEventListener("mediasourcecreated", onMediaSourceCreated);
- or -
miracastReceiverSession.onmediasourcecreated = onMediaSourceCreated;
Public Custom Event MediaSourceCreated As TypedEventHandler(Of MiracastReceiverSession, MiracastReceiverMediaSourceCreatedEventArgs) 

事件类型

注解

在调用 MiracastReceiverSession.StartMiracastReceiverSession.StartAsync 方法之前,应用必须订阅此事件。

适用于

另请参阅