Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 2.64 KB

playtomanager.md

File metadata and controls

33 lines (20 loc) · 2.64 KB
-api-id -api-type
T:Windows.Media.PlayTo.PlayToManager
winrt class

Windows.Media.PlayTo.PlayToManager

-description

Provides access to Play To capabilities.

-remarks

If your application includes audio, video, or image elements, users can stream the media source for those elements to a Play To target device. You can use the PlayToManager class to customize the Play To experience for users. You can disable the default behavior by using the DefaultSourceSelection property.You can select which media is streamed by using the SourceRequested event. And you can display the Play To UI in place of the Devices charm by using the ShowPlayToUI method.

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.

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.

For an example of how to use Play To in an application, see PlayReady DRM.

-examples

[!code-csharpSourceRequested]

[!code-vbSourceRequested]

-see-also

Play To sample, PlayToReceiver sample, Media Server sample