Class RadioTools
Radio tools
Namespace: BassBoom.Basolia.Radio
Assembly: BassBoom.Basolia.dll
Syntax
public static class RadioTools
Methods
| Edit this page View SourceGetRadioInfo(string)
Gets extended radio station information
Declaration
public static IRadioServer? GetRadioInfo(string radioUrl)
Parameters
Type | Name | Description |
---|---|---|
string | radioUrl | Radio station URL |
Returns
Type | Description |
---|---|
IRadioServer | An instance of IRadioServer. null if type can't be determined. ShoutcastServer if this radio station server uses Shoutcast, and IcecastServer if it uses Icecast. |
GetRadioInfoAsync(string)
Gets extended radio station information asynchronously
Declaration
public static Task<IRadioServer?> GetRadioInfoAsync(string radioUrl)
Parameters
Type | Name | Description |
---|---|---|
string | radioUrl | Radio station URL |
Returns
Type | Description |
---|---|
Task<IRadioServer> | An instance of IRadioServer. null if type can't be determined. ShoutcastServer if this radio station server uses Shoutcast, and IcecastServer if it uses Icecast. |
IsRadio(string, out string)
Checks to see if this is a radio station or not
Declaration
public static bool IsRadio(string radioUrl, out string streamType)
Parameters
Type | Name | Description |
---|---|---|
string | radioUrl | Radio station URL |
string | streamType | Output stream type |
Returns
Type | Description |
---|---|
bool | True if it is a radio station; false otherwise. |
IsRadioAsync(string)
Checks to see if this is a radio station or not
Declaration
public static Task<(string, bool)> IsRadioAsync(string radioUrl)
Parameters
Type | Name | Description |
---|---|---|
string | radioUrl | Radio station URL |
Returns
Type | Description |
---|---|
Task<(string, bool)> | True if it is a radio station; false otherwise. |