MediaElement.SetPlaybackSource(IMediaPlaybackSource) Method

Definition

Sets the source of the MediaElement to the specified media playback source.

Equivalent WinUI method: Microsoft.UI.Xaml.Controls.MediaElement.SetPlaybackSource.

public:
 virtual void SetPlaybackSource(IMediaPlaybackSource ^ source) = SetPlaybackSource;
void SetPlaybackSource(IMediaPlaybackSource const & source);
public void SetPlaybackSource(IMediaPlaybackSource source);
function setPlaybackSource(source)
Public Sub SetPlaybackSource (source As IMediaPlaybackSource)

Parameters

source
IMediaPlaybackSource

The media playback source.

Applies to