Condividi tramite


PlayToReceiver.NotifyDurationChange(TimeSpan) Metodo

Definizione

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

public:
 virtual void NotifyDurationChange(TimeSpan duration) = NotifyDurationChange;
void NotifyDurationChange(TimeSpan const& duration);
public void NotifyDurationChange(System.TimeSpan duration);
function notifyDurationChange(duration)
Public Sub NotifyDurationChange (duration As TimeSpan)

Parametri

duration
TimeSpan TimeSpan

Nuova durata del supporto audio o video.

Requisiti Windows

Funzionalità dell'app
privateNetworkClientServer

Commenti

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

void VideoPlayer_MediaOpened(object sender, RoutedEventArgs e)
{
    if (receiver != null)
    {
        receiver.NotifyDurationChange(VideoPlayer.NaturalDuration.TimeSpan);
        receiver.NotifyLoadedMetadata();
    }
}
Sub VideoPlayer_MediaOpened()
    If receiver IsNot Nothing Then
        receiver.NotifyDurationChange(VideoPlayer.NaturalDuration.TimeSpan)
        receiver.NotifyLoadedMetadata()
    End If
End Sub

Si applica a

Vedi anche