BackgroundMediaPlayer.Current Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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