Click here to Skip to main content
15,881,715 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have searched the web and cannot find a way that works to ask a MediaElement what it's play state is, or have it generate an event when the position of the video changes. Anyone have any samples that work ?
Posted

1 solution

Hi,

I found this article http://www.codeproject.com/Articles/142615/Custom-Media-Player-in-WPF-Part-1.aspx[^]. The article uses a timer which will call the function changeStatus every second to notify how much the video has progressed. I hope it was of some help.
 
Share this answer
 
Comments
Christian Graus 10-Jun-11 6:17am    
Thanks - I will end up writing something a bit better than this, if there's no better solution.
Tarun.K.S 10-Jun-11 6:38am    
That's great, good luck!
hzawary 28-Aug-12 14:11pm    
I have this problem too, exactly! Did you write it in better way? may give me result? thanks in advance:)
Christian Graus 30-Aug-12 12:06pm    
I used the article I linked to. It's not great, but it's all there is.
hzawary 30-Aug-12 12:42pm    
Thanks for reply;)
I also find the other way in "Pro WPF in C# 2008" book that explain about use Timeline instead DispatcherTimer, I think TimeLine is better, it isn't?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900