General info | Getting started | Samples | Components reference | FAQ | Solutions |

Components reference


Receives RTP/SHOUTcast or RAW stream over unicast or broadcast/multicast UDP and decodes MPEG/Speex/ALaw/uLaw payloads if needed.

Configured mostly via URI and SDP properties.


Dispatch interface for IPReceiver component
void getStreamInfo([out] long dynType, [out] long encoding, [out] BSTR media, [out] long pcm_sps, [out] long pcm_nch, [out] long pcm_bits)Returns information about current stream format
bool ActiveSet to true to activate (open) the component. All other properties should be set to proper values before activation. Set to false to deactivate (close) the component
-- RAW --

  udp://	- receive RAW unicast stream (set SDP for details)	- bind to this IP
			    7654	- listen on this port

  udp://	- receive RAW multicast stream (set SDP for details)	- join this multicast group
			    7654	- listen on this port

-- RTP --

  rtp://	- receive unicast RTP stream (may need additional SDP in case of dynamic payload)	- bind to this IP
			    1254	- listen on this port

  rtp://	- receive multicast RTP stream (may need additional SDP in case of dynamic payload)	- join this multicast group
			    1254	- listen on this port

-- RTSP --

  rtsp:// - use RTSP streaming negotiation (check SDP for details)	- connect to this host for RTSP server (on port 554)

-- SHOUTcast --	- receive  SHOUTcast stream	- connect to this host for SHOUTcast stream
			    8230		- use this port for communication
bool IsFormatProviderWhen true the component will assign stream format to the consumer (if any). This simplifies the process of distributing stream format among linked components. For example WaveRiff component can assign PCM format to linked WaveOutDevice component, so WAVe file will be played back correctly
BSTR descriptionStream description, mostly for debugging.
BSTR SDPSpecifies stream format (payload), below are some samples you can reuse when working with RTP components.

First sample is a simple uLaw 8000/mono stream:

m=audio 5004 RTP/AVP 0
a=rtpmap:0 PCMU/8000/1

Since this is not a dynamic payload, receiver will not need additional SDP configuration.

ALaw 8000/mono stream:

m=audio 5004 RTP/AVP 8
a=rtpmap:8 PCMA/8000/1

Another non-dynamic payload, a MP3 streaming at 44100/stereo:

m=audio 0 RTP/AVP 14
a=rtpmap:14 mpa/44100/2

First dynamic payload sample is a simple PCM (uncompressed) 8000/16bits mono stream:

m=audio 0 RTP/AVP 98
a=rtpmap:98 L16/8000/1

Note, that this SDP setup must be applied on both transmitter and receiver, since dynamic payloads are not pre-defined in RFC.

Now we specify a Speex streaming at 16000 Hz:

m=audio 0 RTP/AVP 97
a=rtpmap:97 speex/16000
a=fmtp:97 mode="10,any"

See also: RFC 4566

BSTR bind2portSpecifies port number to bind to. Default is 0 (bind to first available port).
BSTR bind2ipSpecifies IP address of NIC to bind to. Default is (bind to all NICs).

See also...

Base interfaces

Wave processing components:
WaveIn, WaveOut, WaveCodec, WaveRiff, WaveMixer, WaveResampler, Equalizer, WaveMultiBandSplitter

Legacy IP components:
IpServer, IpClient, IpBroadcastServer, IpBroadcastClient, MediaGate, ConferenceServer

RTP streaming components:
IPTransmitter, RTPConfClient, RTPConfServer

Misc. components:
VolumeControl, DisplayBands

VCX Library 3.0 © 2012 Lake of Soft
All rights reserved.