getTime return 0 immediately after set

VLC for Android and Chrome OS specific usage questions
vsee
Blank Cone
Blank Cone
Posts: 39
Joined: 02 Aug 2012 07:14

getTime return 0 immediately after set

Postby vsee » 21 Aug 2012 09:02

If I get the time immediately after set,but most of time the result is 0,how can I work around this?

lastTime = preferences.getLong(PreferencesActivity.LAST_TIME, 0);
mLibVLC.setTime(lastTime);
long newtime=mLibVLC.getTime();

Here,I need to get the new time for future using,lastTime is not suitable.
Unresolved questions/problem:
VLC can not even startup on some phones/ROMs: http://forum.videolan.org/viewtopic.php?f=35&t=103416
Some foreign language subtitles show as unreadable codes
Not support seeking for network sharing media files: http://forum.videolan.org/viewtopic.php?f=32&t=103121

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: getTime return 0 immediately after set

Postby edwardw » 21 Aug 2012 14:32

Probably the demux hasn't seeked yet, seeking is not instant you know.

vsee
Blank Cone
Blank Cone
Posts: 39
Joined: 02 Aug 2012 07:14

Re: getTime return 0 immediately after set

Postby vsee » 21 Aug 2012 15:21

Understand. Thank you Sir,you are always so kind.
Unresolved questions/problem:
VLC can not even startup on some phones/ROMs: http://forum.videolan.org/viewtopic.php?f=35&t=103416
Some foreign language subtitles show as unreadable codes
Not support seeking for network sharing media files: http://forum.videolan.org/viewtopic.php?f=32&t=103121


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 17 guests