Commit 5f05df98 by xiongziliang

添加获取类型方法

parent a84bcec4
...@@ -558,3 +558,7 @@ void RtpExt::clearExt(){ ...@@ -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;
}
\ No newline at end of file
...@@ -59,6 +59,7 @@ public: ...@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论