PlayToReceiver.NotifyRateChange(Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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