Angry [q] how to record tv

HELLO xda , i owned from 6 years an mp4 . it had the ability to record what was on the screen by connecting it to the tv by these 3 colored cables. how can we do this using our android phones espiciallt htc one