title: Media Player called in state 0, error (-38,0)
body: <p>I am currently trying to design a simple app that streams an internet radio station. I have the URL for the station and am setting up the Media Player like</p>
  
  <pre><code>    MediaPlayer mediaPlayer = new MediaPlayer();
      try {
          mediaPlayer.setDataSource(URL);
      } catch (IllegalArgumentException e) {
          e.printStackTrace();
      } catch (SecurityException e) {
          e.printStackTrace();
      } catch (IllegalStateException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
      try {
          mediaPlayer.prepare();
      } catch (IllegalStateException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
      mediaPlayer.start();
  </code></pre>
  
  <p>The program isn't crashing when emulated, but nothing is playing and I am get the following error:</p>
  
  <pre><code>start called in state 0
  </code></pre>
  
  <p>and right below it is</p>
  
  <pre><code>Error (-38,0)
  </code></pre>
  
  <p>Does anyone know what this means? </p>
  
  <p>I've read a little about these state errors, but couldn't find anything that applies to my project.</p>