Home Units Hierarchy Routines All identifiers

Class unaSHOUTreceiver

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaSHOUTreceiver = class(unaThread)

Description

Basic SHOUTcast receiver (TCP only).

Hierarchy

Overview

Methods

Public constructor create(const uri: string; const userAgent: string = c_def_ICY_agent; allowMetadata: bool = true);
Public function getICYHeaderValue(const name: string): string;
Protected function execute(threadID: unsigned): int; override;
Public procedure BeforeDestruction(); override;
Protected procedure onMetadata(data: pointer; size: uint); virtual;
Protected procedure onPayload(data: pointer; size: uint); virtual;
Protected procedure startIn(); override;
Protected procedure startOut(); override;

Properties

Public property errorCode: int read f_errorCode;
Public property libOK: bool read f_libOK;
Public property song_title: string read f_song_title;
Public property song_url: string read f_song_url;
Public property srv_bitrate: string read f_srv_bitrate;
Public property srv_genre: string read f_srv_genre;
Public property srv_name: string read f_srv_name;
Public property srv_url: string read f_srv_url;
Public property URI: string read f_uri;
Public property userAgent: string read f_agent write f_agent;

Description

Methods

Public constructor create(const uri: string; const userAgent: string = c_def_ICY_agent; allowMetadata: bool = true);

Creates a new instance.

Public function getICYHeaderValue(const name: string): string;

Returns specifyied ICY header.

Protected function execute(threadID: unsigned): int; override;
 
Public procedure BeforeDestruction(); override;

Cleans the instance.

Protected procedure onMetadata(data: pointer; size: uint); virtual;
 
Protected procedure onPayload(data: pointer; size: uint); virtual;
 
Protected procedure startIn(); override;
 
Protected procedure startOut(); override;
 

Properties

Public property errorCode: int read f_errorCode;

ICY or some other error code.

Public property libOK: bool read f_libOK;
 
Public property song_title: string read f_song_title;
 
Public property song_url: string read f_song_url;
 
Public property srv_bitrate: string read f_srv_bitrate;
 
Public property srv_genre: string read f_srv_genre;
 
Public property srv_name: string read f_srv_name;
 
Public property srv_url: string read f_srv_url;
 
Public property URI: string read f_uri;

Stream URI.

Public property userAgent: string read f_agent write f_agent;

User-agent:

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09