title: Best way to play audio streaming in several format
body: <p>I'm currently working on a radio application and I'm having some difficulties to figure out the best way to use</p>
  
  <pre><code> - AAC 
   - MP3
   - ...etc
  </code></pre>
  
  <p>Should I create a class for each player and then a service with something like </p>
  
  <pre><code>//PRIVATE ATTRIBUTES
  private AACPlayer aac;
  private MediaPlayer mp;
  private AsyncPlayer ap;
  private LivePlayer lp;
  ...etc
  </code></pre>
  
  <p>and then implement every player in this service ?
  or maybe create one service per format. But if the application i must use AAC for radio and mp3 for Podcast it'll be troublesome to start two services at the same time...</p>
  
  <p>And note that the radio is playing live streaming (.AAC) so mediaplayer cant play it..</p>