MediaPlayer.SetMediaSource(IMediaSource) MediaPlayer.SetMediaSource(IMediaSource) MediaPlayer.SetMediaSource(IMediaSource) MediaPlayer.SetMediaSource(IMediaSource) 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 : void SetMediaSource(IMediaSource source)
void SetMediaSource(IMediaSource source) const;
public void SetMediaSource(IMediaSource source)
Public Sub SetMediaSource(source As IMediaSource)
mediaPlayer.setMediaSource(source);

Parameters

source
IMediaSource IMediaSource IMediaSource

The media source for playback.