Image.PlayToSource Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
property PlayToSource ^ PlayToSource { PlayToSource ^ get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("PlayToSource may be altered or unavailable for releases after Windows 10.0. Instead, use GetAsCastingSource.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
PlayToSource PlayToSource();
/// [get: Windows.Foundation.Metadata.Deprecated("PlayToSource may be altered or unavailable for releases after Windows 10.0. Instead, use GetAsCastingSource.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
PlayToSource PlayToSource();
public PlayToSource PlayToSource { [Windows.Foundation.Metadata.Deprecated("PlayToSource may be altered or unavailable for releases after Windows 10.0. Instead, use GetAsCastingSource.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; }
public PlayToSource PlayToSource { [Windows.Foundation.Metadata.Deprecated("PlayToSource may be altered or unavailable for releases after Windows 10.0. Instead, use GetAsCastingSource.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; }
var playToSource = image.playToSource;
Public ReadOnly Property PlayToSource As PlayToSource
Property Value
A reference object that carries the Play To source information.
- Attributes
Remarks
You can use Play To to enable users to easily stream audio, video, or images from their computer to devices in their home network. Image.PlayToSource is specifically for the XAML images version of this scenario.
Play To is part of the Devices charm. Users open the Devices charm to select devices from their home network that they can stream the media content to. When a user selects a Play To target from the Devices charm, Play To fires the SourceRequested event. Play To then streams the media element that was passed to the SetSource method to the target device that the user has selected. Image.PlayToSource provides the PlayToSource controller object that the PlayToManager can use in this scenario. For an example of how to use Play To in an application, see PlayReady DRM.