I'm writing a java program dealing with parsing text from a subtitle file.
The idea is, whenever I come across a word in the subtitles that I dont know while playing a movie, I pause the video and open my client, then the client accesses the elapsed time, gets the sentence and displays the meanings of all the words in that sentence using some offline dictionary.
I just want to "get the elaspsed time at that instant" - which I think is really basic thing, so I dont want to go through all the documentations of VLC (I tried but I felt like they were too complex and I have no interest in further contributing to VLC open source)
What OS are you using? As far as I can remember on linux VLC (like mplayer) outputs all the time to the console how far the movie is played and also i it is paused.
In this case you could simply redirect this output to the input of your java program which reads it and waits for the "pause" marker. than reads back the last time-stamp.
There might be a better way, but this seams to be the easiest way, without any further research, to me.