Jaa


BackgroundMediaPlayer.IsMediaPlaying Method

Definition

Returns a Boolean value indicating if other media is currently playing on the device.

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 bool IsMediaPlaying();
 static bool IsMediaPlaying();
/// [Windows.Foundation.Metadata.Deprecated("Use MediaPlayer instead of BackgroundMediaPlayer.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
 static bool IsMediaPlaying();
public static bool IsMediaPlaying();
[Windows.Foundation.Metadata.Deprecated("Use MediaPlayer instead of BackgroundMediaPlayer.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public static bool IsMediaPlaying();
function isMediaPlaying()
Public Shared Function IsMediaPlaying () As Boolean

Returns

Boolean

bool

Boolean value indicating if other media is currently playing on the device.

Attributes

Remarks

If this value is true, you may want to prompt the user to see if they would prefer to continue to listen to the other media source.

Applies to