Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

streaming a .pls file

i'm writing an app for an internet radio station.
i can't figure out a way to stream the .pls file they have provided. It plays in the media player if open it in mobilesafari but i want to be able to stream it while looking at a blog window etc.

it took me a while to find the audioplayer (i don't think its in the docs yet) but it wouldn't stream it either…
any ideas?

— asked March 20th 2010 by Steve Burtenshaw
  • audio
  • iphone
  • pls
  • stream
0 Comments

1 Answer

  • Accepted Answer

    .pls is a plain text file of a simple format. You need to parse it (e.g. using regexps), extract real URLs to mp3 or other media stream from there and pass it to sound object.

    — answered March 20th 2010 by Igor Afanasyev
    permalink
    1 Comment
    • +1 helped me too

      — commented February 19th 2013 by Muhammad Wahhab Mirza
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.