| Reply | « Previous Thread | Next Thread » |
|
Hi im trying to stream this following link: http://shoutcast.com/sbin/shoutcast-...e=filename.pls
and/or http://mediaweb.musicradio.com/Playlist.asx?StreamID=8 but it fails on realizing the player with an exception indicating realize failed. my code is this Code:
debug.append("creating the player using url of " + url + "\n");
player = Manager.createPlayer(url);
debug.append("Player has been created and now realizing the player \n");
player.realize();
debug.append("realize state and now setting it up for prefetch \n");
player.prefetch();
debug.append("prefetch state and going to start the playback\n");
//debug is a Form displaying what is happening in the background
|
| jonneymendoza |
| View Public Profile |
| Find all posts by jonneymendoza |
|
That file is a playlist, not a stream. You need to download that pls-file, parse the contents and open a correct stream URL.
ALso make sure that the device in question suppoorts http-streaming as the URLs in the playlist are all http based. Which device are you using? Hartti |
|
im using a motorola v9 device. how would i parse info from the pls file? i have downloaded the file on a desktop pc and opened it in notepad and the content of the file is somthing like this:
[playlist] numberofentries=21 File1=http://scfire-nyk-aa05.stream.aol.com:80/stream/1071 Title1=(#1 - 66/500) -=[:: HOT 108 JAMZ ::]=- #1 FOR HIP HOP - 128K HD) * CONNECT FROM OUR WEBSITE ...... do i use this link "http://scfire-nyk-aa05.stream.aol.com:80/stream/1071" and make a normal http connection? how would i specify and know the stream time when using Player.CreatePlaye("http://scfire-nyk-aa05.stream.aol.com:80/stream/1071", "audio/mp3")
Last edited by jonneymendoza : 2008-04-01 at 11:56.
|
| jonneymendoza |
| View Public Profile |
| Find all posts by jonneymendoza |
|
The playlist contents really looks that way. If those URLs are mp3 files then you are on the right track!
Hartti |
|
Quote:
|
|
I am facing the same problem. seems I am not able to stream by using the link from pls-file.
for instance: http://213.251.141.62:8006 and such an error thrown out: javax.microedition.media.MediaException: Cannot create a Player for: Unsupported content type |
|
Hi popeztl,
error message is self-explaining: you're trying to stream a file whose format is not supported on the device itself. You can refer to this document to check supported media types on Nokia devices: http://www.forum.nokia.com/info/sw.n..._0_en.xls.html Pit |
|
hey jappit,
thanks for ur reply. I was trying to do it on Nokia N95. and the stream content type is aacp. which should be support by N95. I am guessing if it is because the handset can not recognize the content type of the source.
Last edited by popeztl : 2008-10-02 at 12:08.
|
|
aacp... do not think so.
aac instead, yes http://www.forum.nokia.com/info/sw.n..._0_en.xls.html Hartti |
|
hey hartti,
I am quite sure that N95 do support AAC+. check this link http://www.forum.nokia.com/devices/N95 |
|
Ok, so my answer was too cryptic one.
According to the document I referred to Java ME on N95 supports AAC+, yes. But. File extension is aac and MIME type is audio/aac Do you use these? Hartti |
|
Hey Hartti,
thanks for ur helping. I guess I didn't discribe the problem clearly. Actually the problem is I was trying to stream a radio from a pls-file's link. The content type and format are not declared at all. url = "http://www.***.com:8032/"; player = Manager.createPlayer(url); and such an error thrown out: javax.microedition.media.MediaException: Cannot create a Player for: Unsupported content type. I have no idea how to achieve my idea. Could you give me any advisory? |
|
Quote:
Unsupported content type means that the media format not supported by the device/emulator. have u check what supported content type of ur device/emulator ? and dont forget about the codec too. u must read the device spesification about audio/video codec. i mention this in this thread too if u want to read that : http://discussion.forum.nokia.com/fo...d.php?p=489688 may it helps -regards- adek aidi |
| laili_aidi |
| View Public Profile |
| Find all posts by laili_aidi |
|
Hi ,
I am also presently working on the same the theme is i achieved the first step of retrieving the player and playing the song in the mobile here i used the PHP interaction to buffer the data so it is taking more than 15 min to play the song and i observed that it is supporting progressive download. that means it storing the data in to the memory then after it is playing here i set time limit as 24 mins i am sending my code of mine will any one help please.......... This is the PHP server side coding Quote:
This one is the server side xml file Quote:
|
| maheshkanda |
| View Public Profile |
| Find all posts by maheshkanda |
|
This is the RMS in j2me
Quote:
|
| maheshkanda |
| View Public Profile |
| Find all posts by maheshkanda |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Download java based streaming radio | srinivasvurrinkala | Mobile Java Media (Graphics & Sounds) | 3 | 2009-03-26 17:45 |
| Can I streaming Video from internet on S60 3rd edition? | jianyu_21 | Mobile Java Media (Graphics & Sounds) | 8 | 2008-04-25 06:15 |
| 3gp streaming to Nokia 6680/6630 | wasbo | Streaming and Video | 23 | 2007-04-24 12:23 |
| Streaming EDGE clip in GPRS coverage | zivs | Streaming and Video | 0 | 2006-08-22 18:22 |
| Audio Streaming in J2ME.... | senthilkumar05 | Mobile Java Media (Graphics & Sounds) | 1 | 2006-02-22 15:05 |