![]() |
MediaX v1.0.0rc7 [7e6cb74]
Video streaming for military vehicles
|
A RTP SAP receiver helper class. More...
#include <rtp_sap_wrapper.h>
Public Member Functions | |
RtpSapRecieve (std::string_view hostname, uint16_t port, std::string_view session_name, uint16_t height, uint16_t width, uint16_t framerate, std::string_view encoding) | |
Construct a new Rtp Sap Recieve object. | |
~RtpSapRecieve () | |
Destroy the Rtp Sap Receive object. | |
std::vector< uint8_t > & | GetBuffer () |
Get the frame buffer, resized and ready to use. | |
bool | Receive (::mediax::rtp::RtpFrameData *data, size_t size) |
The frame receive function, this will receive the frame over RTP. | |
Static Public Member Functions | |
static void | Callback (const sap::SdpMessage *sdp, void *data) |
The SAP callback. | |
Private Member Functions | |
bool | CheckSapOk () const |
Check that the SAP announcement has been received and is OK. | |
Private Attributes | |
T | rtp_depayloader_ |
The RTP depayloader. | |
sap::SapListener & | sap_listener_ = ::mediax::sap::SapListener::GetInstance() |
The SAP listener. | |
::mediax::rtp::StreamInformation | stream_info_ |
The stream information. | |
std::vector< uint8_t > | data_buffer_ |
The vectored data buffer. | |
A RTP SAP receiver helper class.
|
inline |
Construct a new Rtp Sap Recieve object.
hostname | The IPV4 multicast address |
port | The IPV4 multicast port |
session_name | The name of the stream |
height | Stream height |
width | Stream width |
framerate | Stream framerate |
encoding | Stream encoding |
|
inlineprivate |
Check that the SAP announcement has been received and is OK.
|
inline |
Get the frame buffer, resized and ready to use.
|
inline |
The frame receive function, this will receive the frame over RTP.
data | The RGB frame data |
size | The size of the RGB frame data |