CastingSource
CastingSource
CastingSource
CastingSource
Class
Definition
Represents the media content that can be sent to another device.
public : sealed class CastingSource : ICastingSourcepublic sealed class CastingSource : ICastingSourcePublic NotInheritable Class CastingSource Implements ICastingSource// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
You can obtain this object from a MediaPlayer, Image, or HTML Tag by calling the respective GetAsCastingSource method. In the current release, apps should use MediaPlayer and MediaPlayerElement for media playback, but the legacy MediaElement control also provides a GetAsCastingSource method.
Properties
PreferredSourceUri PreferredSourceUri PreferredSourceUri PreferredSourceUri
Gets or sets an alternative URI for the content for use with DLNA ByRef.
public : Uri PreferredSourceUri { get; set; }public Uri PreferredSourceUri { get; set; }Public ReadWrite Property PreferredSourceUri As Uri// You can use this property in JavaScript.
- Value
- Uri Uri Uri Uri
The alternative URI for the content.