mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
WHIP: Add OBS support, ensuring compatibility with a unique SDP. v5.0.158, v6.0.51 (#3581)
1. Ignore SDP GROUP LS. 2. Support ice in global session info. 3. Support audio codec "OPUS" or "opus". --------- Co-authored-by: Johnny <hellojinqiang@gmail.com>
This commit is contained in:
parent
0ce2983e44
commit
7f997b39ae
5 changed files with 27 additions and 6 deletions
|
@ -684,7 +684,10 @@ std::vector<SrsRtcTrackDescription*> SrsRtcSource::get_track_desc(std::string ty
|
|||
if (! stream_desc_->audio_track_desc_) {
|
||||
return track_descs;
|
||||
}
|
||||
if (stream_desc_->audio_track_desc_->media_->name_ == media_name) {
|
||||
|
||||
string name = stream_desc_->audio_track_desc_->media_->name_;
|
||||
std::transform(name.begin(), name.end(), name.begin(), static_cast<int(*)(int)>(std::tolower));
|
||||
if (name == media_name) {
|
||||
track_descs.push_back(stream_desc_->audio_track_desc_);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue