Skip to content

Commit ed446e4

Browse files
author
Erik Språng
committed
Add OnFrameDropped override to LocalRecorder::Display
1 parent 02d52a1 commit ed446e4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

base/cvd/cuttlefish/host/frontend/webrtc/libdevice/local_recorder.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include <atomic>
2020
#include <chrono>
21+
#include <cstdint>
2122
#include <list>
2223
#include <mutex>
2324
#include <thread>
@@ -27,14 +28,12 @@
2728
#include "absl/log/log.h"
2829

2930
#include <api/media_stream_interface.h>
30-
#include <api/rtp_parameters.h>
31-
#include <api/task_queue/default_task_queue_factory.h>
32-
#include <api/video/builtin_video_bitrate_allocator_factory.h>
31+
#include <api/video/encoded_image.h>
32+
#include <api/video/video_frame.h>
3333
#include <api/video_codecs/builtin_video_encoder_factory.h>
3434
#include <api/video_codecs/video_encoder.h>
3535
#include <mkvmuxer/mkvmuxer.h>
3636
#include <mkvmuxer/mkvwriter.h>
37-
#include <system_wrappers/include/clock.h>
3837

3938
namespace cuttlefish {
4039
namespace webrtc_streaming {
@@ -63,6 +62,9 @@ class LocalRecorder::Display
6362
virtual webrtc::EncodedImageCallback::Result OnEncodedImage(
6463
const webrtc::EncodedImage& encoded_image,
6564
const webrtc::CodecSpecificInfo* codec_specific_info) override;
65+
// TODO(sprang): Mark as override when the libwebrtc dependency is bumped.
66+
virtual void OnFrameDropped(uint32_t rtp_timestamp, int spatial_id,
67+
bool is_end_of_temporal_unit) {}
6668

6769
LocalRecorder::Impl& impl_;
6870
std::shared_ptr<webrtc::VideoTrackSourceInterface> source_;

0 commit comments

Comments
 (0)