Seems simple enough, but I cannot figure out any way to determine what the state of a MediaElement is. There are various properties for some states (such as IsBuffering) but
For Universal Windows 10 Platform (UWP) :
Universal Windows 10 Platform (UWP)
if ( yourMediaElement.CurrentState.ToString() == "Playing" ) { //nou yourMediaElement is playng }
or below if you wana use an enum instead:
enum
if (yourMediaElement.CurrentState == MediaElementState.Playing) { //nou yourMediaElement is playng }