PlayToReceiver.NotifyRateChange(Double) 方法

定义

通知“播放到”接收器音频或视频播放的速率已更改。

public:
 virtual void NotifyRateChange(double rate) = NotifyRateChange;
void NotifyRateChange(double const& rate);
public void NotifyRateChange(double rate);
function notifyRateChange(rate)
Public Sub NotifyRateChange (rate As Double)

参数

rate
Double

double

播放速率的新值。

Windows 要求

应用功能
privateNetworkClientServer

注解

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

void VideoPlayer_RateChanged(object sender, RateChangedRoutedEventArgs e)
{
    if (receiver != null)
        receiver.NotifyRateChange(VideoPlayer.PlaybackRate);
}
Sub VideoPlayer_RateChanged()
    If receiver IsNot Nothing Then
        receiver.NotifyRateChange(VideoPlayer.PlaybackRate)
    End If
End Sub

适用于

另请参阅