Remove passing rtp packet metadata through webrtc as array of bytes

Instead metadata is now passed via refcounted class.

Bug: b/178094662
Change-Id: I9591fb12990282b60310ca01aea2a7b73d92487a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/204060
Reviewed-by: Christoffer Rodbro <crodbro@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33134}
This commit is contained in:
Danil Chapovalov
2021-01-27 18:05:04 +01:00
committed by Commit Bot
parent a1ca64c5ed
commit eee0e9e9d4
6 changed files with 3 additions and 35 deletions

View File

@ -14,8 +14,6 @@
#include <stddef.h>
#include <stdint.h>
#include <vector>
#include "api/ref_counted_base.h"
#include "api/scoped_refptr.h"
@ -31,8 +29,6 @@ struct PacketOptions {
// A 16 bits positive id. Negative ids are invalid and should be interpreted
// as packet_id not being set.
int packet_id = -1;
// Deprecated: use `additional_data` instead of `application_data`.
std::vector<uint8_t> application_data;
// Additional data bound to the RTP packet for use in application code,
// outside of WebRTC.
rtc::scoped_refptr<rtc::RefCountedBase> additional_data;