platypush/plugins/media/vlc/__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 vlc instance is running'
        if not self._player.is_seekable():
            return None, 'The resource is not seekable'

        media = self._player.get_media()
        if not media:
            return None, 'No media loaded'

        pos = min(media.get_duration()/1000, max(0, position))
        self._player.set_time(int(pos*1000))
        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 vlc instance is running'
        if not self._player.is_seekable():
            return None, 'The resource is not seekable'
        media = self._player.get_media()
        if not media:
            return None, 'No media loaded'
        pos = min(media.get_duration()/1000, max(0, position))
        self._player.set_time(int(pos*1000))
        return self.status()
def seek ( self , position ) : if not self . _player : return None , 'No vlc instance is running' if not self . _player . is_seekable ( ) : return None , 'The resource is not seekable' media = self . _player . get_media ( ) if not media : return None , 'No media loaded' pos = min ( media . get_duration ( ) / 1000 , max ( 0 , position ) ) self . _player . set_time ( int ( pos * 1000 ) ) 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