enfix
enfix

Reputation: 7000

Stream audio BlackBerry app

i'm new in BB develop.
I need to stream audio in BB app.
It's a simple webradio (very simple).

I tried this code:

Player p = javax.microedition.media.Manager.createPlayer("rtsp://....");
p.realize();
VolumeControl volume = (VolumeControl)p.getControl("VolumeControl");
volume.setLevel(30);
p.prefetch();
p.start();

Don't work !!! (tried in simulator)
In this project I use BlackBerry JRE 7.0.0.

Upvotes: 1

Views: 245

Answers (1)

Strap
Strap

Reputation: 304

There are some issues I've found:

  • rstp link doesn't work on simulator
  • rstp probably works only appending ";interface=wifi" on connection string
  • rtsp is supported from BB JRE 4.3.0+
  • check related threads on stackoverflow, there are a lot of information on your issue

BTW, try your code in a physical device and let us know if it works! :)

HTH

Upvotes: 2

Related Questions