Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Issue 2688473004: RtpPacketReceiver base class and OnRtpPacket, with a pre-parsed RTP packet. (Closed)

Created:
3 years, 10 months ago by nisse-webrtc
Modified:
3 years, 6 months ago
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), Andrew MacDonald, zhengzhonghou_agora.io, henrika_webrtc, stefan-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

RtpPacketReceiver base class and OnRtpPacket, with a pre-parsed RTP packet. This is a request for comments. I think it's best to do separate cls to convert different types of receive streams to the new OnRtpPacket style, with pre-parsed RTP header. And after that's landed, introduce a base class for all receive streams, and refactor Call. I think it should be reasonable straight forward to arrange call to have a *single* multimap of ssrc for all types of receive streams. (Except that I'm not sure how that fits with the flexfec_receive_ssrcs_media_.equal_range(ssrc) used in the lookup of flexfec streams). The receive stream base class should have a rtp_config member matching the current ReceiveRtpConfig, and a media_type/transport_id to do correct demuxing in case that audio and video use different transports and colliding ssrcs. BUG=None

Patch Set 1 #

Total comments: 15

Patch Set 2 : Rename OnRTPPacket --> OnRtpPacket. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -255 lines) Patch
M webrtc/audio/audio_receive_stream.h View 4 chunks +7 lines, -4 lines 0 comments Download
M webrtc/audio/audio_receive_stream.cc View 1 2 chunks +7 lines, -4 lines 0 comments Download
M webrtc/audio/audio_receive_stream_unittest.cc View 1 chunk +13 lines, -5 lines 0 comments Download
M webrtc/call/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/call/call.cc View 16 chunks +56 lines, -151 lines 0 comments Download
M webrtc/call/flexfec_receive_stream_impl.h View 4 chunks +8 lines, -2 lines 0 comments Download
M webrtc/call/flexfec_receive_stream_impl.cc View 3 chunks +7 lines, -1 line 0 comments Download
M webrtc/call/flexfec_receive_stream_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A webrtc/call/rtp_packet_receiver.h View 1 chunk +49 lines, -0 lines 1 comment Download
A webrtc/call/rtp_packet_receiver.cc View 1 chunk +28 lines, -0 lines 0 comments Download
M webrtc/test/mock_voe_channel_proxy.h View 1 2 chunks +2 lines, -3 lines 1 comment Download
M webrtc/video/rtp_stream_receiver.h View 5 chunks +7 lines, -3 lines 0 comments Download
M webrtc/video/rtp_stream_receiver.cc View 3 chunks +51 lines, -53 lines 0 comments Download
M webrtc/video/video_receive_stream.h View 4 chunks +6 lines, -3 lines 0 comments Download
M webrtc/video/video_receive_stream.cc View 1 1 chunk +6 lines, -4 lines 0 comments Download
M webrtc/voice_engine/channel.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 3 chunks +6 lines, -10 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.cc View 1 1 chunk +2 lines, -4 lines 0 comments Download
M webrtc/voice_engine/voe_network_impl.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
nisse-webrtc
This is the direction in which I'd like to move the RTP receive code. What ...
3 years, 10 months ago (2017-02-09 08:49:10 UTC) #2
stefan-webrtc
https://codereview.webrtc.org/2688473004/diff/1/webrtc/audio/audio_receive_stream.cc File webrtc/audio/audio_receive_stream.cc (right): https://codereview.webrtc.org/2688473004/diff/1/webrtc/audio/audio_receive_stream.cc#newcode315 webrtc/audio/audio_receive_stream.cc:315: return channel_proxy_->OnRTPPacket(packet); OnRtpPacket https://codereview.webrtc.org/2688473004/diff/1/webrtc/video/rtp_stream_receiver.cc File webrtc/video/rtp_stream_receiver.cc (right): https://codereview.webrtc.org/2688473004/diff/1/webrtc/video/rtp_stream_receiver.cc#newcode281 webrtc/video/rtp_stream_receiver.cc:281: ...
3 years, 10 months ago (2017-02-09 13:40:06 UTC) #3
stefan-webrtc
3 years, 10 months ago (2017-02-09 13:40:09 UTC) #4
brandtr
Initial comments. https://codereview.webrtc.org/2688473004/diff/1/webrtc/call/call.cc File webrtc/call/call.cc (right): https://codereview.webrtc.org/2688473004/diff/1/webrtc/call/call.cc#newcode1115 webrtc/call/call.cc:1115: pass_to_flexfec = true; maybe_pass_to_flexfec https://codereview.webrtc.org/2688473004/diff/1/webrtc/call/call.cc#newcode1120 webrtc/call/call.cc:1120: // ...
3 years, 10 months ago (2017-02-09 14:51:55 UTC) #5
nisse-webrtc
https://codereview.webrtc.org/2688473004/diff/1/webrtc/call/flexfec_receive_stream_impl.h File webrtc/call/flexfec_receive_stream_impl.h (right): https://codereview.webrtc.org/2688473004/diff/1/webrtc/call/flexfec_receive_stream_impl.h#newcode54 webrtc/call/flexfec_receive_stream_impl.h:54: const RtpConfig rtp_config_; On 2017/02/09 14:51:55, brandtr wrote: > ...
3 years, 10 months ago (2017-02-09 16:20:48 UTC) #6
Taylor Brandstetter
https://codereview.webrtc.org/2688473004/diff/1/webrtc/audio/audio_receive_stream.cc File webrtc/audio/audio_receive_stream.cc (right): https://codereview.webrtc.org/2688473004/diff/1/webrtc/audio/audio_receive_stream.cc#newcode310 webrtc/audio/audio_receive_stream.cc:310: bool AudioReceiveStream::OnRtpPacket(const RtpPacketReceived& packet) { Personally, I prefer the ...
3 years, 10 months ago (2017-02-09 20:20:11 UTC) #7
nisse-webrtc
See also https://codereview.webrtc.org/2681673004/, extracted from this cl. https://codereview.webrtc.org/2688473004/diff/1/webrtc/audio/audio_receive_stream.cc File webrtc/audio/audio_receive_stream.cc (right): https://codereview.webrtc.org/2688473004/diff/1/webrtc/audio/audio_receive_stream.cc#newcode310 webrtc/audio/audio_receive_stream.cc:310: bool AudioReceiveStream::OnRtpPacket(const ...
3 years, 10 months ago (2017-02-10 08:09:24 UTC) #8
the sun
I need to know a bit more about where this is going. E.g. why are ...
3 years, 10 months ago (2017-02-10 12:37:26 UTC) #9
the sun
nits https://codereview.webrtc.org/2688473004/diff/20001/webrtc/call/rtp_packet_receiver.h File webrtc/call/rtp_packet_receiver.h (right): https://codereview.webrtc.org/2688473004/diff/20001/webrtc/call/rtp_packet_receiver.h#newcode25 webrtc/call/rtp_packet_receiver.h:25: RtpConfig(const std::vector<RtpExtension>& extensions, nit: move whole impl of ...
3 years, 10 months ago (2017-02-10 12:37:45 UTC) #10
nisse-webrtc
3 years, 6 months ago (2017-05-31 13:07:09 UTC) #11
Closing this, it's superseded by the RtpDemuxer changes introduced recently.

Powered by Google App Engine
This is Rietveld 408576698