Is there a way to see if a MediaElement is playing
I would like to perform a conditional that looks to see if a video is playing in my MediaElement. Possible?
Thanks
I would like to perform a conditional that looks to see if a video is playing in my MediaElement. Possible?
Thanks
Hello, looks like there’s no build in property for this. But you can try to create your own property, say, IsPlaying, which type is bool. You need to update its value every time you call the Play, Stop, Pause, and Close method.
Yes, sorry there is no built-in property in v1 WPF that would give you that information, but I have added a request for our further releases to include this. One thing you could try is to look for change in the Position value within a period of time (ie: a few milliseconds).
Thanks.