PlayToReceiver.NotifyPaused | notifyPaused method

Applies to Windows only

Notifies the Play To receiver that the audio or video playback has been paused.

Syntax

Public Sub NotifyPaused()

Parameters

This method has no parameters.

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).

Sub VideoPlayer_CurrentStateChanged()

    If receiver IsNot Nothing Then
        Select Case VideoPlayer.CurrentState
            Case MediaElementState.Playing
                receiver.NotifyPlaying()
            Case MediaElementState.Paused
                receiver.NotifyPaused()
            Case MediaElementState.Stopped
                receiver.NotifyStopped()
        End Select
    End If
End Sub

Sub VideoPlayer_MediaFailed()
    If receiver IsNot Nothing Then receiver.NotifyError()
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

Capabilities

privateNetworkClientServer

See also

PlayToReceiver
Samples
Play To sample
PlayToReceiver sample
Media Server sample

 

 

Show:
© 2014 Microsoft