Added configurable automatic timeout of player.