(self)
return None, None
Get the current videoplayer positon.
        @returns int current position, int total length
Get the current videoplayer positon.
Get the current videoplayer positon .
def get_player_position(self):
        """
        Get the current videoplayer positon.
        @returns int current position, int total length
        """
        response = self.get_player_state()
        
        if not response['error'] and 'Duration' in response:
            total_str = response['Duration']
            time_str = response['Time']
            
            if total_str and time_str:
                total = utils.duration_to_seconds(total_str)
                time = utils.duration_to_seconds(time_str)
            
                return time, total
            
        return None, None
def get_player_position ( self ) : response = self . get_player_state ( ) if not response [ 'error' ] and 'Duration' in response : total_str = response [ 'Duration' ] time_str = response [ 'Time' ] if total_str and time_str : total = utils . duration_to_seconds ( total_str ) time = utils . duration_to_seconds ( time_str ) return time , total return None , None