title: Windows Phone 7: delay in mp3 streaming
body: <p>I have a problem with streaming of audio on windows phone 7 (nokia lumia 800):</p>
  
  <p>The app is windows phone 7.1, I have tried it on nokia lumia 800 (WP7.8) and lumia 820 (WP8.0)</p>
  
  <p>I put a URL ( <a href="http://abc.radiostreaming.dk/" rel="nofollow">http://abc.radiostreaming.dk/</a> )  into my playlist: </p>
  
  <pre><code>AudioTrack track = new AudioTrack(this.streamURI, "FOO", "BAR", "", null);
  BackgroundAudioPlayer.Instance.Track = track;
  </code></pre>
  
  <p>I subscribe to BackgroundAudioPlayer.Instance.PlayStateChanged with different eventhandlers to change the UI (change button back and forth between "play" and "stop", and update "now playing"-textfield)</p>
  
  <p>When I press play, the UI updates via the eventhandler to show a "buffering" icon, and then change that to "playing" again when BackgroundAudioPlayer.Instance.PlayerState changes to PlayState.Playing.</p>
  
  <p>On a nokia lumia 820 UI and sound works as expected, on lumia 800 BackgroundAudioPlayer.Instance.PlayStateChanged fires (changes to "Playing") and there is a faint tick in the headphones, but then there is a 5-6 second delay before the music starts playing.</p>
  
  <p>The delay is of course annoying (the sound plays almost instantly on the 820), but that is acceptable if I can detect it and update the UI accordingly, that is not working right now using only</p>
  
  <pre><code>BackgroundAudioPlayer.Instance.PlayStateChanged.
  </code></pre>
  
  <p>Any ideas on other event I can subscribe to, or ways to tweak how fast the sound starts playing (tweaking buffering perhaps? no luck with that so far....)</p>