PlayToReceiver.PlaybackRateChangeRequested | playbackratechangerequested event

Applies to Windows only

Occurs when the rate of audio or video playback has changed.

Syntax


Public Event PlaybackRateChangeRequested As TypedEventHandler(Of PlayToReceiver, PlaybackRateChangeRequestedEventArgs)

Event information

Delegate TypedEventHandler<PlayToReceiver, PlaybackRateChangeRequestedEventArgs>

Remarks

For an example of creating a software Play To receiver, see Quickstart: Creating a Play To Receiver (JavaScript) or Quickstart: Creating a Play To Receiver (C#/VB).


Async Sub receiver_PlaybackRateChangeRequested(
    sender As Windows.Media.PlayTo.PlayToReceiver,
    args As Windows.Media.PlayTo.PlaybackRateChangeRequestedEventArgs)

    Await Dispatcher.RunAsync(
        Windows.UI.Core.CoreDispatcherPriority.Normal,
        Sub()
            VideoPlayer.PlaybackRate = args.Rate
        End Sub)
End Sub


Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.Media.PlayTo
Windows::Media::PlayTo [C++]

Metadata

Windows.winmd

See also

PlayToReceiver
Samples
Play To sample
PlayToReceiver sample
Media Server sample

 

 

Show:
© 2014 Microsoft