BackgroundMediaPlayer.Current Property

Definition

Gets the current instance of the background media player.

Note

Starting with Windows, version 1703, BackgroundMediaPlayer is deprecated and may not be available in future versions of Windows. Use the MediaPlayer class instead. For more information, see Play media in the background.

public:
 static property MediaPlayer ^ Current { MediaPlayer ^ get(); };
static MediaPlayer Current();
/// [get: Windows.Foundation.Metadata.Deprecated("Use MediaPlayer instead of BackgroundMediaPlayer.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
static MediaPlayer Current();
public static MediaPlayer Current { get; }
public static MediaPlayer Current { [Windows.Foundation.Metadata.Deprecated("Use MediaPlayer instead of BackgroundMediaPlayer.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")] get; }
var mediaPlayer = BackgroundMediaPlayer.current;
Public Shared ReadOnly Property Current As MediaPlayer

Property Value

The current instance of the background media player.

Attributes

Applies to