If necessary, I made my decision.
I developed a subtitle module. To get the exact milliseconds, I made a synchronizer for the system timers and players.
Every 20 seconds of video playback, I perform this procedure:
- Request media player for current seconds (seconds received)
- Request a media player for the current seconds until the result is s + 1 (s0)
- Get system time (milliseconds) in that time (m0)
Now, if I want the current millisecond of the movie:
- Get current system time (milliseconds) (m1)
- Current video: s0 + (m1-m0)
Easy and led to synchronized subtitles;)
source
share