Skip to content
Snippets Groups Projects
  • Ben Ford's avatar
    138e0eff
    Add data buffer API to store packets. · 138e0eff
    Ben Ford authored
    Adds a data buffer with a configurable size that can store different
    kinds of packets (like RTP packets for retransmission). Given a number
    it will store a data packet at that position relative to the others.
    Given a number it will retrieve the given data packet if it is present.
    This is purposely a storage of arbitrary things so it can be used not
    just for RTP packets but also Asterisk frames in the future if needed.
    The API does not internally use a lock, so it will be up to the user of
    the API to properly protect the data buffer.
    
    For more information, refer to the wiki page:
    https://wiki.asterisk.org/wiki/display/AST/WebRTC+User+Experience+Improvements
    
    Change-Id: Iff13c5d4795d52356959fe2a57360cd57dfade07
    138e0eff
    History
    Add data buffer API to store packets.
    Ben Ford authored
    Adds a data buffer with a configurable size that can store different
    kinds of packets (like RTP packets for retransmission). Given a number
    it will store a data packet at that position relative to the others.
    Given a number it will retrieve the given data packet if it is present.
    This is purposely a storage of arbitrary things so it can be used not
    just for RTP packets but also Asterisk frames in the future if needed.
    The API does not internally use a lock, so it will be up to the user of
    the API to properly protect the data buffer.
    
    For more information, refer to the wiki page:
    https://wiki.asterisk.org/wiki/display/AST/WebRTC+User+Experience+Improvements
    
    Change-Id: Iff13c5d4795d52356959fe2a57360cd57dfade07