提交 896e9c6d authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Really add SILK support

上级 a92b34a2
...@@ -59,6 +59,7 @@ namespace RTC ...@@ -59,6 +59,7 @@ namespace RTC
ISAC, ISAC,
G722, G722,
ILBC, ILBC,
SILK,
// Video codecs: // Video codecs:
VP8 = 200, VP8 = 200,
VP9, VP9,
...@@ -123,6 +124,26 @@ namespace RTC ...@@ -123,6 +124,26 @@ namespace RTC
std::string name; std::string name;
}; };
class RtpHeaderExtensionUri
{
public:
enum class Type : uint8_t
{
UNKNOWN = 0,
SSRC_AUDIO_LEVEL = 1,
TO_OFFSET = 2,
ABS_SEND_TIME = 3,
VIDEO_ORIENTATION = 4,
RTP_STREAM_ID = 5
};
private:
static std::unordered_map<std::string, Type> string2Type;
public:
static Type GetType(std::string& uri);
};
class RtcpFeedback class RtcpFeedback
{ {
public: public:
...@@ -174,6 +195,7 @@ namespace RTC ...@@ -174,6 +195,7 @@ namespace RTC
public: public:
Media::Kind kind = Media::Kind::ALL; Media::Kind kind = Media::Kind::ALL;
std::string uri; std::string uri;
RtpHeaderExtensionUri::Type type;
uint16_t preferredId = 0; uint16_t preferredId = 0;
bool preferredEncrypt = false; bool preferredEncrypt = false;
}; };
...@@ -255,6 +277,7 @@ namespace RTC ...@@ -255,6 +277,7 @@ namespace RTC
public: public:
std::string uri; std::string uri;
RtpHeaderExtensionUri::Type type;
uint16_t id = 0; uint16_t id = 0;
bool encrypt = false; bool encrypt = false;
RTC::Parameters parameters; RTC::Parameters parameters;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论