Merge branch 'seek' of github.com:knutz3n/mopidy into gstreamer

This commit is contained in:
Johannes Knutsen 2010-08-14 02:37:22 +02:00
commit c2f992d469
2 changed files with 4 additions and 1 deletions

View File

@ -370,6 +370,9 @@ class BasePlaybackController(object):
self.next()
return
self._play_time_started = self._current_wall_time
self._play_time_accumulated = time_position
self._seek(time_position)
def _seek(self, time_position):

View File

@ -293,7 +293,7 @@ def seek(frontend, songpos, seconds):
Seeks to the position ``TIME`` (in seconds) of entry ``SONGPOS`` in
the playlist.
"""
raise MpdNotImplemented # TODO
return frontend.backend.playback.seek(int(seconds) * 1000)
@handle_pattern(r'^seekid "(?P<cpid>\d+)" "(?P<seconds>\d+)"$')
def seekid(frontend, cpid, seconds):