Description | Hierarchy | Fields | Methods | Properties |
type unavclIPBroadcastServer = class(unavclIPBroadcastPipe)
Broadcasts audio stream over LAN using the broadcast destination IP address and UDP sockets.
Usage: set the port property to specify the port number to broadcast to. Calling the open() method or setting the active property to True will initiate broadcasting.
Example: refer to vcBroadcast demo for details.
function doOpen(): bool; override; |
|
function sendAudioStreamFormat(): tunaSendResult; |
|
function sendCustomData(customType: byte; data: pointer; len: uint): tunaSendResult; |
|
function sendStreamData(channelMedia: byte; data: pointer = nil; len: uint = 0; isNewChunk: bool = true): tunaSendResult; |
|
function sendStreamSync(sync: uint): tunaSendResult; |
|
function doWrite(data: pointer; len: uint; provider: pointer = nil): uint; override; |
|
procedure bindSocket(); override; |
property packetsSent: unsigned read f_packetsSent; |
function doOpen(): bool; override; |
|
function sendAudioStreamFormat(): tunaSendResult; |
|
Sends an audio stream format to client(s). |
function sendCustomData(customType: byte; data: pointer; len: uint): tunaSendResult; |
|
Sends custom data over a pipe. |
function sendStreamData(channelMedia: byte; data: pointer = nil; len: uint = 0; isNewChunk: bool = true): tunaSendResult; |
|
Sends a specified media packet. Only audio packets are currently supported. Returns 0 if data was sent successfully, or socket error otherwise. |
function sendStreamSync(sync: uint): tunaSendResult; |
|
Sends stream synchronization (not implemented yet). |
function doWrite(data: pointer; len: uint; provider: pointer = nil): uint; override; |
|
Writes data into broadcast stream. |
procedure bindSocket(); override; |
|
property packetsSent: unsigned read f_packetsSent; |
|
Returns number of total packets being sent. |
(c) 2012 Lake of Soft