HaikuArchives / StreamRadio

Haiku-native application to search for and listen to internet radio stations.
8 stars 11 forks source link

Radio stations don't "respond correctly". #54

Open Sebrof opened 1 year ago

Sebrof commented 1 year ago

I installed the latest version of Streamradio from HaikuDepot today.
I then tried to add a radio station - BBC Radio 3 HD. The station was found, but when I pressed the Add button, SR responded thus: "BBC Radio 3 HD did not respond correctly and could not be added." The same occurred when I tried to add BBC Radio 4. Both stations are working properly in QmPlay2, so I don't believe this is a hardware issue.

Sebrof commented 1 year ago

I should have mentioned that I am on R1/beta4(Revision hrev56578+65) X86_64. The latest, as of now.

humdingerb commented 1 year ago

To be more specific, "BBC Radio 4" (https://stream.live.vc.bbcmedia.co.uk/bbc_radio_fourfm) 128kbps works here, "BBC Radio 4 HD" 339kbps does not.

It appears like the stations ending in ".m3u8" do not work with StreamRadio. ".m3u" do work though. Something Unicode related? See https://en.wikipedia.org/wiki/M3U#M3U8

Sebrof commented 1 year ago

I thought it's only Radio 3 that has an HD stream, so I didn't look for Radio 4 HD. I have now found that there are quite a number of Radio 4 streams, and some do indeed work. The first one I tried didn't - and still doesn't. At the moment it's no big deal that Radio 3 HD doesn't work, but once Haiku can handle USB output it would make a difference. Thanks for looking into this.

lonemadmax commented 1 year ago

No issue with being m3u8. StreamRadio correctly retrieves those and tries the stream declared within, which (for me) responds with a 403: Forbidden. Those are UK only.

Sebrof commented 1 year ago

I am in the UK, so I don't get 403 messages. But I do get "did not respond correctly" in some cases when using StreamRadio, but not when using QmPlay2. Specifically, I can't get BBC Radio 3 to work in SR, but it does in QP.

humdingerb commented 1 year ago

Weird coincidence that they geo-block only their .m3u8 streams. For example, BBC Radio Cornwall has non-m3u8 stream that works, the m3u8 does not.

m3u8 isn't widely used, it appears... The only streams I found that I was able to "Add" wouldn't play.

Sebrof commented 1 year ago

Correction, I can't get BBC Radio 3 HD to work in SR, but it does in QP. I agree it's weird.

justingoldberg commented 1 year ago

Looks like Haiku will need a working Geoproxy at some point. TOR has this, but you'll need to run it from another box.

Is there a port of the TOR (the daemon, not the bundle)?

lonemadmax commented 1 year ago

The problem with those streams (for UK users) is they are HLS and StreamRadio doesn't work with that.

https://www.bbc.co.uk/radio/imda/imda_transports.xml has a good big list of BBC streams. I chose one of the international HLS ones, got redirected to something like the problematic ones here, but with "/nonuk/" in the URL instead of "/uk/", which downloaded successfully, and contained the typical sequential list of items in HLS:

...
#EXTINF:6.4, no desc
bbc_radio_cornwall-audio=96000-261600398.ts
#EXTINF:6.4, no desc
bbc_radio_cornwall-audio=96000-261600399.ts
#EXTINF:6.4, no desc
bbc_radio_cornwall-audio=96000-261600400.ts
...

For starters, SR does not correctly handle non-absolute URL in playlists. I have something for that. Then, those are just little chunks that have to be loaded in series, not streams, and they have a video content type. That would need more work.

Sebrof commented 1 year ago

Given that it all works fine in QP, I don't think that fixing this in StreamRadio should be a priority.