Merge branch 'seek' of github.com:knutz3n/mopidy into gstreamer
This commit is contained in:
commit
c2f992d469
@ -370,6 +370,9 @@ class BasePlaybackController(object):
|
|||||||
self.next()
|
self.next()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
self._play_time_started = self._current_wall_time
|
||||||
|
self._play_time_accumulated = time_position
|
||||||
|
|
||||||
self._seek(time_position)
|
self._seek(time_position)
|
||||||
|
|
||||||
def _seek(self, time_position):
|
def _seek(self, time_position):
|
||||||
|
|||||||
@ -293,7 +293,7 @@ def seek(frontend, songpos, seconds):
|
|||||||
Seeks to the position ``TIME`` (in seconds) of entry ``SONGPOS`` in
|
Seeks to the position ``TIME`` (in seconds) of entry ``SONGPOS`` in
|
||||||
the playlist.
|
the playlist.
|
||||||
"""
|
"""
|
||||||
raise MpdNotImplemented # TODO
|
return frontend.backend.playback.seek(int(seconds) * 1000)
|
||||||
|
|
||||||
@handle_pattern(r'^seekid "(?P<cpid>\d+)" "(?P<seconds>\d+)"$')
|
@handle_pattern(r'^seekid "(?P<cpid>\d+)" "(?P<seconds>\d+)"$')
|
||||||
def seekid(frontend, cpid, seconds):
|
def seekid(frontend, cpid, seconds):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user