IcecastOutputStatus type
The connection state of an IcecastOutputNode, as reported to IcecastOutputSettings.onStatus.
-
connected: the server accepted the source.detailis the method that worked,"PUT"or"SOURCE"(older Icecast). -connectionFailed: the connection or handshake failed and will be retried.detailis the server’s answer where there was one (e.g."403 Mountpoint in use","401 Authentication Required"), else the network error. -disconnected: a live connection was lost; reconnecting now. -metadataFailed: a IcecastOutputNode.updateMetadata() call was refused.
Signature:
export type IcecastOutputStatus = {
state: "connected" | "connectionFailed" | "disconnected" | "metadataFailed";
detail: string;
};