PlayToReceiver.NotifySeeking Method

Definition

Notifies the Play To receiver that the audio or video playback element is seeking a new playback location.

public:
 virtual void NotifySeeking() = NotifySeeking;
void NotifySeeking();
public void NotifySeeking();
function notifySeeking()
Public Sub NotifySeeking ()

Windows requirements

App capabilities
privateNetworkClientServer

Remarks

For an example of creating a software Play To receiver, see Media casting.

void VideoPlayer_SeekCompleted(object sender, RoutedEventArgs e)
{
    if (receiver != null)
    {
        if (!seeking)
            receiver.NotifySeeking();
        receiver.NotifySeeked();
        seeking = false;
    }
}
Sub VideoPlayer_SeekCompleted()
    If receiver IsNot Nothing Then
        If Not seeking Then
            receiver.NotifySeeking()
            receiver.NotifySeeked()
            seeking = False
        End If
    End If
End Sub

Applies to

See also