Radio
You're now listening to an FM radio station!
BassBoom provides you with the Internet radio features, such as playing them and getting information about your favorite radio station. You can use the FileTools.OpenUrl() function to open the MPG123 handle to the radio station URL, assuming that said station uses MPEG and not AAC or other formats. Use the PlaybackTools.Play(), as usual, to play the radio station.
If you want to get your favorite internet radio station's information, you can use the GetRadioInfo function from the RadioTools class in the BassBoom.Basolia.Radio namespace.
Afterwards, you can call either Refresh() or RefreshAsync() to fetch the following info from the server:
ServerHostServer IP address
ServerPortServer port used by Shoutcast
ServerHostFullServer IP address with port
ServerHttpsWhether the Shoutcast server is using HTTPS or not
ServerTypeRadio server type
ServerVersion[SHOUTcast] Server version (1.x, 2.x)
TotalStreamsTotal number of streams in the server
ActiveStreamsActive streams in the server
CurrentListenersHow many people are listening to the server at this time?
PeakListenersHow many listeners did the server ever get at peak times?
MaxListeners[SHOUTcast] How many people can listen to the server?
UniqueListeners[SHOUTcast] How many unique listeners are there?
AverageTime[SHOUTcast] Average time on any active listener connections in seconds
AverageTimeSpan[SHOUTcast] Average time on any active listener connections in the time span
StreamsAvailable streams and their statistics
Stream information class, StreamInfo, contains the following variables:
StreamIdStream ID starting from number one (1)
CurrentListenersHow many people are listening to the stream at this time?
PeakListenersHow many listeners did the stream ever get at peak times?
MaxListeners[SHOUTcast] How many people can listen to the stream?
UniqueListeners[SHOUTcast] How many unique listeners are there?
AverageTime[SHOUTcast] Average time on any active listener connections in seconds
AverageTimeSpan[SHOUTcast] Average time on any active listener connections in the time span
StreamGenre->StreamGenre5The stream genre
StreamHomepageLink to the stream homepage
StreamTitleStream title
SongTitleSong title
StreamHits[SHOUTcast] Stream hits
StreamStatus[SHOUTcast] Stream status
BackupStatus[SHOUTcast] Backup stream status
StreamListedIs the stream listed?
StreamPathPath to stream
StreamUptime[SHOUTcast] Stream uptime in seconds
StreamUptimeSpan[SHOUTcast] Stream uptime in the time span
BitRateStream bitrate in kbps
SampleRate[SHOUTcast] Sampling rate in Hz
MimeInfoMIME info for stream, usually audio/mpeg.
You can use this library to make an application that fetches info from your Shoutcast server for analytical purposes.
Last updated