WebRadio Extension

Ciao a tutti,
today a small extension to help to find web radio from all over the world.
The extension use https://www.radio-browser.info, it is a huge list of web radio.

GetCountries
Ask for the complete list of countries with web radio

GotCountries

Retreive the countries list
the correct responseCode is 200
response is the complete response in json format
countries contains the countries list to use to search web radio
message if there is an error ....

SearchStations

To search web radio
name the name or a part of the name of the web radio
country the country where to search the web radio
limit the number of the web radio in the response

The web radio list found
the correct responseCode is 200.
response is the complete response in json format, if you need more informations.
name the web radio name list found.
urlStream the web radio url stream list to use to listen the web radio.
homepage the web radio homepage url list, if You want to visit the web radio website.
icon the web radio icon url list.
message if there is an error ....

The source file:
WebRadio.txt (11.1 KB)
The extension:
WebRadio.aix (16.6 KB)
The sample project:
WebRadioSample.aia (29.8 KB)

How to use the sample:
on Station, write the name or a part of the name of the web radio to search
on Country, select a country from the list
on Search limit, write the number of the web radio to retreive
press on Search
select a web radio from the list found
the web radio starts to play.

I hope You find useful.
Ciao
Marco

5 Likes

thank you for your contribution...
there only is a minor issue concerning the naming conventions...

please do not use underscores, use camelCase instead...

url_stream -> urlStream

thank you for correcting it...
keep up the good work!

Taifun

Hi Taifun,
changed url_stream to urlStream and updated the post