06-01-2009 10:52 PM
Hi All
I am implementing a visual music player and try to add an progress bar in it. I added the progress bar using GaugeField and it works fine.
What I want to make is that I can change the song's time by clicking somewhere on the progress bar, like all the player in PC(windows media player, itunes, real player).
I already made the seek() function in my backend player, so all I need is I click somewhere in the progress bar, the progress bar return me the VALUE I clicked on.
Can someone told me how can I get this value?
06-02-2009 01:25 AM
06-02-2009 02:22 AM
Something you need can be seen on Bold's (sorry, don't know on other devices) media player.
Just startup a song or a video and you will see how good and intuitive its behavior is.
Just put your focus on that progress bar and roll left/right.
Note: the player uses BBDeveloper's approach with 'jump = 2s'.
01-12-2010 01:53 PM - edited 01-12-2010 01:53 PM
Sorry to bump up an old thread. But is there any solution to this? I'm facing the same issue...
myraddin, could you show me what you've done? Any sample code, would be a huge help.
Thanks a million.
01-12-2010 04:06 PM
For the "style" argument in the constructor, try Field.FOCUSABLE and Field.EDITABLE. Those two should allow you to edit the GuageField.
01-13-2010 02:00 AM
I'll try, and let you know how it goes. Thanks for replying
01-13-2010 07:17 AM
Depending on the device you are developing for it might be odd. I know on the Storm the GuageField is pretty small so the solution for changing it is to click on the GuageField (this is default) and a popup comes up where you can slide your finger across to choose the preferred position. Don't know how it is on other BlackBerry's.