1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Support update msid for sdp

This commit is contained in:
winlin 2020-09-15 12:31:36 +08:00
parent c8af9e9ec4
commit c26cb9a15b
2 changed files with 35 additions and 0 deletions

View file

@ -140,6 +140,7 @@ public:
SrsMediaPayloadType* find_media_with_payload_type(int payload_type);
std::vector<SrsMediaPayloadType> find_media_with_encoding_name(const std::string& encoding_name) const;
const std::map<int, std::string>& get_extmaps() const { return extmaps_; }
srs_error_t update_msid(std::string id);
bool is_audio() const { return type_ == "audio"; }
bool is_video() const { return type_ == "video"; }
@ -248,6 +249,8 @@ public:
std::vector<SrsMediaDesc> media_descs_;
bool is_unified() const;
// TODO: FIXME: will be fixed when use single pc.
srs_error_t update_msid(std::string id);
};
#endif