A student has fallen asleep in class and his friend is recording him.