How to track the current duration of media (audio only)

27 views
Skip to first unread message

CODENAME1

unread,
Nov 9, 2016, 5:33:07 AM11/9/16
to CodenameOne Discussions
how to bind the current media (audio) position to slider.

Shai Almog

unread,
Nov 9, 2016, 11:45:24 PM11/9/16
to CodenameOne Discussions
Media.getTime().

CODENAME1

unread,
Nov 10, 2016, 7:25:27 AM11/10/16
to CodenameOne Discussions
 HOw to update this value continously as the media is playing. I am able to update once, when play button is clicked.
findMediaSlider(c.getComponentForm()).setProgress(mp.getTime());

On Thursday, November 10, 2016 at 5:45:24 AM UTC+1, Shai Almog wrote:
Media.getTime().

Shai Almog

unread,
Nov 11, 2016, 12:32:09 AM11/11/16
to CodenameOne Discussions
Use a UITimer.
Reply all
Reply to author
Forward
0 new messages