PlayToReceiver.NotifyTimeUpdate(TimeSpan) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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
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