PlayToReceiver.NotifySeeked 方法

定义

通知“播放到”接收器音频或视频播放元素已在新的播放位置启动。

public:
 virtual void NotifySeeked() = NotifySeeked;
void NotifySeeked();
public void NotifySeeked();
function notifySeeked()
Public Sub NotifySeeked ()

Windows 要求

应用功能
privateNetworkClientServer

注解

有关创建软件“播放到”接收器的示例,请参阅 媒体强制转换

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

适用于

另请参阅