Home / WorldTech / The title of this viral YouTube video itself is updated to reflect the number of views

The title of this viral YouTube video itself is updated to reflect the number of views




If you create a YouTube video that is viewed more than 2.5 million times in the first 17 hours, you may want to scream about it from the rooftops.

But what if the clip itself can scream? for her?

The latest video from YouTuber Tom Scott does just that. The title "This video has X views" is constantly updated to reflect the number of your own views.

"If I want my code to change a video title, I don't ask it to open a web browser." Scott explains in the clip. "Instead, a single request is sent to YouTube: here is the video ID; here is the material to be changed; here are my credentials to prove I can do it. Bundle everything, share it. And YouTube sends a single back answer ̵

1; hopefully it's a response code of 200, which means OK, confirming what the video's data has changed to. "

After Scott explains how he programmed his video title for the update, he explains further, why – and what follows. A fascinating history lesson follows about how the coding has changed over the years, why it has changed and what this could mean for the future.


Source link