Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sebrof opened this issue Jan 19, 2023 · 10 comments
Open

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

Sebrof opened this issue Jan 19, 2023 · 10 comments

Comments

@Sebrof
Copy link

Sebrof commented Jan 19, 2023

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
Copy link
Author

Sebrof commented Jan 19, 2023

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

@humdingerb
Copy link
Member

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
Copy link
Author

Sebrof commented Jan 19, 2023

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
Copy link
Contributor

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
Copy link
Author

Sebrof commented Jan 20, 2023

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
Copy link
Member

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
Copy link
Author

Sebrof commented Jan 20, 2023

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

@justingoldberg
Copy link

justingoldberg commented Jan 20, 2023

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
Copy link
Contributor

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
Copy link
Author

Sebrof commented Jan 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants