Why youtube don’t need user to interact first with document for playing a video? [duplicate]

I am creating a VOD website, and when working on the deep url functionality (url that point directly a video ex: mysite.com/watch/abcd) i have this error in console (Chrome):

videoplayer.js:149 Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://developer.chrome.com/blog/autoplay

I completly understand the problem, but how does youtube make it work?
When you open a direct link, the video launch itself: https://www.youtube.com/watch?v=dQw4w9WgXcQ

(I tried with autoplay but same error)