Condividi tramite


PlayToManager.SourceRequested Evento

Definizione

Si verifica quando un utente richiede il flusso multimediale a un dispositivo di destinazione 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) 

Tipo evento

Attributi

Commenti

L'evento SourceRequested viene generato quando un utente seleziona l'accesso Dispositivi in un'applicazione abilitata per Play To. Fornire l'audio, il video o l'immagine che Play To trasmetterà a un dispositivo di destinazione durante l'evento SourceRequested .

Se non si fornisce un'origine multimediale entro 200 millisecondi, l'evento SourceRequested si verifica il timeout e l'accesso Dispositivi non visualizzerà alcuna destinazione Play To per l'app.

L'evento SourceRequested si verifica prima che l'utente selezioni il dispositivo di destinazione. Dopo che l'utente ha selezionato il dispositivo di destinazione, viene generato l'evento SourceSelected . Se l'utente esce dall'accesso ai dispositivi senza selezionare un dispositivo di destinazione, l'evento SourceSelected non viene generato.

Si applica a

Vedi anche