'Turn off media player.'

def turn_off(self):

    if (self._config['method'] == 'websocket'):
        self.send_key('KEY_POWER')
    else:
        self.send_key('KEY_POWEROFF')
    self.get_remote().close()
