🖥️How to use
How do you use it?
Using this library is very simple! Just use the ShoutStats.Core namespace in any piece of code you want to use the library, as in: using ShoutStats.Core;
Once you have the server host name and the port, you can create a new instance of the ShoutcastServer class and 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
ServerVersionServer 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?
MaxListenersHow many people can listen to the server?
UniqueListenersHow many unique listeners are there?
AverageTimeAverage time on any active listener connections in seconds
AverageTimeSpanAverage 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?
MaxListenersHow many people can listen to the stream?
UniqueListenersHow many unique listeners are there?
AverageTimeAverage time on any active listener connections in seconds
AverageTimeSpanAverage time on any active listener connections in the time span
StreamGenre->StreamGenre5The stream genre
StreamHomepageLink to the stream homepage
StreamTitleStream title
SongTitleSong title
StreamHitsStream hits
StreamStatusStream status
BackupStatusBackup stream status
StreamListedIs the stream listed?
StreamPathPath to stream
StreamUptimeStream uptime in seconds
StreamUptimeSpanStream uptime in the time span
BitRateStream bitrate in kbps
SampleRateSampling 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