We can also embed the feature of the Play To Receiver in the application, so that the application can receive the media streaming from a client computer and display the content in your application. We can create a software for the app that receives streaming of media file from another computer on the network and plays video content as part of your app and also can respond to various events from the client side computer.

So, this article will describe how to create an application that enables you to play the video from the client computer using Play To Receiver software in Windows Store Apps.

Now, let's begin to create.

Step 1

Create a Windows Store Blank Application using XAML.

Step 2

You need to add some capabilities to the project. Do that using the following:

// Advertise the receiver on the local network and start receiving commands

await receiver.StartAsync();

}

}

The above code initializes the instance of the PlayToReceiver class. Then it creates event handlers that respond to the client computer. These actions include receiving the source media and many other actions. Here I also set the friendly name of the device that is identified on the network.