kakone / VLC.MediaElement

MediaElement clone powered by VLC
GNU Lesser General Public License v2.1
68 stars 33 forks source link

Track position change event? #71

Closed JunielKatarn closed 5 years ago

JunielKatarn commented 6 years ago

Is there a way to programmatically tracks the position (time) of the media being currently played.

Can this information be accessed in a VLC.Mediaelement? By looking at the code, seems that the OnPositionChanged event is private.

Weissu commented 6 years ago

I wish to get OnPositionChanged or similar. This event is very important. Now have to use really dirty trick to make sure if video has completed seek operation.

kakone commented 6 years ago

You can use the RegisterPropertyChangedCallback with the Position dependency property.

Weissu commented 6 years ago

RegisterPropertyChangedCallback isn't exactly what I was looking for but with that I solved the problem anyway. Thanks for answering my problem.