Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 261
Registered: ‎08-11-2009
My Device: Not Specified

How to create a seekbar for mutimedia in blackberry

Hi ,

 

 

Can any one point out how can a seek  bar be created in blackberry , is there any listener available for it and so ,,

 

 

Thanks

SujithRavindran

Developer
Posts: 220
Registered: ‎09-09-2008
My Device: Bold 9780

Re: How to create a seekbar for mutimedia in blackberry

hey,

 

please have a look at the following KB articel

 

http://supportforums.blackberry.com/t5/Java-Development/Streaming-media-Start-to-finish/ta-p/488255

 

It also has the source code attached to it.

-----------

Follow me on twitter: twitter.com/paul.haenel

If your issue is resolved, please mark this thread as solved.

Set the "Solution" mark on the post which contains the answer to your question.
Developer
Posts: 261
Registered: ‎08-11-2009
My Device: Not Specified

Re: How to create a seekbar for mutimedia in blackberry

Hi paulhaenel,

 

Have checked out ur link but the code is not working bcz there one class called circular buffer whci is missing ,

                   I just need to know how seek bar can be implemented in blackberry , i have made all other component for my custom media  player. is there any listener or such stuffs available . or some sample code snippet can be of great help.

 

 

 

Thanks a lot for u help

 

SujithRavindran

Developer
Posts: 220
Registered: ‎09-09-2008
My Device: Bold 9780

Re: How to create a seekbar for mutimedia in blackberry

Hi,

 

I have attached the full project to this post.

 

look at the method of contentLengthUpdated and nowPlaying in the PlayerScreen class.

 

You also need to build the graphical interface for a seekbar but again you can use the one provided in the sample and just modify it.

 

Once you got the sample working you should easily understand how you can built a seek bar.

-----------

Follow me on twitter: twitter.com/paul.haenel

If your issue is resolved, please mark this thread as solved.

Set the "Solution" mark on the post which contains the answer to your question.
Developer
Posts: 261
Registered: ‎08-11-2009
My Device: Not Specified

Re: How to create a seekbar for mutimedia in blackberry

Hi Paulhaenel,

 

 

I tested this it is working ,

 

but i have problem while implementing this in my project

 

im able to  create the seek bar inside the paint ,

 

1) TimelineField

2)TimeLineFieldListener

 

 

im adding the TimeLineFieldListener  to my custom seekbarfield

in the TimeLineFieldListener there is a methord callled seek (int long )

 

but the problem is the the seekbar cannot be moved and the listener does not respond to it .

 

imnot sure how this can be implemented .  can u please guide me to implement this .

 

 

 

Thanks

SujithRavindran

 

 

Developer
Posts: 261
Registered: ‎08-11-2009
My Device: Not Specified

Re: How to create a seekbar for mutimedia in blackberry

Hi Paulhaenel,

 

 

I tested this it is working ,

 

but i have problem while implementing this in my project

 

im able to  create the seek bar inside the paint ,

 

1) TimelineField

2)TimeLineFieldListener

 

 

im adding the TimeLineFieldListener  to my custom seekbarfield

in the TimeLineFieldListener there is a methord callled seek (int long )

 

but the problem is the the seekbar cannot be moved and the listener does not respond to it .

 

imnot sure how this can be implemented .  can u please guide me to implement this .

 

 

 

Thanks

SujithRavindran

 

 

Developer
Posts: 220
Registered: ‎09-09-2008
My Device: Bold 9780

Re: How to create a seekbar for mutimedia in blackberry

hi,

 

Can you provide the code to us ? If you dont want to post it on the forum sent it to me via email and i can debug it for you then.

-----------

Follow me on twitter: twitter.com/paul.haenel

If your issue is resolved, please mark this thread as solved.

Set the "Solution" mark on the post which contains the answer to your question.
Developer
Posts: 261
Registered: ‎08-11-2009
My Device: Not Specified

Re: How to create a seekbar for mutimedia in blackberry

Hi paulhaenel,

 

Thanks for ur help

 

can u plz send me ur personal email

 

 

 

Thanks

SujithRavindran

Developer
Posts: 261
Registered: ‎08-11-2009
My Device: Not Specified

Re: How to create a seekbar for mutimedia in blackberry

ok i have send it

Contributor
Posts: 11
Registered: ‎04-29-2011
My Device: 8520

Re: How to create a seekbar for mutimedia in blackberry

Hi

 

I have  a mp3 file in my sd card and im playing the file using custom player .i need to just show the progress that the song is playing .No need of seeking.How to link the Timelinefield to this.Any idea?