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

Trusted Contributor
Posts: 115
Registered: ‎03-24-2011
My Device: 8310 curve
My Carrier: PLAY

Stream wma (asx) file.

Hi, Can someone explain how to play the radio in WMA (. asx)


I tried various methods but do not work.


My sample:


 InputStream stream = Connector.openInputStream("hxxp://stream.polskieradio.pl/program1");
          SharedInputStream readAhead = SharedInputStream.getSharedInputStream(stream);
          _player = javax.microedition.media.Manager.createPlayer(readAhead, "audio/x-ms-wma");


Contents of the file looks like this: (Program1M.asx)


<asx version = "3.0">
    <ref href = "mms://stream.polskieradio.pl/program1">
    <ref href = "rtsp://stream.polskieradio.pl/program1">
    <ref href = "hxxp://stream.polskieradio.pl/program1">
  <Title>Program Pierwszy Polskiego Radia</Title>
  <Author>Polskie Radio SA</Author>
  <Copyright>Polskie Radio SA</Copyright>
  <Title>Program Pierwszy Polskiego Radia</Title>
  <Author>Polskie Radio SA</Author>
  <Copyright>Polskie Radio SA</Copyright>
  <LogURL href = ""/>

 Someone can help?


BlackBerry Development Advisor
Posts: 15,766
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Stream wma (asx) file.

What exception are you receiving?  Which BlackBerry Smartphone model and BlackBerry handheld software version are you testing on?  You can find this under Options, About on the BlackBerry Smartphone.



For reference, here is a listing of all multimedia formats supported:  http://docs.blackberry.com/en/smartphone_users/deliverables/18349/711-01774-123_Supported_Media_Type...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker