Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 5.09 KB

playtoreceiver.md

File metadata and controls

46 lines (31 loc) · 5.09 KB
-api-id -api-type
T:Windows.Media.PlayTo.PlayToReceiver
winrt class

Windows.Media.PlayTo.PlayToReceiver

-description

Represents a Play To target.

-remarks

You can use the PlayToReceiver class to create a custom software Play To receiver that is a digital media renderer for computers on your network. You can include a PlayToReceiver object in your app to handle communication with Play To client computers, and then play or display content streamed from those computers using your own media elements or controls.

The members of the PlayToReceiver class consist of the following:

In Play To, video starts from the current position. If you want to start the video from the beginning, simply seek to the beginning of the video as soon as the Play To connection is established.

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

[!code-csharpStartAndStop]

[!code-vbStartAndStop]

PlayTo apps will not be suspended as long as video or music is playing on the Play To receiver or images are continuously sent to the Play To receiver. Apps have approximately 10 seconds to send a new image after the current one is displayed and approximately 10 seconds to send the next audio or video after the current one has ended.

Note

This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).

-examples

-see-also

Play To sample, PlayToReceiver sample, Media Server sample

-capabilities

privateNetworkClientServer