![]() |
Media Controller
A GStreamer implementation using the VideoXpert SDK
|
Parses the SDP packets sent from an RTSP source. More...
#include <RtspSdpParser.h>
Public Member Functions | |
SdpParser () | |
Default constructor. More... | |
~SdpParser () | |
Default destructor. More... | |
const std::vector< MediaDescription > & | GetMediaDescriptions () const |
Get all available media descriptions. More... | |
const MediaDescription & | GetFirstVideo () |
Get the first available video media description. More... | |
const MediaDescription & | GetFirstAudio () |
Get the first available audio media description. More... | |
void | Parse (const std::string &sdp) |
Parses a raw SDP packet string. More... | |
Public Attributes | |
std::string | sessionControlUri |
The session control URI. More... | |
Private Attributes | |
std::vector< MediaDescription > | _mediaDescriptions |
Parses the SDP packets sent from an RTSP source.
Definition at line 12 of file RtspSdpParser.h.
SdpParser::SdpParser | ( | ) |
SdpParser::~SdpParser | ( | ) |
const MediaDescription & SdpParser::GetFirstAudio | ( | ) |
Get the first available audio media description.
Definition at line 78 of file RtspSdpParser.cpp.
const MediaDescription & SdpParser::GetFirstVideo | ( | ) |
Get the first available video media description.
Definition at line 69 of file RtspSdpParser.cpp.
const vector< MediaDescription > & SdpParser::GetMediaDescriptions | ( | ) | const |
Get all available media descriptions.
Definition at line 20 of file RtspSdpParser.cpp.
void SdpParser::Parse | ( | const std::string & | sdp | ) |
Parses a raw SDP packet string.
sdp | The SDP packet as a string. |
Definition at line 24 of file RtspSdpParser.cpp.
|
private |
Definition at line 57 of file RtspSdpParser.h.
std::string MediaController::Rtsp::SdpParser::sessionControlUri |
The session control URI.
Definition at line 54 of file RtspSdpParser.h.