How do I determine if MediaElement is playing?

前端 未结 8 2259
闹比i
闹比i 2021-01-01 09:44

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

8条回答
  •  星月不相逢
    2021-01-01 10:26

    You aren't missing anything. You pretty much have to manually keep track of whether or not the media is playing. It's a pity, since it is so easy in Silverlight, as you mention. Seems like a major oversight to me.

提交回复
热议问题