Class ShoutcastServer
A Shoutcast server
Implements
Namespace: BassBoom.Basolia.Radio
Assembly: BassBoom.Basolia.dll
Syntax
public class ShoutcastServer : IRadioServer
Properties
| Edit this page View SourceActiveStreams
Active streams in the server
Declaration
public int ActiveStreams { get; }
Property Value
Type | Description |
---|---|
int |
AverageTime
Average time on any active listener connections in seconds
Declaration
public int AverageTime { get; }
Property Value
Type | Description |
---|---|
int |
AverageTimeSpan
Average time on any active listener connections in the time span
Declaration
public TimeSpan AverageTimeSpan { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
CurrentListeners
How many people are listening to the server at this time?
Declaration
public int CurrentListeners { get; }
Property Value
Type | Description |
---|---|
int |
MaxListeners
How many people can listen to the server?
Declaration
public int MaxListeners { get; }
Property Value
Type | Description |
---|---|
int |
MimeType
MIME type of a stream
Declaration
public string MimeType { get; }
Property Value
Type | Description |
---|---|
string |
PeakListeners
How many listeners did the server ever get at peak times?
Declaration
public int PeakListeners { get; }
Property Value
Type | Description |
---|---|
int |
ServerHost
Server IP address
Declaration
public string ServerHost { get; }
Property Value
Type | Description |
---|---|
string |
ServerHostFull
Server IP address with port
Declaration
public string ServerHostFull { get; }
Property Value
Type | Description |
---|---|
string |
ServerHttps
Whether the Shoutcast server is using HTTPS or not
Declaration
public bool ServerHttps { get; }
Property Value
Type | Description |
---|---|
bool |
ServerPort
Server port
Declaration
public int ServerPort { get; }
Property Value
Type | Description |
---|---|
int |
ServerType
Always Shoutcast for SHOUTcast radio servers
Declaration
public RadioServerType ServerType { get; }
Property Value
Type | Description |
---|---|
RadioServerType |
ServerVersion
Server version (1.x, 2.x)
Declaration
public ShoutcastVersion ServerVersion { get; }
Property Value
Type | Description |
---|---|
ShoutcastVersion |
Streams
Available streams and their statistics
Declaration
public StreamInfo[] Streams { get; }
Property Value
Type | Description |
---|---|
StreamInfo[] |
TotalStreams
Total number of streams in the server
Declaration
public int TotalStreams { get; }
Property Value
Type | Description |
---|---|
int |
UniqueListeners
How many unique listeners are there?
Declaration
public int UniqueListeners { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceRefresh()
Refreshes the statistics
Declaration
public void Refresh()
RefreshAsync()
Refreshes the statistics
Declaration
public Task RefreshAsync()
Returns
Type | Description |
---|---|
Task |