MediaPlayer.GetAsCastingSource MediaPlayer.GetAsCastingSource MediaPlayer.GetAsCastingSource MediaPlayer.GetAsCastingSource MediaPlayer.GetAsCastingSource Method

Definition

Gets a CastingSource representing the MediaPlayer, which allows it's media to be cast to other devices.

public : CastingSource GetAsCastingSource()
CastingSource GetAsCastingSource() const;
public CastingSource GetAsCastingSource()
Public Function GetAsCastingSource() As CastingSource
var castingSource = mediaPlayer.getAsCastingSource();

Returns

Additional features and requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

For more information on casting media to remote devices, see Media casting.