From 7863879ee5b47bcca86f19030ae2279bc039457f Mon Sep 17 00:00:00 2001 From: Pedro Rodriguez Date: Fri, 17 Jun 2022 11:19:09 +0200 Subject: [PATCH 1/2] Properly mark packet type when receiving packets in WebrtcConnection --- erizo/src/erizo/WebRtcConnection.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/erizo/src/erizo/WebRtcConnection.cpp b/erizo/src/erizo/WebRtcConnection.cpp index 52702b13d..e4cf9d6e2 100644 --- a/erizo/src/erizo/WebRtcConnection.cpp +++ b/erizo/src/erizo/WebRtcConnection.cpp @@ -1036,6 +1036,20 @@ void WebRtcConnection::onTransportData(std::shared_ptr packet, Trans return; } + char* buf = packet->data; + RtcpHeader *chead = reinterpret_cast (buf); + if (!chead->isRtcp()) { + RtpHeader *head = reinterpret_cast (buf); + uint32_t ssrc = head->getSSRC(); + connection->forEachMediaStream([packet, ssrc] (const std::shared_ptr &media_stream) { + if (media_stream->isVideoSourceSSRC(ssrc) || media_stream->isVideoSinkSSRC(ssrc)) { + packet->type = VIDEO_PACKET; + } else if (media_stream->isAudioSourceSSRC(ssrc) || media_stream->isAudioSinkSSRC(ssrc)) { + packet->type = AUDIO_PACKET; + } + }); + } + if (connection->pipeline_) { connection->pipeline_->read(std::move(packet)); } From e62f826214d52f912389cd5071f1576f37e961de Mon Sep 17 00:00:00 2001 From: Pedro Rodriguez Date: Thu, 8 Sep 2022 14:26:31 +0200 Subject: [PATCH 2/2] raise starting bwe --- erizo/src/erizo/rtp/SenderBandwidthEstimationHandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erizo/src/erizo/rtp/SenderBandwidthEstimationHandler.h b/erizo/src/erizo/rtp/SenderBandwidthEstimationHandler.h index 98575a258..18be06717 100644 --- a/erizo/src/erizo/rtp/SenderBandwidthEstimationHandler.h +++ b/erizo/src/erizo/rtp/SenderBandwidthEstimationHandler.h @@ -32,7 +32,7 @@ class SenderBandwidthEstimationHandler : public Handler, public: static const uint16_t kMaxSrListSize = 20; - static const uint32_t kStartSendBitrate = 300000; + static const uint32_t kStartSendBitrate = 1000000; static const uint32_t kMinSendBitrate = 30000; static const uint32_t kMinSendBitrateLimit = 1000000; static const uint32_t kMaxSendBitrate = 1000000000;