PlayToManager.SourceSelected | sourceselected event

Applies to Windows only

Occurs when a Play To source element has been selected.

Syntax


public:
event TypedEventHandler<PlayToManager, PlayToSourceSelectedEventArgs>^ SourceSelected {
   Windows::Foundation::EventRegistrationToken add(TypedEventHandler<PlayToManager, PlayToSourceSelectedEventArgs>^ value);
   void remove(Windows::Foundation::EventRegistrationToken token);
}

Event information

Delegate TypedEventHandler<PlayToManager, PlayToSourceSelectedEventArgs>

Remarks

In a Play To–enabled app, the user selects the Devices charm (or the Play To UI) to stream audio, video, or images from the app to a target device. The SourceSelected event is fired after the user has selected a target device. If the user exits the Devices charm or the Play To UI without selecting a target device, the SourceSelected event isn't fired.

For an example of how to use Play To in an application, see Quickstart: Using Play To in applications (JavaScript) or Quickstart: Using Play To in applications (C#/VB).

Examples

No code example is currently available or this language may not be supported.

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

See also

PlayToManager
Samples
Play To sample
PlayToReceiver sample
Media Server sample

 

 

Show:
© 2014 Microsoft