JVLC issue, playlist and mediainstance

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
viewport
Blank Cone
Blank Cone
Posts: 21
Joined: 23 Feb 2009 02:37

JVLC issue, playlist and mediainstance

Postby viewport » 25 Feb 2009 06:38

MediaPlayer mediaPlayer = playlist.getMediaInstance();
long oldTime = mediaPlayer.getTime(); // Assume it's 10 secs here.
System.out.println("oldTime: " + mediaPlayer.getTime());
mediaPlayer.setTime(oldTime - (5 * 1000)); // rewind by 5 secs.
// Let it run for a couple of seconds.
System.out.println("newTime: " + mediaPlayer.getTime());
// newTime is NOT 7 secs, but 10 secs instead.

newTime will be 10 secs until the media is played past the 10 secs point. Only then will getTime() return the correct time.

What's wrong? Can I help to debug this asap?

viewport
Blank Cone
Blank Cone
Posts: 21
Joined: 23 Feb 2009 02:37

Re: JVLC issue, playlist and mediainstance

Postby viewport » 25 Feb 2009 11:23

Is there no one from the developer side of things here? I tried the "Development around libVLC" forum, and there's no response there either.

I figured out part of the cause. This issue happens with .mpg, but not with .wmv. Oh... please don't tell me I have to give up VLC for Microsoft's DirectShow? The amount of time I'm spending trying to debug VLC blind could be better spent on DirectShow.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 39 guests