title: How to use Shoutcast in iphone app?
body: <p>I am only aware of funcationality of ShoutCast that it streams radio list.</p>
  
  <p>But not knowing how to use that in iphone app.</p>
  
  <p>Right now I am just looking on its website <a href="http://www.shoutcast.com/" rel="nofollow">http://www.shoutcast.com/</a>
  becaues I didn't find much stuff of this by googling execpt for its website</p>
  
  <p>Any tutorials will be helpful.</p>
  
  <p>I am getting response as,</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;stationlist&gt;
  
  &lt;tunein base="/sbin/tunein-station.pls" /&gt;
  
  &lt;station name="PJ Nicky SuperRequest - a SHOUTcast.com member station" mt="audio/mpeg" id="172748" br="64" genre="Various" ct="(Ost. ) -" lc="9946" /&gt;
  
  &lt;station name="   TOP 100  ReaLCasT - a SHOUTcast.com member station" mt="audio/mpeg" id="242423" br="128" genre="" ct="- Be My Baby" lc="7485" /&gt;
  
  &lt;station name="Alex Jones - Infowars.com - a SHOUTcast.com member station" mt="audio/mpeg" id="1026951" br="32" genre="Talk News Political" ct="Sunday Show Replay - Hr 2 (PrisonPlanet.tv)" lc="4216" /&gt;
  
  &lt;station name="  .  - a SHOUTcast.com member station" mt="audio/mpeg" id="119368" br="128" genre="" ct="[db]" lc="3453" /&gt;
  
  &lt;station name="Auto PJ. RequestRadio - a SHOUTcast.com member station" mt="audio/mpeg" id="30375" br="128" genre="" ct="- The Star 7" lc="2453" /&gt;
  
  &lt;/stationlist&gt;
  </code></pre>
  
  <p>Successfully parse this and get <code>/sbin/tunein-station.pls</code></p>
  
  <p>Now how do I get </p>
  
  <pre><code>NSString *data = [[NSString alloc]initWithContentsOfURL:[NSURL URLWithString:"http://yp.shoutcast.com/sbin/tunein-station.pls?id=21585&amp;play_status=1"]];
  </code></pre>
  
  <p>as I am only getting <code>/sbin/tunein-station.pls</code></p>
  
  <pre><code>NSString *strEscapedValue = (__bridge_transfer NSString * )CFURLCreateStringByAddingPercentEscapes(nil, (__bridge CFStringRef)data, NULL, NULL, kCFStringEncodingUTF8);
  
      NSLog(@"escaped value : %@",strEscapedValue);
  </code></pre>
  
  <p><code>strEscapedValue</code> gives <code>(null)</code></p>
  
  <pre><code>NSURL *url = [NSURL URLWithString:strEscapedValue];
  
      streamer = [[AudioStreamer alloc] initWithURL:url];
  </code></pre>