title: Stop MediaPlayer at certain point
body: <p>Hi guys Im trying to stop mediaplayer in certain point but it doesnt work for me below is my code let me know what is wrong in this code.</p>
  
  <pre><code>int Str = 36000;
                  int Stop = 51000;
                  mediaPlayer.seekTo(Str);
                  mediaPlayer.start();
                  if(mediaPlayer.getCurrentPosition() == Stop)
                  {
                      mediaPlayer.stop();
                  }
  </code></pre>
  
  <p>Media player starts at the specified point and it continues to play, when I debug it, it comes to the if condition and it still continues to play no error(as far I know) is displayed, I played with while, if condition and debug line by line but cant figure out,Please help me Thanks for your time </p>