PlayToReceiver.NotifySeeking 方法

定义

通知“播放到”接收器音频或视频播放元素正在寻求新的播放位置。

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

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

适用于

另请参阅