Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
johzzy committed Mar 31, 2024
1 parent af3ef99 commit 426f3ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webrtc/RtpExt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ static unordered_map<string/*ext*/, RtpExtType/*id*/> s_url_to_type = {RTP_EXT_M
RtpExtType RtpExt::getExtType(const string &url) {
auto it = s_url_to_type.find(url);
if (it == s_url_to_type.end()) {
throw std::invalid_argument(string("未识别的rtp ext url类型:") + url);
throw std::invalid_argument(string("unknown rtp ext url type: ") + url);
}
return it->second;
}
Expand Down
5 changes: 3 additions & 2 deletions webrtc/RtpExt.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ namespace mediakit {
XX(video_orientation, "urn:3gpp:video-orientation") \
XX(toffset, "urn:ietf:params:rtp-hdrext:toffset") \
XX(av1, "https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extension") \
XX(encrypt, "urn:ietf:params:rtp-hdrext:encrypt")
XX(encrypt, "urn:ietf:params:rtp-hdrext:encrypt") \
XX(video_layers_allocation00, "http://www.webrtc.org/experiments/rtp-hdrext/video-layers-allocation00") \

enum class RtpExtType : uint8_t {
padding = 0,
#define XX(type, uri) type,
RTP_EXT_MAP(XX)
#undef XX
reserved = 15,
reserved,
};

class RtcMedia;
Expand Down

0 comments on commit 426f3ab

Please sign in to comment.