The question by itself already describes my interest, but what I'm really wanting to know is how youtube stores the information saying that we've already watched that video. I thought about storage with cookies, but it would be unfeasible since whenever someone cleared the history the cookies could be deleted and thus would not know which video has already watched or not. Soon after I thought that Youtube stores this information in a DB, however I think that way it would create a huge amount of data that can be considered practically useless. Is there a third way to store this information?
Taking the plunge, I would like to ask another question on the same subject. Pro Youtube is not enough just to click on the link so that it considers that video assisted by the user. Would you then know how he accomplishes this Time to establish which video is watched or not? I thought of a kind of timer with about 80% of the actual time of the video, where the video will only be considered as watched if the user stays that X seconds or minutes on the page recharges 80% of the clicked video. But I think there must be some other way to accomplish this function, I would like to know if there is any other way and if so, what would it be?
For those who have never seen what I'm talking about, you just have to log in to YouTube and watch a video, and right after the video comes up with a semi-transparent film on top of it with the following saying "Watched."