Home Units Hierarchy Routines All identifiers

Class unavclIPBroadcastServer

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unavclIPBroadcastServer = class(unavclIPBroadcastPipe)

Description

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.

Hierarchy

Overview

Methods

Public function doOpen(): bool; override;
Public function sendAudioStreamFormat(): tunaSendResult;
Public function sendCustomData(customType: byte; data: pointer; len: uint): tunaSendResult;
Public function sendStreamData(channelMedia: byte; data: pointer = nil; len: uint = 0; isNewChunk: bool = true): tunaSendResult;
Public function sendStreamSync(sync: uint): tunaSendResult;
Protected function doWrite(data: pointer; len: uint; provider: pointer = nil): uint; override;
Protected procedure bindSocket(); override;

Properties

Public property packetsSent: unsigned read f_packetsSent;

Description

Methods

Public function doOpen(): bool; override;
 
Public function sendAudioStreamFormat(): tunaSendResult;

Sends an audio stream format to client(s).

Public function sendCustomData(customType: byte; data: pointer; len: uint): tunaSendResult;

Sends custom data over a pipe.

Public 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.

Public function sendStreamSync(sync: uint): tunaSendResult;

Sends stream synchronization (not implemented yet).

Protected function doWrite(data: pointer; len: uint; provider: pointer = nil): uint; override;

Writes data into broadcast stream.

Protected procedure bindSocket(); override;
 

Properties

Public property packetsSent: unsigned read f_packetsSent;

Returns number of total packets being sent.

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09