title: Android - changing/replaying video in videoView
body: <p>App I'm developing contains many short (1-2 sec) videos. </p>
  
  <p>The videos are displayed in one activity. User can either replay video (possibly while video is beeing played) or change actual video.</p>
  
  <p>Part of code changing video:</p>
  
  <pre><code>String videoPath = getVideoPath();
  videoView.setVideoPath(videoPath);
  videoView.start();
  </code></pre>
  
  <p>Those 3 lines already causes app to load new video and play it.</p>
  
  <p>Problem starts after video is completed. From this point loading new video causes many problems (Like sometimes for half a movie only sound is played while screen is black blank). There are similar problems with replaying video (which I end up with calling 3 lanes from above).</p>
  
  <p>It seems like android after completing movie releases resources or something like this (and that's why I am settings same path, when I want to replay video).</p>
  
  <p>Ideally I would want video to simply pause and seekTo to beggining of movie after finished playing (but I cannot do this in OnCompletedListener, since it already changed state to stopped...).</p>
  
  <p>Can I somehow achieve this? (By this I mean -> after completed video pauses and seekTo to beginning)</p>
  
  <p>I already tried all combinations of pausing vidoes, suspending them, setting OnPreparedListener, setting OnCompletedListener.</p>
  
  <p>Thx!</p>