Open mgostIH opened 8 months ago
Oh, I thought I was in the Hypnotix repo, I will move it there but keep it open in case any dev has a suggestion. Feel free to close if out of scope.
I've the same issue
@mgostIH please test this stream:
https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803&output=7&forceUserAgent=raiplayappletv
If it's better i'll change all Rai urls. Thank You! :3
For the Rai &forceUserAgent=raiplayappletv channels it applies only to Rai1 and Rai2, for the others you can use &forceUserAgent=hbbtv so you have them at 1080 DASH (not for Raisport because it has DRM)
The italian RAI channels use the following link (example with RAI2, tested): https://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=2606803&output=16
This redirects and downloads an m3u8 file, which contains the streams link mpv will go read contents. This works for a few minutes, but afterwards the cache stops increasing and the stream ends. I noticed by downloading manually the m3u8 file at different times that the sha256 hash changes, indicating that the redirect only gives an m3u8 that lasts for a little while. Given that RAI also implements geo blocking it might not be easy for the observe this (they also block some VPNs), but given the above description does anyone know if implementing something that periodically redownloads the m3u8 and joins it at the end of the current seen stream would work? I will check if mpv supports this too.