title: Extractor not able to maintain mediaplayer states of android
body: <p>I am developing my own extractor like aviextractor for my understanding.</p>
  
  <p>I know the the MediaPlayer calls should be in following order from Application.</p>
  
  <pre><code>mMediaPlayer.setDataSource()
  mMediaPlayer.prepare()
  mMediaPlayer.start()
  mMediaPlayer.stop()
  </code></pre>
  
  <p>with my extractor video is playing well( i just want to play video file alone) with above all calls from application.</p>
  
  <p>But when i analysed the logs, my extractor->read()(source->read()) is getting called in the extractor during mMediaPlayer.setDataSource() </p>
  
  <p>Even if i comment mMediaPlayer.prepare() and mMediaPlayer.start() and calling only mMediaPlayer.setDataSource() from Application ,my extractor->read()(source->read()) is getting called in extractor.so i feel my extractor is not mapped properly to the media player states.</p>
  
  <p>can somebody help me to overcome this issue.</p>