Compartir a través de


PlayToReceiver.StopRequested Evento

Definición

Se produce cuando se ha realizado una solicitud para que el receptor Play To deje de reproducir el medio transmitido.

// Register
event_token StopRequested(TypedEventHandler<PlayToReceiver, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
PlayToReceiver::StopRequested_revoker StopRequested(auto_revoke_t, TypedEventHandler<PlayToReceiver, IInspectable const&> const& handler) const;
public event TypedEventHandler<PlayToReceiver,object> StopRequested;
function onStopRequested(eventArgs) { /* Your code */ }
playToReceiver.addEventListener("stoprequested", onStopRequested);
playToReceiver.removeEventListener("stoprequested", onStopRequested);
- or -
playToReceiver.onstoprequested = onStopRequested;
Public Custom Event StopRequested As TypedEventHandler(Of PlayToReceiver, Object) 

Tipo de evento

Comentarios

Para obtener un ejemplo de creación de un receptor play to de software, consulte Conversión multimedia.

async void receiver_StopRequested(
    Windows.Media.PlayTo.PlayToReceiver sender,
    object args)
{
    await dispatcher.RunAsync(
        Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
        {
            VideoPlayer.Stop();
        });
}
Async Sub receiver_StopRequested(
    sender As Windows.Media.PlayTo.PlayToReceiver,
    args As Object)

    Await Dispatcher.RunAsync(
        Windows.UI.Core.CoreDispatcherPriority.Normal,
        Sub()

            VideoPlayer.Stop()
        End Sub)
End Sub

Se aplica a

Consulte también