|
Compy 0.2.0
A lightweight RTSP 1.0 server library for embedded systems
|
Unified receive path for RTCP and backchannel RTP data. More...
#include <compy/droppable.h>#include <compy/rtcp.h>#include <compy/types/rtp.h>#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include <interface99.h>#include <slice99.h>#include <compy/priv/compiler_attrs.h>

Go to the source code of this file.
Macros | |
| #define | Compy_AudioReceiver_IFACE |
| Application callback interface for receiving backchannel audio data. | |
| #define | COMPY_CHANNEL_RTCP 0 |
| #define | COMPY_CHANNEL_RTP 1 |
Typedefs | |
| typedef struct Compy_RtpReceiver | Compy_RtpReceiver |
Functions | |
| interface99 (Compy_AudioReceiver) | |
| Compy_RtpReceiver * | Compy_RtpReceiver_new (Compy_Rtcp *rtcp, Compy_AudioReceiver audio_receiver) COMPY_PRIV_MUST_USE |
| Creates a new RTP receiver for demuxing incoming data. | |
| int | Compy_RtpReceiver_feed (Compy_RtpReceiver *self, uint8_t channel_type, const uint8_t *data, size_t len) |
| Feeds raw received data into the receiver for demuxing. | |
| declImplExtern99 (Compy_Droppable, Compy_RtpReceiver) | |
Unified receive path for RTCP and backchannel RTP data.
Provides the #Compy_AudioReceiver interface for applications to receive backchannel audio, and the Compy_RtpReceiver demuxer that routes incoming data to either RTCP handling or audio callbacks.
| #define Compy_AudioReceiver_IFACE |
Application callback interface for receiving backchannel audio data.
See Interface99 for the macro usage.
| int Compy_RtpReceiver_feed | ( | Compy_RtpReceiver * | self, |
| uint8_t | channel_type, | ||
| const uint8_t * | data, | ||
| size_t | len | ||
| ) |
Feeds raw received data into the receiver for demuxing.
| [in] | self | The receiver. |
| [in] | channel_type | Either COMPY_CHANNEL_RTCP or COMPY_CHANNEL_RTP. |
| [in] | data | The raw packet data. |
| [in] | len | Length of data. |
self != NULL data != NULL| Compy_RtpReceiver * Compy_RtpReceiver_new | ( | Compy_Rtcp * | rtcp, |
| Compy_AudioReceiver | audio_receiver | ||
| ) |
Creates a new RTP receiver for demuxing incoming data.
| [in] | rtcp | The RTCP session for handling incoming RTCP. May be NULL. |
| [in] | audio_receiver | The audio callback for backchannel data. The .self field may be NULL if no backchannel is configured. |