BackgroundMediaPlayer.IsMediaPlaying BackgroundMediaPlayer.IsMediaPlaying BackgroundMediaPlayer.IsMediaPlaying BackgroundMediaPlayer.IsMediaPlaying 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 Platform::Boolean IsMediaPlaying()
static bool IsMediaPlaying() const;
public static bool IsMediaPlaying()
Public Shared Function IsMediaPlaying() As bool
var bool = Windows.Media.Playback.BackgroundMediaPlayer.isMediaPlaying();

Returns

bool bool bool

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

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.