Streaming media files over Youtube uses Dynamic Adaptive Streaming over HTTP (DASH). Client side receives a manifest file, from which it chooses what type of video quality will it receive, depending on the throughput the client has.
I ran some youtube video, opened Network tab to see the manifest file that determines video quality(to see the code), but I don't know which file performs this quest. Do you know which file serves as the manifest regarding Youtube videos?
.m3u
file. I think they added another letter to the extension, but I forget at the moment