添加获取类型方法

This commit is contained in:
xiongziliang 2021-05-16 21:17:55 +08:00
parent a84bcec4aa
commit 5f05df98b0
2 changed files with 5 additions and 0 deletions

View File

@ -558,3 +558,7 @@ void RtpExt::clearExt(){
void RtpExt::setType(RtpExtType type) { void RtpExt::setType(RtpExtType type) {
_type = type; _type = type;
} }
RtpExtType RtpExt::getType() const {
return _type;
}

View File

@ -59,6 +59,7 @@ public:
static const char *getExtName(RtpExtType type); static const char *getExtName(RtpExtType type);
void setType(RtpExtType type); void setType(RtpExtType type);
RtpExtType getType() const;
string dumpString() const; string dumpString() const;
uint8_t getAudioLevel(bool *vad) const; uint8_t getAudioLevel(bool *vad) const;