Receive and transmit RAW or RTP audio streams |
||
IP streaming components were designed for real-time data streaming over TCP/IP networks. There are two components: TunaIPReceiver and TunaIPTransmitter.
TunaIPReceiverIPReceiver sample shows how to use the component.
TunaIPTransmitterIPTransmitter sample shows how to use the component.
IPCustomCodec SampleIf IP streaming componets do not support required codec directly, you can switch to ACM version of the codec. IP Custom Codec shows how you can stream own audio format using RTP dynamic payload type. Just make sure both sides are pre-configured to the same codec.
IPText SampleIn addition to audio, IP components can stream text. sendText() method and onText event can be used to send and receive strings. Below is IP Text sample working in receiver mode. Both IPTransmitter and IPDuplex components can send text, while both IPReceiver and IPDuplex can receive it.
IPDuplex SampleTo send and receive audio at the same time you can use IPTransmitter and IPReceiver pair on each side, or simply use one IPDuplex component.
IPTunnel SampleSometines it is not possible to connect two or more clients directly. A simple RTP tunnel could be build, which will connect two or more clients based on list of rules. Rule can specify clients by their remote address:port, or by their SSRC identifiers.IP Stream Pusher SampleWhen you have a fixed list of receivers, you can force IPTransmitter component to stream audio to those destinations.
DownloadPrecompiled binary of this sample is included in the Demos package. |