Skip to content

Commit

Permalink
For #1998, TODO: FIME: Should check packetization-mode=1 also.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Nov 13, 2020
1 parent 5d27c62 commit 7136af2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trunk/src/app/srs_app_rtc_conn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2644,6 +2644,7 @@ srs_error_t SrsRtcConnection::negotiate_publish_capability(SrsRequest* req, cons

bool nack_enabled = _srs_config->get_rtc_nack_enabled(req->vhost);
bool twcc_enabled = _srs_config->get_rtc_twcc_enabled(req->vhost);
// TODO: FIME: Should check packetization-mode=1 also.
bool has_42e01f = srs_sdp_has_h264_profile(remote_sdp, "42e01f");

for (size_t i = 0; i < remote_sdp.media_descs_.size(); ++i) {
Expand Down Expand Up @@ -2934,6 +2935,7 @@ srs_error_t SrsRtcConnection::negotiate_play_capability(SrsRequest* req, const S

bool nack_enabled = _srs_config->get_rtc_nack_enabled(req->vhost);
bool twcc_enabled = _srs_config->get_rtc_twcc_enabled(req->vhost);
// TODO: FIME: Should check packetization-mode=1 also.
bool has_42e01f = srs_sdp_has_h264_profile(remote_sdp, "42e01f");

SrsRtcStream* source = NULL;
Expand Down Expand Up @@ -2979,6 +2981,7 @@ srs_error_t SrsRtcConnection::negotiate_play_capability(SrsRequest* req, const S
SrsMediaPayloadType& payload = payloads.at(j);

// If exists 42e01f profile, choose it; otherwise, use the first payload.
// TODO: FIME: Should check packetization-mode=1 also.
if (!has_42e01f || srs_sdp_has_h264_profile(payload, "42e01f")) {
remote_payload = payload;
break;
Expand Down

0 comments on commit 7136af2

Please sign in to comment.