did you get something working?i use sysutils.executeprocess with yt-dlphttps://github.com/yt-dlp
i assume you are using curl to get the m3u8 to get the urls and number of fragments and then curl to get the fragments?
would you be up to posting the code you have written in fpc? it would be interesting to test it