I beat YouTube slowdown
private fun createCronet(context: Context): CronetEngine {
return CronetEngine.Builder(context)
.enableHttp2(true)
.enableQuic(true)
.enableBrotli(true)
.build()
}
After connecting the library as an engine for Ktor Client (I used experimental implementation from github) the download speed has increased noticeably.
Summary
I managed to increase the average video download speed in 1080p до 7 мегабит
on home Internet from MTS and до 12 мегабит
on mobile Internet from Tele2.
If you need to download a video in the current slowdown conditions, you can always use my loader from RuStore.