title: Android media player can't play ogg files
body: <p>I'm using <a href="https://developer.android.com/reference/android/media/MediaPlayer" rel="nofollow noreferrer">MediaPlayer</a> library to stream some audio files from my server. The problem is when I want to play <strong>ogg</strong> audio file with media player in android version <strong>4.2.2</strong> and it's ok when I play it in android <strong>nougat</strong>. It gives me this error while preparing <strong>ogg</strong> audio file: </p>
  
  <blockquote>
    <p>E/Tag: Prepare failed.: status=0x106</p>
    
    <p>E/MediaPlayer: error (1, -2147483648)</p>
    
    <p>E/MediaPlayer: Error (1,-2147483648)</p>
    
    <p>E/MediaPlayer: stop called in state 0</p>
  </blockquote>
  
  <p>Is there any alternative way to stream <strong>ogg</strong> format in all devices?
  by the way there is no problem with playing <strong>mp3</strong> files in all android versions I'v tested.</p>
  
  <p>Thank you ...</p>