Share via


MediaPlayerElement.MediaPlayer Property

Definition

Gets the MediaPlayer instance used to render media.

public:
 property MediaPlayer ^ MediaPlayer { MediaPlayer ^ get(); };
MediaPlayer MediaPlayer();
public MediaPlayer MediaPlayer { get; }
var mediaPlayer = mediaPlayerElement.mediaPlayer;
Public ReadOnly Property MediaPlayer As MediaPlayer

Property Value

The MediaPlayer instance used to render media.

Remarks

You can use the SetMediaPlayer method to change the underlying MediaPlayer instance. Changing the MediaPlayer can cause non-trivial side effects because it can change other properties of the MediaPlayerElement.

Applies to