'Send media_seek command to media player.'

def media_seek(self, position):

    websocket = self.get_ws()
    if (websocket is None):
        return
    websocket.send(json.dumps({'namespace': 'playback', 'method': 'setCurrentTime', 'arguments': [(position * 1000)]}))
    self.schedule_update_ha_state()
