Fixed problem with seeking before starting playback.

This commit is contained in:
Maurice Gilden 2016-10-16 12:15:36 +02:00
parent df17d47128
commit 99ab34b26f

View File

@ -383,6 +383,9 @@ public class LocalPSMP extends PlaybackServiceMediaPlayer {
statusBeforeSeeking = playerStatus;
setPlayerStatus(PlayerStatus.SEEKING, media, getPosition());
mediaPlayer.seekTo(t);
if (statusBeforeSeeking == PlayerStatus.PREPARED) {
media.setPosition(t);
}
try {
seekLatch.await(3, TimeUnit.SECONDS);
} catch (InterruptedException e) {