| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Constructor Summary | |
RtspSdp() The default C'tor. | |
RtspSdp(const Data & contentData) get the contentData (msgBody) from a RtspMsg RtspSdp constructor will decode it and check it if valid RtspSdp provides get functons for application to read the sdp info This can be used to decode the SDP in ANNOUNCE |
Method Summary | |
void | addAttribute(const char * attribute, const char * value) for the session level attribute |
void | addMediaAttribute(const char * attribute, const char * value) for the media level attribute |
void | addMediaFormat(const int payloadType) |
void | addRtpmap(const int payloadType, const Data & encodeName, const int cloackRate) add one rtpmap and add associate Format in the SdpMedia |
void | decode(const Data & contentData) |
Data | encode() |
Data | getAttributeValue(const char * attribute) get session level attribute |
Data | getConnAddress() The c= addr for unicast TODO multicast |
Data | getMediaAttributeValue(const char * attribute) get media level attribute |
Data | getMediaConnAddress() |
vector < int > * | getMediaFormatList() get format list |
int | getMediaPort() Following get functions are getting the info for *first* SdpMedia If you want to get more than one SdpMedeia, you need to use getSdpSession to get the list of SdpMedia |
Data | getOwnerAddress() The o= addr |
vector < SdpRtpMapAttribute* > * | getRtpmapList() get rtpmap list |
Sptr< SdpSession > | getSdpSession() |
Data | getSessionName() |
Data | getUserName() |
bool | isValid() |
void | setConnAddress(const Data & connAddr) The c= addr for unicast TODO for multicast |
void | setMediaConnAddress(const Data & connAddr) |
void | setMediaPort(int port) Following set functions are setting data for the *first* SdpMedia it creates a SdpMedia if there is none If you want to add more than one SdpMedeia, you need to create SdpMedia by yourself and use getSdpSession to add onto it |
void | setOwnerAddress(const Data & ownerAddr) The o= addr |
void | setSessionName(const Data & sessionName) |
void | setUserName(const Data & userName) |
Constructor Detail |
public RtspSdp()
public RtspSdp(const Data & contentData)
Method Detail |
public void addAttribute(const char * attribute, const char * value)
public void addMediaAttribute(const char * attribute, const char * value)
public void addMediaFormat(const int payloadType)
public void addRtpmap(const int payloadType, const Data & encodeName, const int cloackRate)
public void decode(const Data & contentData)
public Data encode()
public Data getAttributeValue(const char * attribute)
public Data getConnAddress()
public Data getMediaAttributeValue(const char * attribute)
public Data getMediaConnAddress()
public vector < int > * getMediaFormatList()
public int getMediaPort()
public Data getOwnerAddress()
public vector < SdpRtpMapAttribute* > * getRtpmapList()
public Sptr< SdpSession > getSdpSession()
public Data getSessionName()
public Data getUserName()
public bool isValid()
public void setConnAddress(const Data & connAddr)
public void setMediaConnAddress(const Data & connAddr)
public void setMediaPort(int port)
public void setOwnerAddress(const Data & ownerAddr)
public void setSessionName(const Data & sessionName)
public void setUserName(const Data & userName)
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |