Web scraping [0] and grabbing the googlevideo stream from there [1], at least in the case of invidious
[0] https://en.wikipedia.org/wiki/Invidious
[1] https://docs.invidious.io/faq/#q-what-data-is-shared-with-yo...
[0] https://en.wikipedia.org/wiki/Invidious
[1] https://docs.invidious.io/faq/#q-what-data-is-shared-with-yo...