Description | Hierarchy | Fields | Methods | Properties |
type unaSHOUTreceiver = class(unaThread)
Basic SHOUTcast receiver (TCP only).
![]() |
constructor create(const uri: string; const userAgent: string = c_def_ICY_agent; allowMetadata: bool = true); |
![]() |
function getICYHeaderValue(const name: string): string; |
![]() |
function execute(threadID: unsigned): int; override; |
![]() |
procedure BeforeDestruction(); override; |
![]() |
procedure onMetadata(data: pointer; size: uint); virtual; |
![]() |
procedure onPayload(data: pointer; size: uint); virtual; |
![]() |
procedure startIn(); override; |
![]() |
procedure startOut(); override; |
![]() |
property errorCode: int read f_errorCode; |
![]() |
property libOK: bool read f_libOK; |
![]() |
property song_title: string read f_song_title; |
![]() |
property song_url: string read f_song_url; |
![]() |
property srv_bitrate: string read f_srv_bitrate; |
![]() |
property srv_genre: string read f_srv_genre; |
![]() |
property srv_name: string read f_srv_name; |
![]() |
property srv_url: string read f_srv_url; |
![]() |
property URI: string read f_uri; |
![]() |
property userAgent: string read f_agent write f_agent; |
![]() |
constructor create(const uri: string; const userAgent: string = c_def_ICY_agent; allowMetadata: bool = true); |
Creates a new instance. |
![]() |
function getICYHeaderValue(const name: string): string; |
Returns specifyied ICY header. |
![]() |
function execute(threadID: unsigned): int; override; |
![]() |
procedure BeforeDestruction(); override; |
Cleans the instance. |
![]() |
procedure onMetadata(data: pointer; size: uint); virtual; |
![]() |
procedure onPayload(data: pointer; size: uint); virtual; |
![]() |
procedure startIn(); override; |
![]() |
procedure startOut(); override; |
![]() |
property errorCode: int read f_errorCode; |
ICY or some other error code. |
![]() |
property libOK: bool read f_libOK; |
![]() |
property song_title: string read f_song_title; |
![]() |
property song_url: string read f_song_url; |
![]() |
property srv_bitrate: string read f_srv_bitrate; |
![]() |
property srv_genre: string read f_srv_genre; |
![]() |
property srv_name: string read f_srv_name; |
![]() |
property srv_url: string read f_srv_url; |
![]() |
property URI: string read f_uri; |
Stream URI. |
![]() |
property userAgent: string read f_agent write f_agent; |
User-agent: |
(c) 2012 Lake of Soft