diff --git a/webrtc/RtpExt.cpp b/webrtc/RtpExt.cpp index a3e2ec3a..b74ef0c8 100644 --- a/webrtc/RtpExt.cpp +++ b/webrtc/RtpExt.cpp @@ -558,3 +558,7 @@ void RtpExt::clearExt(){ void RtpExt::setType(RtpExtType type) { _type = type; } + +RtpExtType RtpExt::getType() const { + return _type; +} \ No newline at end of file diff --git a/webrtc/RtpExt.h b/webrtc/RtpExt.h index 9c59129c..9520bac6 100644 --- a/webrtc/RtpExt.h +++ b/webrtc/RtpExt.h @@ -59,6 +59,7 @@ public: static const char *getExtName(RtpExtType type); void setType(RtpExtType type); + RtpExtType getType() const; string dumpString() const; uint8_t getAudioLevel(bool *vad) const;