A Scottish university has cut its livestream of a graduation ceremony after a student took part in a pro-Palestine protest.