vlcj - setting position to mediaPlayer
Posted: 25 Jan 2011 15:37
Hi!
I am having some problems with accuracy when setting current position to media player via setTime(long), setPosition(float) or any other method that changes position of media player. Every time when I want to change current position to desired value, media player sets itself to that position but resets itself to desired value + offset (in my case 190ms) right away. For example, when I call setTime(0), media player sets itself to 190 millisecond. The same happens if I use setPosition(), skip(), ... Thing that bothers me too is that sometimes mentioned methods work just fine (without adding offset). I am using TestPlayer from vlcj test source.
Did I miss something obvious? Any idea? Any advice would help.
Thank you for your help.
I am having some problems with accuracy when setting current position to media player via setTime(long), setPosition(float) or any other method that changes position of media player. Every time when I want to change current position to desired value, media player sets itself to that position but resets itself to desired value + offset (in my case 190ms) right away. For example, when I call setTime(0), media player sets itself to 190 millisecond. The same happens if I use setPosition(), skip(), ... Thing that bothers me too is that sometimes mentioned methods work just fine (without adding offset). I am using TestPlayer from vlcj test source.
Did I miss something obvious? Any idea? Any advice would help.
Thank you for your help.