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
New Developer
tan_addictive
Posts: 11
Registered: ‎10-24-2008
My Device: Not Specified

audio rtsp streaming problem

Hi,

 

We are having some trouble streaming audio files. Our code is working perfectly for streaming video 3gp files but we are using the same code for audio file, mp3s. 

 

url = "rtsp://stream.almipa.com/addictivetech.ca/amo/OasisUntitled.mp3";

player = javax.microedition.media.Manager.createPlayer(url);

  

When we do player.start();

 

We can see the data exchange icon on the simulator, but the media doesnt play.

 

We can see this output on the JDE 4.6  console, when we do player.start()  (not sure if this is useful):

AUDIOMANAGER: Stream 1799 callback==null and state==2
SMP:smileyfrustrated:treaming session aquired id=1799
MN: initURL0(3010200)=0
MN: load 3
MN: unload0(3010200)=2 pauseHandle=7fffffff

 

We are using Blackberry Bold 9000 simulator.

 

We would greatly appreciate any help in this matter.

Please use plain text.
New Developer
pcosway
Posts: 14
Registered: ‎01-15-2009
My Device: Not Specified

Re: audio rtsp streaming problem

I don't believe that mp3 stream servers support rtsp.  At least I've never seen that in non-phone environments.  I think there are other posts and/or documentation that describe how to "stream" mp3 audio.  If I recall, your application has to read in chunks of the audio, then pass it along to an mp3 decoder for output.

 

When you develop a solution, let me know.  What I really want to figure out is how to stream windows media audio.

 

 

Please use plain text.
New Developer
tan_addictive
Posts: 11
Registered: ‎10-24-2008
My Device: Not Specified

Re: audio rtsp streaming problem

I have given the url above in my post:

 

rtsp://stream.almipa.com/addictivetech.ca/amo/OasisUntitled.mp3

 

Try this out in your browser, if you have the real player install you should be able to hear the song.

 

Please use plain text.
New Developer
pcosway
Posts: 14
Registered: ‎01-15-2009
My Device: Not Specified

Re: audio rtsp streaming problem

You are correct that the RealPlayer will play the stream, but it is actually using http, not rtsp. 

 

Here's what happens:

1.  Browser sees that the protocol is rtsp and passes the address to the relevant application (RealPlayer) rather than trying to open the address itself.

2.  RealPlayer tries to start streaming using the address but fails -- RTSP 404 error 

3.  RealPlayer replaces rtsp with http and tries again -- Success!

 

 

Please use plain text.
New Developer
tan_addictive
Posts: 11
Registered: ‎10-24-2008
My Device: Not Specified

Re: audio rtsp streaming problem

We are still not able to solve this problem,

can anyone take a look at our posts and see what might be wrong?

 

 

Please use plain text.
Developer
marchywka
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: audio rtsp streaming problem

There are a bunch of open source utilities for debugging or even streaming and conversion.

I've got some on my non-functional linux partition as I recall some of the best only ran there.

In any case, all of these things come down to TCP or UDP packets and it shouldn't be

hard to reflect or intercept working and non-working exchanges for comparison. It may be easiest

to run a packet capture or even netstat while streaming to your desktop and see what

it is really talking to. And, again there are transcoders available IIRC but there were some

patent or other issues getting codecs for some formats.

 

Please use plain text.
New Developer
pcosway
Posts: 14
Registered: ‎01-15-2009
My Device: Not Specified

Re: audio rtsp streaming problem

Take a look at http://na.blackberry.com/eng/deliverables/5815/Multimedia_guide.pdf

 

I think you'll have more luck studying the section "Streaming data from a remote source to the media application"

 

I'm pretty certain that you cannot use rtsp for mp3 streaming.  Neither the Blackberry or the content servers support that.

Please use plain text.
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: audio rtsp streaming problem

Hi,

I tried settingup a RTSP server and placed a sample mp3 file on it and i can play that mp3 using the default Media plaer on BB.


Use Search. "Accept Solution" If the problem is resolved.
Please use plain text.
New Developer
pcosway
Posts: 14
Registered: ‎01-15-2009
My Device: Not Specified

Re: audio rtsp streaming problem

Are you able to stream this:  rtsp://stream2.orf.at/radio_stmk

 

It is WMA, delivered via rtsp.

 

 

Please use plain text.
New Developer
sougatasen
Posts: 18
Registered: ‎04-29-2009
My Device: Not Specified

Re: audio rtsp streaming problem

Hi,

      We are trying to play mp3 file using rtsp streaming on blackberry curve. The Player shows as started but no sound comes across.

Any idea why???

 

Below is the code we used to play the sound. The file plays fine from real player on the PC.

 

                         String url = "rtsp://122.166.13.201:554/xyz.mp3";
                                    player = Manager.createPlayer(url);
                                    System.out.println("Player Created.");
                                    player.realize();
                                    player.start();

 

PLEASE HELP!

 

Thanks,

Sougata

Please use plain text.