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
Contributor
Posts: 16
Registered: ‎02-02-2011
My Device: Not Specified

Streaming Media - Start to Finish

Hi,

 

Has anyone been able to get the streaming media - Start to Finish working with OS v5 and higher?

 

 

The article can be found at:

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

 

I have it running in a simulator.  However, I can't get video to start playing.  I tried deploying it to a device and I have the same problem.

 

When I stepped through the code I noticed that the player enters the prefetch call in StreamingPlayer class and times out after 10 minutes. With the following message:

javax.microedition.media.MediaException: Timed out waiting for UD|LD

 

I have been spending days on trying to figure out how to stream video on the blackberry with no luck.  I would really appreaciate it if you guys can help.

 

Thanks!

Developer
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

Re: Streaming Media - Start to Finish

I was able to run the code from the article successfully BUT on a real device. I haven't tried on a simulator and I don't know if it could be done.

 

Are you trying to stream through http?

----------------------------------------------------------------------
Press the button to give kudos if I helped you :smileyhappy:
Contributor
Posts: 16
Registered: ‎02-02-2011
My Device: Not Specified

Re: Streaming Media - Start to Finish

Yes, I was trying it over http.  I didn't have much luck using the device either.

 

If it's working for you I am starting to wonder if it's my media or server. 

 

Can you give it from my source (this video is about 2mb):

http://www.mahendan.com/video/musicVideo.3gp

Here is another video which about (4mb)
http://www.mahendan.com/video/musicVideoFull.3gp

 

I am trying to run this with OS 5 using simulator 9700 and 9550.

 

Thanks

 

 

 

 

 

 

 

Developer
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

Re: Streaming Media - Start to Finish

I have streamed audio only and I modified the code to work with UDP.

 

If you want to make sure that it isn't your media server try to access the URL in you blackberry device browser and if it plays the media from there then your server is OK.

----------------------------------------------------------------------
Press the button to give kudos if I helped you :smileyhappy:
Developer
Posts: 541
Registered: ‎05-17-2009
My Device: Not Specified

Re: Streaming Media - Start to Finish

I solved this issue for my application. Check it out at:

 

http://supportforums.blackberry.com/t5/Java-Development/How-I-fixed-quot-Timed-out-waiting-for-UD-LD...

 

Hope it helps.

 

Scott