platypush/plugins/media/mpv/__init__.py
def seek(self, position):
        """
        Seek backward/forward by the specified number of seconds

        :param position: Number of seconds relative to the current cursor
        :type position: int
        """
        if not self._player:
            return None, 'No mpv instance is running'
        if not self._player.seekable:
            return None, 'The resource is not seekable'
        pos = min(self._player.time_pos + self._player.time_remaining,
                  max(0, position))
        self._player.time_pos = pos
        return self.status()

        Seek backward/forward by the specified number of seconds

        :param position: Number of seconds relative to the current cursor
        :type position: int
        
Seek backward/forward by the specified number of seconds
Seek backward / forward by the specified number of seconds
def seek(self, position):
        if not self._player:
            return None, 'No mpv instance is running'
        if not self._player.seekable:
            return None, 'The resource is not seekable'
        pos = min(self._player.time_pos + self._player.time_remaining,
                  max(0, position))
        self._player.time_pos = pos
        return self.status()
def seek ( self , position ) : if not self . _player : return None , 'No mpv instance is running' if not self . _player . seekable : return None , 'The resource is not seekable' pos = min ( self . _player . time_pos + self . _player . time_remaining , max ( 0 , position ) ) self . _player . time_pos = pos return self . status ( )
Seek backward/forward by the specified number of seconds
Seek backward / forward by the specified number of seconds
"""
        Seek backward/forward by the specified number of seconds

        :param position: Number of seconds relative to the current cursor
        :type position: int
        """
self
position
Number of seconds relative to the current cursor
Number of seconds relative to the current cursor