mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-28 17:52:29 +01:00
Fixed problem with seeking before starting playback.
This commit is contained in:
parent
df17d47128
commit
99ab34b26f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user