PlayToReceiver.NotifyEnded Method

Definition

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

public:
 virtual void NotifyEnded() = NotifyEnded;
void NotifyEnded();
public void NotifyEnded();
function notifyEnded()
Public Sub NotifyEnded ()

Windows requirements

App capabilities
privateNetworkClientServer

Remarks

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

void VideoPlayer_MediaEnded(object sender, RoutedEventArgs e)
{
    if (receiver != null)
    {
        receiver.NotifyEnded();
        VideoPlayer.Stop();
    }
}
Sub VideoPlayer_MediaEnded()
    If receiver IsNot Nothing Then
        receiver.NotifyEnded()
        VideoPlayer.Stop()
    End If
End Sub

Applies to

See also