Condividi tramite


PlayToReceiver.NotifyTimeUpdate(TimeSpan) Metodo

Definizione

Notifica al ricevitore Play To che la posizione temporale della riproduzione audio o video è stata modificata.

public:
 virtual void NotifyTimeUpdate(TimeSpan currentTime) = NotifyTimeUpdate;
void NotifyTimeUpdate(TimeSpan const& currentTime);
public void NotifyTimeUpdate(System.TimeSpan currentTime);
function notifyTimeUpdate(currentTime)
Public Sub NotifyTimeUpdate (currentTime As TimeSpan)

Parametri

currentTime
TimeSpan TimeSpan

Nuova posizione temporale della riproduzione.

Requisiti Windows

Funzionalità dell'app
privateNetworkClientServer

Commenti

Per un esempio di creazione di un ricevitore Play To software, vedere Cast multimediale.

async void receiver_TimeUpdateRequested(
    Windows.Media.PlayTo.PlayToReceiver sender,
    object args)
{
    await dispatcher.RunAsync(
        Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
        {
            if (VideoPlayer.Position != null)
                receiver.NotifyTimeUpdate(VideoPlayer.Position);
        });
}
Async Sub receiver_TimeUpdateRequested(
    sender As Windows.Media.PlayTo.PlayToReceiver,
    args As Object)

    Await Dispatcher.RunAsync(
        Windows.UI.Core.CoreDispatcherPriority.Normal,
        Sub()
            receiver.NotifyTimeUpdate(VideoPlayer.Position)
        End Sub)
End Sub

Si applica a

Vedi anche