MiracastReceiverSession.MediaSourceCreated 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建 MiracastReceiverConnection 的 MediaSource 对象时引发的事件。
// 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.Start 或 MiracastReceiverSession.StartAsync 方法之前,应用必须订阅此事件。