Delen via


MediaPlayer.SetMediaSource(IMediaSource) Method

Definition

Sets the media source for playback.

Note

MediaPlayer.SetMediaSource may be altered or unavailable after Windows 10. Use MediaPlayer.Source instead.

public:
 virtual void SetMediaSource(IMediaSource ^ source) = SetMediaSource;
void SetMediaSource(IMediaSource const& source);
/// [Windows.Foundation.Metadata.Deprecated("Use Source instead of SetMediaSource.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
void SetMediaSource(IMediaSource const& source);
public void SetMediaSource(IMediaSource source);
[Windows.Foundation.Metadata.Deprecated("Use Source instead of SetMediaSource.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.Foundation.UniversalApiContract")]
public void SetMediaSource(IMediaSource source);
function setMediaSource(source)
Public Sub SetMediaSource (source As IMediaSource)

Parameters

source
IMediaSource

The media source for playback.

Attributes

Applies to