The Prince of Wales faced boos and jeers as he left Ulster University's Belfast City Campus Centre after a royal engagement.