Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Help In Playing .pls In Flash.


3 replies to this topic

#1 pasten

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 119 posts
  • Gender:Male
  • Location:In front of my monitor.
  • myCENT:34.77

Posted 03 March 2009 - 06:56 PM

Hi there, anybody with flash, flex, actionscript skills? Is there any way we can embed online radio stations into a flash file (.swf)? The radio streams are generally playlist files of .pls extension. Basically I want people to be able to listen music directly from website without downloading any kind of files and using standalone players for listening. I just cant figure a way to achieve this. Google search results in links to freeleancer websites who have posted projects to have this done for a price. Is this so difficult? No free resources on net.

Currently the closest alternative I could find out was by using XSPF (pronounced "spiff") (XML Shareable Playlist Format). There's a flash player for it which does the job. But the problem is there aren't any radio stations which have there playlists in this format and none for which I wanted. So is there anyway to add .pls into flash or atleast any other alternative which lets .pls play on browser?

Edited by pasten, 03 March 2009 - 07:00 PM.


#2 andreip

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 148 posts
  • Gender:Male
  • Location:Romania, Bistrita
  • Interests:Soccer, Basketball, Web Design, Photoshop, Flash, Music, Movies, Friends.
  • myCENT:65.83

Posted 03 March 2009 - 07:15 PM

Well as far as know It isn't possible for any coder. As you stated above there are some developers who did this but they must be highly skilled. Unfortunetly I'm not that skilled so I can't help you. I haven't heared yet about the XSPFs but usually music is played in flash direct linked from flash itself or using XML which is much more dynamic. I know how to make and AS3 dynamic MP3 player that parses songs via XML in flash. But that way you'll have to store the songs on the server or somewhere online and link them to the XML which will parse them in flash. If you want I can help you in this matter. I've posted a tutorial in the tutorial forum, on how to make an mp3 player in flash AS3&XML. It should be accepted soon... I think. If you have anymore questions?

#3 pasten

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 119 posts
  • Gender:Male
  • Location:In front of my monitor.
  • myCENT:34.77

Posted 03 March 2009 - 08:37 PM

View Postandreip, on Mar 4 2009, 12:45 AM, said:

But that way you'll have to store the songs on the server or somewhere online and link them to the XML which will parse them in flash.
Yes, that's the same thing happening in XSPF's too, but the same problem, we have to manually add songs to the list. I was just thinking, if I would make a script to fetch the links from pls and update it on to xml. It may be a bit confusing to code it, but once done it should work perfectly. Isn't it? There are very nice and cute flash players playing XSPF. If this doesn't work out I would even try my hand at php, but the ultimate goal is to handle pls on browser. Anyway let's see how it turns out. And would have a look at your tutorial.

#4 willjuk

    Newbie

  • Kontributors
  • Pip
  • 2 posts

Posted 21 December 2009 - 05:33 PM

Hi,

It is possible to play .pls in Flash but not to embed them in a .swf as far as I know. I know the guys that made RadioTuna (http://radiotuna.com) and they use Flash to play shoutcast streams in a browser.

If you have a shoutcast server, it's relatively easy to set up... I can pass on any questions if you like.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users