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

Native Development

Reply
Developer
stardomains
Posts: 168
Registered: ‎12-14-2009
Accepted Solution

MediaPlayer or Media Player-invoke to play http internet radio url?

When I try either MediaPlayer ( http://developer.blackberry.com/native/reference/cascades/bb__multimedia__mediaplayer.html ) or to invoke the Media Player on a http url of an internet radio station they either don't play or I get an error.  I'm not using a m3u or pls file. I'm using a working url of an active internet radio station as the source url. I imported "bb.multimedia 1.0" in QML and have "LIBS += -lbbmultimedia" in my pro file and ask permission to internet for the app. Does MediaPlayer or the native Media Player handle these urls? Does anyone have a working example. Try the SOMAFM radio urls and nothing happens.

Please use plain text.
Developer
stardomains
Posts: 168
Registered: ‎12-14-2009

Re: MediaPlayer or Media Player-invoke to play http internet radio url?

Am I missing a permission possibly?

Please use plain text.
BlackBerry Development Advisor
Kareem_ELSayed
Posts: 81
Registered: ‎09-09-2013
My Carrier: Etisalat UAE

Re: MediaPlayer or Media Player-invoke to play http internet radio url?

Hello,

Please check the posts on this thread
http://supportforums.blackberry.com/t5/Native-Development/Open-video-url-in-default-media-player/td-...

and it would help if you post details about the issue!! like the URL and the error returned etc.

Thanks
Kareem.
Kareem ELSayed | Application Development Consultant | Developer Relations | BlackBerry | Twitter:@kemobyte
Please use plain text.
Developer
stardomains
Posts: 168
Registered: ‎12-14-2009

Re: MediaPlayer or Media Player-invoke to play http internet radio url?

I saw that post previously but it doesn't help.

 

I'm talking streaming internet radio stations. 

 

Here's an example url:  http://sfstream1.somafm.com:7000

 

I get unsupported format whenever I attempt to play it or any other internet radio stream through MediaPlayer.

Please use plain text.
Developer
stardomains
Posts: 168
Registered: ‎12-14-2009

Re: MediaPlayer or Media Player-invoke to play http internet radio url?

[ Edited ]

Found it: For shoutcast streams you need to put a "/;" after the url.

Please use plain text.
New Developer
jlsuarezcabrera
Posts: 11
Registered: ‎02-16-2014
My Carrier: Claro

Re: MediaPlayer or Media Player-invoke to play http internet radio url?

I love you!

Please use plain text.