PlayToManager.SourceRequested イベント

定義

ユーザーが Play To ターゲット デバイスにストリーミングするようにメディアを要求したときに発生します。

/// [add: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [remove: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
// Register
event_token SourceRequested(TypedEventHandler<PlayToManager, PlayToSourceRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PlayToManager::SourceRequested_revoker SourceRequested(auto_revoke_t, TypedEventHandler<PlayToManager, PlayToSourceRequestedEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
// Register
event_token SourceRequested(TypedEventHandler<PlayToManager, PlayToSourceRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PlayToManager::SourceRequested_revoker SourceRequested(auto_revoke_t, TypedEventHandler<PlayToManager, PlayToSourceRequestedEventArgs const&> const& handler) const;
[add: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
[remove: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public event TypedEventHandler<PlayToManager,PlayToSourceRequestedEventArgs> SourceRequested;
[add: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<PlayToManager,PlayToSourceRequestedEventArgs> SourceRequested;
function onSourceRequested(eventArgs) { /* Your code */ }
playToManager.addEventListener("sourcerequested", onSourceRequested);
playToManager.removeEventListener("sourcerequested", onSourceRequested);
- or -
playToManager.onsourcerequested = onSourceRequested;
Public Custom Event SourceRequested As TypedEventHandler(Of PlayToManager, PlayToSourceRequestedEventArgs) 

イベントの種類

属性

注釈

SourceRequested イベントは、ユーザーが Play To 対応アプリケーションで [デバイス] チャームを選択したときに発生します。 SourceRequested イベント中にターゲット デバイスにストリーミングされるオーディオ、ビデオ、または画像を Play To に指定します。

200 ミリ秒以内にメディア ソースを指定しない場合、 SourceRequested イベントはタイムアウトし、[デバイス] チャームにはアプリの Play To ターゲットは表示されません。

SourceRequested イベントは、ユーザーがターゲット デバイスを選択する前に発生します。 ユーザーがターゲット デバイスを選択すると、 SourceSelected イベントが発生します。 ユーザーがターゲット デバイスを選択せずに [デバイス ] チャームを終了した場合、 SourceSelected イベントは発生しません。

適用対象

こちらもご覧ください