# Delay before seeking in stream is possible

**URL:** <https://discourse.mopidy.com/t/delay-before-seeking-in-stream-is-possible/1249>\
**Category:** Pi MusicBox (archive)\
**Created:** [June 10, 2016, 7:35am UTC](https://discourse.mopidy.com/t/delay-before-seeking-in-stream-is-possible/1249 "2016-06-10T07:35:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ac34](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@ac34](https://discourse.mopidy.com/u/ac34)\
**Post date:** [June 10, 2016, 7:35am UTC](https://discourse.mopidy.com/t/delay-before-seeking-in-stream-is-possible/1249/1 "2016-06-10T07:35:57Z")

</div>

I’m using the musicbox 0.6 “dist” and have written a python script with various functionality, intended to map some physical buttons on a raspberry pi. One thing I’m working on is pod playback. I have managed to save position for the pods when switching source but when I’m trying to play them again, now from the last position, I have a small problem:

if i do this:

stop  
clear playlist  
add pod url  
seek to position

the pod starts playing at pos 0:00. Supposedly because length of the pod mp3 isn’t fetched when added to playlist, or am I wrong?

if i do this, it works most of the time:

stop  
clear playlist  
add pod url  
play  
pause  
sleep(5 seconds)  
seek to position

The above doesn’t feel very right. I have tried both the jsonrpc way (server.core.playback.seek()) and os.system('mpc seek ') without success. Might there be better ways to do this?

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2651_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [February 19, 2026, 11:47am UTC](https://discourse.mopidy.com/t/delay-before-seeking-in-stream-is-possible/1249/2 "2026-02-19T11:47:28Z")

</div>

Closed on February 19, 2026, 11:47am UTC


