Page 1 of 1

Observe position in Java

Posted: 14 Jan 2017 07:23
by 147852369
Hello,

I want to implement a timeline in my video player based on JavaFX and libVLC. I have to observe getPosition() to update the timeline's position. How would you implement this?

Thanks.

Re: Observe position in Java

Posted: 15 Jan 2017 15:23
by RĂ©mi Denis-Courmont
Stating the obvious here but the position changes continuously during playback, so you can't watch it in the traditional sense of installing a callback when the value changes.

It's up to you to figure out how often you want to poll it.