Sdílet prostřednictvím


PlayToReceiver.NotifyRateChange(Double) Method

Definition

Notifies the Play To receiver that the rate of the audio or video playback has changed.

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)

Parameters

rate
Double

double

The new value of the playback rate.

Windows requirements

App capabilities
privateNetworkClientServer

Remarks

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

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

Applies to

See also