-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tcp depayloader #161
Add tcp depayloader #161
Conversation
b579d3c
to
f250ab7
Compare
f250ab7
to
07093c9
Compare
6777b6c
to
b321cf0
Compare
7844264
to
ccfa6d1
Compare
get_complete_packets(packets_binary, state.rtp_channel_id) | ||
|
||
packets_buffers = | ||
Enum.map(complete_packets_binaries, &%Buffer{payload: &1, metadata: metadata}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have a guarantee that the metadata
is rewritten properly? What if the buffer's payload is put in unprocessed_data
, and the metadata is attached to the data corresponding to the previous input buffer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the only metadata that is in buffers coming from TCP Source are tcp_source_address
, tcp_source_port
and arrival_ts
. The first two don't change and the third one can be interpreted as in when the packet has fully arrived, which then works in this case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, it makes sense, however, I am slightly worried that in case we were about to extend the metadata
sent from the TCP Source
, we would need to remember that the metadata is translated by one buffer when passed through the depayloader
Co-authored-by: Łukasz Kita <[email protected]>
Co-authored-by: Łukasz Kita <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left one comment unresolved where I have described my doubts, but generally speaking - LGTM ;)
membraneframework/membrane_core#697
Add an element for depayloading a RTP stream received through TCP and encapsulated according to RFC 7826 Section 14.