Frame marking RTP header extension (PART 1: implement extension)
Bug: webrtc:7765 Change-Id: I23896d121afd6be4bce5ff4deaf736149efebcdb Reviewed-on: https://webrtc-review.googlesource.com/85200 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Stefan Holmer <stefan@webrtc.org> Reviewed-by: Sergey Silkin <ssilkin@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24695}
This commit is contained in:
@ -159,5 +159,13 @@ absl::optional<RTPVideoHeader> RtpFrameObject::GetRtpVideoHeader() const {
|
||||
return packet->video_header;
|
||||
}
|
||||
|
||||
absl::optional<FrameMarking> RtpFrameObject::GetFrameMarking() const {
|
||||
rtc::CritScope lock(&packet_buffer_->crit_);
|
||||
VCMPacket* packet = packet_buffer_->GetPacket(first_seq_num_);
|
||||
if (!packet)
|
||||
return absl::nullopt;
|
||||
return packet->video_header.frame_marking;
|
||||
}
|
||||
|
||||
} // namespace video_coding
|
||||
} // namespace webrtc
|
||||
|
@ -41,6 +41,7 @@ class RtpFrameObject : public EncodedFrame {
|
||||
int64_t RenderTime() const override;
|
||||
bool delayed_by_retransmission() const override;
|
||||
absl::optional<RTPVideoHeader> GetRtpVideoHeader() const;
|
||||
absl::optional<FrameMarking> GetFrameMarking() const;
|
||||
|
||||
private:
|
||||
rtc::scoped_refptr<PacketBuffer> packet_buffer_;
|
||||
|
Reference in New Issue
Block a user