Observe position in Java

This forum is about all development around libVLC.
147852369
Blank Cone
Blank Cone
Posts: 55
Joined: 01 Mar 2013 12:18

Observe position in Java

Postby 147852369 » 14 Jan 2017 07:23

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15264
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Observe position in Java

Postby Rémi Denis-Courmont » 15 Jan 2017 15:23

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 3 guests