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 WPF use this: var playing = player.Position < player.NaturalDuration;
var playing = player.Position < player.NaturalDuration;