xref: /aosp_15_r20/external/webrtc/call/video_send_stream.h (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1*d9f75844SAndroid Build Coastguard Worker /*
2*d9f75844SAndroid Build Coastguard Worker  *  Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3*d9f75844SAndroid Build Coastguard Worker  *
4*d9f75844SAndroid Build Coastguard Worker  *  Use of this source code is governed by a BSD-style license
5*d9f75844SAndroid Build Coastguard Worker  *  that can be found in the LICENSE file in the root of the source
6*d9f75844SAndroid Build Coastguard Worker  *  tree. An additional intellectual property rights grant can be found
7*d9f75844SAndroid Build Coastguard Worker  *  in the file PATENTS.  All contributing project authors may
8*d9f75844SAndroid Build Coastguard Worker  *  be found in the AUTHORS file in the root of the source tree.
9*d9f75844SAndroid Build Coastguard Worker  */
10*d9f75844SAndroid Build Coastguard Worker 
11*d9f75844SAndroid Build Coastguard Worker #ifndef CALL_VIDEO_SEND_STREAM_H_
12*d9f75844SAndroid Build Coastguard Worker #define CALL_VIDEO_SEND_STREAM_H_
13*d9f75844SAndroid Build Coastguard Worker 
14*d9f75844SAndroid Build Coastguard Worker #include <stdint.h>
15*d9f75844SAndroid Build Coastguard Worker 
16*d9f75844SAndroid Build Coastguard Worker #include <map>
17*d9f75844SAndroid Build Coastguard Worker #include <string>
18*d9f75844SAndroid Build Coastguard Worker #include <vector>
19*d9f75844SAndroid Build Coastguard Worker 
20*d9f75844SAndroid Build Coastguard Worker #include "absl/types/optional.h"
21*d9f75844SAndroid Build Coastguard Worker #include "api/adaptation/resource.h"
22*d9f75844SAndroid Build Coastguard Worker #include "api/call/transport.h"
23*d9f75844SAndroid Build Coastguard Worker #include "api/crypto/crypto_options.h"
24*d9f75844SAndroid Build Coastguard Worker #include "api/frame_transformer_interface.h"
25*d9f75844SAndroid Build Coastguard Worker #include "api/rtp_parameters.h"
26*d9f75844SAndroid Build Coastguard Worker #include "api/rtp_sender_interface.h"
27*d9f75844SAndroid Build Coastguard Worker #include "api/scoped_refptr.h"
28*d9f75844SAndroid Build Coastguard Worker #include "api/video/video_content_type.h"
29*d9f75844SAndroid Build Coastguard Worker #include "api/video/video_frame.h"
30*d9f75844SAndroid Build Coastguard Worker #include "api/video/video_sink_interface.h"
31*d9f75844SAndroid Build Coastguard Worker #include "api/video/video_source_interface.h"
32*d9f75844SAndroid Build Coastguard Worker #include "api/video/video_stream_encoder_settings.h"
33*d9f75844SAndroid Build Coastguard Worker #include "call/rtp_config.h"
34*d9f75844SAndroid Build Coastguard Worker #include "common_video/frame_counts.h"
35*d9f75844SAndroid Build Coastguard Worker #include "common_video/include/quality_limitation_reason.h"
36*d9f75844SAndroid Build Coastguard Worker #include "modules/rtp_rtcp/include/report_block_data.h"
37*d9f75844SAndroid Build Coastguard Worker #include "modules/rtp_rtcp/include/rtcp_statistics.h"
38*d9f75844SAndroid Build Coastguard Worker #include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
39*d9f75844SAndroid Build Coastguard Worker #include "video/config/video_encoder_config.h"
40*d9f75844SAndroid Build Coastguard Worker 
41*d9f75844SAndroid Build Coastguard Worker namespace webrtc {
42*d9f75844SAndroid Build Coastguard Worker 
43*d9f75844SAndroid Build Coastguard Worker class FrameEncryptorInterface;
44*d9f75844SAndroid Build Coastguard Worker 
45*d9f75844SAndroid Build Coastguard Worker class VideoSendStream {
46*d9f75844SAndroid Build Coastguard Worker  public:
47*d9f75844SAndroid Build Coastguard Worker   // Multiple StreamStats objects are present if simulcast is used (multiple
48*d9f75844SAndroid Build Coastguard Worker   // kMedia streams) or if RTX or FlexFEC is negotiated. Multiple SVC layers, on
49*d9f75844SAndroid Build Coastguard Worker   // the other hand, does not cause additional StreamStats.
50*d9f75844SAndroid Build Coastguard Worker   struct StreamStats {
51*d9f75844SAndroid Build Coastguard Worker     enum class StreamType {
52*d9f75844SAndroid Build Coastguard Worker       // A media stream is an RTP stream for audio or video. Retransmissions and
53*d9f75844SAndroid Build Coastguard Worker       // FEC is either sent over the same SSRC or negotiated to be sent over
54*d9f75844SAndroid Build Coastguard Worker       // separate SSRCs, in which case separate StreamStats objects exist with
55*d9f75844SAndroid Build Coastguard Worker       // references to this media stream's SSRC.
56*d9f75844SAndroid Build Coastguard Worker       kMedia,
57*d9f75844SAndroid Build Coastguard Worker       // RTX streams are streams dedicated to retransmissions. They have a
58*d9f75844SAndroid Build Coastguard Worker       // dependency on a single kMedia stream: `referenced_media_ssrc`.
59*d9f75844SAndroid Build Coastguard Worker       kRtx,
60*d9f75844SAndroid Build Coastguard Worker       // FlexFEC streams are streams dedicated to FlexFEC. They have a
61*d9f75844SAndroid Build Coastguard Worker       // dependency on a single kMedia stream: `referenced_media_ssrc`.
62*d9f75844SAndroid Build Coastguard Worker       kFlexfec,
63*d9f75844SAndroid Build Coastguard Worker     };
64*d9f75844SAndroid Build Coastguard Worker 
65*d9f75844SAndroid Build Coastguard Worker     StreamStats();
66*d9f75844SAndroid Build Coastguard Worker     ~StreamStats();
67*d9f75844SAndroid Build Coastguard Worker 
68*d9f75844SAndroid Build Coastguard Worker     std::string ToString() const;
69*d9f75844SAndroid Build Coastguard Worker 
70*d9f75844SAndroid Build Coastguard Worker     StreamType type = StreamType::kMedia;
71*d9f75844SAndroid Build Coastguard Worker     // If `type` is kRtx or kFlexfec this value is present. The referenced SSRC
72*d9f75844SAndroid Build Coastguard Worker     // is the kMedia stream that this stream is performing retransmissions or
73*d9f75844SAndroid Build Coastguard Worker     // FEC for. If `type` is kMedia, this value is null.
74*d9f75844SAndroid Build Coastguard Worker     absl::optional<uint32_t> referenced_media_ssrc;
75*d9f75844SAndroid Build Coastguard Worker     FrameCounts frame_counts;
76*d9f75844SAndroid Build Coastguard Worker     int width = 0;
77*d9f75844SAndroid Build Coastguard Worker     int height = 0;
78*d9f75844SAndroid Build Coastguard Worker     // TODO(holmer): Move bitrate_bps out to the webrtc::Call layer.
79*d9f75844SAndroid Build Coastguard Worker     int total_bitrate_bps = 0;
80*d9f75844SAndroid Build Coastguard Worker     int retransmit_bitrate_bps = 0;
81*d9f75844SAndroid Build Coastguard Worker     // `avg_delay_ms` and `max_delay_ms` are only used in tests. Consider
82*d9f75844SAndroid Build Coastguard Worker     // deleting.
83*d9f75844SAndroid Build Coastguard Worker     int avg_delay_ms = 0;
84*d9f75844SAndroid Build Coastguard Worker     int max_delay_ms = 0;
85*d9f75844SAndroid Build Coastguard Worker     StreamDataCounters rtp_stats;
86*d9f75844SAndroid Build Coastguard Worker     RtcpPacketTypeCounter rtcp_packet_type_counts;
87*d9f75844SAndroid Build Coastguard Worker     // A snapshot of the most recent Report Block with additional data of
88*d9f75844SAndroid Build Coastguard Worker     // interest to statistics. Used to implement RTCRemoteInboundRtpStreamStats.
89*d9f75844SAndroid Build Coastguard Worker     absl::optional<ReportBlockData> report_block_data;
90*d9f75844SAndroid Build Coastguard Worker     double encode_frame_rate = 0.0;
91*d9f75844SAndroid Build Coastguard Worker     int frames_encoded = 0;
92*d9f75844SAndroid Build Coastguard Worker     absl::optional<uint64_t> qp_sum;
93*d9f75844SAndroid Build Coastguard Worker     uint64_t total_encode_time_ms = 0;
94*d9f75844SAndroid Build Coastguard Worker     uint64_t total_encoded_bytes_target = 0;
95*d9f75844SAndroid Build Coastguard Worker     uint32_t huge_frames_sent = 0;
96*d9f75844SAndroid Build Coastguard Worker   };
97*d9f75844SAndroid Build Coastguard Worker 
98*d9f75844SAndroid Build Coastguard Worker   struct Stats {
99*d9f75844SAndroid Build Coastguard Worker     Stats();
100*d9f75844SAndroid Build Coastguard Worker     ~Stats();
101*d9f75844SAndroid Build Coastguard Worker     std::string ToString(int64_t time_ms) const;
102*d9f75844SAndroid Build Coastguard Worker     std::string encoder_implementation_name = "unknown";
103*d9f75844SAndroid Build Coastguard Worker     double input_frame_rate = 0;
104*d9f75844SAndroid Build Coastguard Worker     int encode_frame_rate = 0;
105*d9f75844SAndroid Build Coastguard Worker     int avg_encode_time_ms = 0;
106*d9f75844SAndroid Build Coastguard Worker     int encode_usage_percent = 0;
107*d9f75844SAndroid Build Coastguard Worker     uint32_t frames_encoded = 0;
108*d9f75844SAndroid Build Coastguard Worker     // https://w3c.github.io/webrtc-stats/#dom-rtcoutboundrtpstreamstats-totalencodetime
109*d9f75844SAndroid Build Coastguard Worker     uint64_t total_encode_time_ms = 0;
110*d9f75844SAndroid Build Coastguard Worker     // https://w3c.github.io/webrtc-stats/#dom-rtcoutboundrtpstreamstats-totalencodedbytestarget
111*d9f75844SAndroid Build Coastguard Worker     uint64_t total_encoded_bytes_target = 0;
112*d9f75844SAndroid Build Coastguard Worker     uint32_t frames = 0;
113*d9f75844SAndroid Build Coastguard Worker     uint32_t frames_dropped_by_capturer = 0;
114*d9f75844SAndroid Build Coastguard Worker     uint32_t frames_dropped_by_encoder_queue = 0;
115*d9f75844SAndroid Build Coastguard Worker     uint32_t frames_dropped_by_rate_limiter = 0;
116*d9f75844SAndroid Build Coastguard Worker     uint32_t frames_dropped_by_congestion_window = 0;
117*d9f75844SAndroid Build Coastguard Worker     uint32_t frames_dropped_by_encoder = 0;
118*d9f75844SAndroid Build Coastguard Worker     // Bitrate the encoder is currently configured to use due to bandwidth
119*d9f75844SAndroid Build Coastguard Worker     // limitations.
120*d9f75844SAndroid Build Coastguard Worker     int target_media_bitrate_bps = 0;
121*d9f75844SAndroid Build Coastguard Worker     // Bitrate the encoder is actually producing.
122*d9f75844SAndroid Build Coastguard Worker     int media_bitrate_bps = 0;
123*d9f75844SAndroid Build Coastguard Worker     bool suspended = false;
124*d9f75844SAndroid Build Coastguard Worker     bool bw_limited_resolution = false;
125*d9f75844SAndroid Build Coastguard Worker     bool cpu_limited_resolution = false;
126*d9f75844SAndroid Build Coastguard Worker     bool bw_limited_framerate = false;
127*d9f75844SAndroid Build Coastguard Worker     bool cpu_limited_framerate = false;
128*d9f75844SAndroid Build Coastguard Worker     // https://w3c.github.io/webrtc-stats/#dom-rtcoutboundrtpstreamstats-qualitylimitationreason
129*d9f75844SAndroid Build Coastguard Worker     QualityLimitationReason quality_limitation_reason =
130*d9f75844SAndroid Build Coastguard Worker         QualityLimitationReason::kNone;
131*d9f75844SAndroid Build Coastguard Worker     // https://w3c.github.io/webrtc-stats/#dom-rtcoutboundrtpstreamstats-qualitylimitationdurations
132*d9f75844SAndroid Build Coastguard Worker     std::map<QualityLimitationReason, int64_t> quality_limitation_durations_ms;
133*d9f75844SAndroid Build Coastguard Worker     // https://w3c.github.io/webrtc-stats/#dom-rtcoutboundrtpstreamstats-qualitylimitationresolutionchanges
134*d9f75844SAndroid Build Coastguard Worker     uint32_t quality_limitation_resolution_changes = 0;
135*d9f75844SAndroid Build Coastguard Worker     // Total number of times resolution as been requested to be changed due to
136*d9f75844SAndroid Build Coastguard Worker     // CPU/quality adaptation.
137*d9f75844SAndroid Build Coastguard Worker     int number_of_cpu_adapt_changes = 0;
138*d9f75844SAndroid Build Coastguard Worker     int number_of_quality_adapt_changes = 0;
139*d9f75844SAndroid Build Coastguard Worker     bool has_entered_low_resolution = false;
140*d9f75844SAndroid Build Coastguard Worker     std::map<uint32_t, StreamStats> substreams;
141*d9f75844SAndroid Build Coastguard Worker     webrtc::VideoContentType content_type =
142*d9f75844SAndroid Build Coastguard Worker         webrtc::VideoContentType::UNSPECIFIED;
143*d9f75844SAndroid Build Coastguard Worker     uint32_t frames_sent = 0;
144*d9f75844SAndroid Build Coastguard Worker     uint32_t huge_frames_sent = 0;
145*d9f75844SAndroid Build Coastguard Worker     absl::optional<bool> power_efficient_encoder;
146*d9f75844SAndroid Build Coastguard Worker   };
147*d9f75844SAndroid Build Coastguard Worker 
148*d9f75844SAndroid Build Coastguard Worker   struct Config {
149*d9f75844SAndroid Build Coastguard Worker    public:
150*d9f75844SAndroid Build Coastguard Worker     Config() = delete;
151*d9f75844SAndroid Build Coastguard Worker     Config(Config&&);
152*d9f75844SAndroid Build Coastguard Worker     explicit Config(Transport* send_transport);
153*d9f75844SAndroid Build Coastguard Worker 
154*d9f75844SAndroid Build Coastguard Worker     Config& operator=(Config&&);
155*d9f75844SAndroid Build Coastguard Worker     Config& operator=(const Config&) = delete;
156*d9f75844SAndroid Build Coastguard Worker 
157*d9f75844SAndroid Build Coastguard Worker     ~Config();
158*d9f75844SAndroid Build Coastguard Worker 
159*d9f75844SAndroid Build Coastguard Worker     // Mostly used by tests.  Avoid creating copies if you can.
CopyConfig160*d9f75844SAndroid Build Coastguard Worker     Config Copy() const { return Config(*this); }
161*d9f75844SAndroid Build Coastguard Worker 
162*d9f75844SAndroid Build Coastguard Worker     std::string ToString() const;
163*d9f75844SAndroid Build Coastguard Worker 
164*d9f75844SAndroid Build Coastguard Worker     RtpConfig rtp;
165*d9f75844SAndroid Build Coastguard Worker 
166*d9f75844SAndroid Build Coastguard Worker     VideoStreamEncoderSettings encoder_settings;
167*d9f75844SAndroid Build Coastguard Worker 
168*d9f75844SAndroid Build Coastguard Worker     // Time interval between RTCP report for video
169*d9f75844SAndroid Build Coastguard Worker     int rtcp_report_interval_ms = 1000;
170*d9f75844SAndroid Build Coastguard Worker 
171*d9f75844SAndroid Build Coastguard Worker     // Transport for outgoing packets.
172*d9f75844SAndroid Build Coastguard Worker     Transport* send_transport = nullptr;
173*d9f75844SAndroid Build Coastguard Worker 
174*d9f75844SAndroid Build Coastguard Worker     // Expected delay needed by the renderer, i.e. the frame will be delivered
175*d9f75844SAndroid Build Coastguard Worker     // this many milliseconds, if possible, earlier than expected render time.
176*d9f75844SAndroid Build Coastguard Worker     // Only valid if `local_renderer` is set.
177*d9f75844SAndroid Build Coastguard Worker     int render_delay_ms = 0;
178*d9f75844SAndroid Build Coastguard Worker 
179*d9f75844SAndroid Build Coastguard Worker     // Target delay in milliseconds. A positive value indicates this stream is
180*d9f75844SAndroid Build Coastguard Worker     // used for streaming instead of a real-time call.
181*d9f75844SAndroid Build Coastguard Worker     int target_delay_ms = 0;
182*d9f75844SAndroid Build Coastguard Worker 
183*d9f75844SAndroid Build Coastguard Worker     // True if the stream should be suspended when the available bitrate fall
184*d9f75844SAndroid Build Coastguard Worker     // below the minimum configured bitrate. If this variable is false, the
185*d9f75844SAndroid Build Coastguard Worker     // stream may send at a rate higher than the estimated available bitrate.
186*d9f75844SAndroid Build Coastguard Worker     bool suspend_below_min_bitrate = false;
187*d9f75844SAndroid Build Coastguard Worker 
188*d9f75844SAndroid Build Coastguard Worker     // Enables periodic bandwidth probing in application-limited region.
189*d9f75844SAndroid Build Coastguard Worker     bool periodic_alr_bandwidth_probing = false;
190*d9f75844SAndroid Build Coastguard Worker 
191*d9f75844SAndroid Build Coastguard Worker     // An optional custom frame encryptor that allows the entire frame to be
192*d9f75844SAndroid Build Coastguard Worker     // encrypted in whatever way the caller chooses. This is not required by
193*d9f75844SAndroid Build Coastguard Worker     // default.
194*d9f75844SAndroid Build Coastguard Worker     rtc::scoped_refptr<webrtc::FrameEncryptorInterface> frame_encryptor;
195*d9f75844SAndroid Build Coastguard Worker 
196*d9f75844SAndroid Build Coastguard Worker     // An optional encoder selector provided by the user.
197*d9f75844SAndroid Build Coastguard Worker     // Overrides VideoEncoderFactory::GetEncoderSelector().
198*d9f75844SAndroid Build Coastguard Worker     // Owned by RtpSenderBase.
199*d9f75844SAndroid Build Coastguard Worker     VideoEncoderFactory::EncoderSelectorInterface* encoder_selector = nullptr;
200*d9f75844SAndroid Build Coastguard Worker 
201*d9f75844SAndroid Build Coastguard Worker     // Per PeerConnection cryptography options.
202*d9f75844SAndroid Build Coastguard Worker     CryptoOptions crypto_options;
203*d9f75844SAndroid Build Coastguard Worker 
204*d9f75844SAndroid Build Coastguard Worker     rtc::scoped_refptr<webrtc::FrameTransformerInterface> frame_transformer;
205*d9f75844SAndroid Build Coastguard Worker 
206*d9f75844SAndroid Build Coastguard Worker    private:
207*d9f75844SAndroid Build Coastguard Worker     // Access to the copy constructor is private to force use of the Copy()
208*d9f75844SAndroid Build Coastguard Worker     // method for those exceptional cases where we do use it.
209*d9f75844SAndroid Build Coastguard Worker     Config(const Config&);
210*d9f75844SAndroid Build Coastguard Worker   };
211*d9f75844SAndroid Build Coastguard Worker 
212*d9f75844SAndroid Build Coastguard Worker   // Updates the sending state for all simulcast layers that the video send
213*d9f75844SAndroid Build Coastguard Worker   // stream owns. This can mean updating the activity one or for multiple
214*d9f75844SAndroid Build Coastguard Worker   // layers. The ordering of active layers is the order in which the
215*d9f75844SAndroid Build Coastguard Worker   // rtp modules are stored in the VideoSendStream.
216*d9f75844SAndroid Build Coastguard Worker   // Note: This starts stream activity if it is inactive and one of the layers
217*d9f75844SAndroid Build Coastguard Worker   // is active. This stops stream activity if it is active and all layers are
218*d9f75844SAndroid Build Coastguard Worker   // inactive.
219*d9f75844SAndroid Build Coastguard Worker   // `active_layers` should have the same size as the number of configured
220*d9f75844SAndroid Build Coastguard Worker   // simulcast layers or one if only one rtp stream is used.
221*d9f75844SAndroid Build Coastguard Worker   virtual void StartPerRtpStream(std::vector<bool> active_layers) = 0;
222*d9f75844SAndroid Build Coastguard Worker 
223*d9f75844SAndroid Build Coastguard Worker   // Starts stream activity.
224*d9f75844SAndroid Build Coastguard Worker   // When a stream is active, it can receive, process and deliver packets.
225*d9f75844SAndroid Build Coastguard Worker   // Prefer to use StartPerRtpStream.
226*d9f75844SAndroid Build Coastguard Worker   virtual void Start() = 0;
227*d9f75844SAndroid Build Coastguard Worker 
228*d9f75844SAndroid Build Coastguard Worker   // Stops stream activity.
229*d9f75844SAndroid Build Coastguard Worker   // When a stream is stopped, it can't receive, process or deliver packets.
230*d9f75844SAndroid Build Coastguard Worker   virtual void Stop() = 0;
231*d9f75844SAndroid Build Coastguard Worker 
232*d9f75844SAndroid Build Coastguard Worker   // Accessor for determining if the stream is active. This is an inexpensive
233*d9f75844SAndroid Build Coastguard Worker   // call that must be made on the same thread as `Start()` and `Stop()` methods
234*d9f75844SAndroid Build Coastguard Worker   // are called on and will return `true` iff activity has been started either
235*d9f75844SAndroid Build Coastguard Worker   // via `Start()` or `StartPerRtpStream()`. If activity is either
236*d9f75844SAndroid Build Coastguard Worker   // stopped or is in the process of being stopped as a result of a call to
237*d9f75844SAndroid Build Coastguard Worker   // either `Stop()` or `StartPerRtpStream()` where all layers were
238*d9f75844SAndroid Build Coastguard Worker   // deactivated, the return value will be `false`.
239*d9f75844SAndroid Build Coastguard Worker   virtual bool started() = 0;
240*d9f75844SAndroid Build Coastguard Worker 
241*d9f75844SAndroid Build Coastguard Worker   // If the resource is overusing, the VideoSendStream will try to reduce
242*d9f75844SAndroid Build Coastguard Worker   // resolution or frame rate until no resource is overusing.
243*d9f75844SAndroid Build Coastguard Worker   // TODO(https://crbug.com/webrtc/11565): When the ResourceAdaptationProcessor
244*d9f75844SAndroid Build Coastguard Worker   // is moved to Call this method could be deleted altogether in favor of
245*d9f75844SAndroid Build Coastguard Worker   // Call-level APIs only.
246*d9f75844SAndroid Build Coastguard Worker   virtual void AddAdaptationResource(rtc::scoped_refptr<Resource> resource) = 0;
247*d9f75844SAndroid Build Coastguard Worker   virtual std::vector<rtc::scoped_refptr<Resource>>
248*d9f75844SAndroid Build Coastguard Worker   GetAdaptationResources() = 0;
249*d9f75844SAndroid Build Coastguard Worker 
250*d9f75844SAndroid Build Coastguard Worker   virtual void SetSource(
251*d9f75844SAndroid Build Coastguard Worker       rtc::VideoSourceInterface<webrtc::VideoFrame>* source,
252*d9f75844SAndroid Build Coastguard Worker       const DegradationPreference& degradation_preference) = 0;
253*d9f75844SAndroid Build Coastguard Worker 
254*d9f75844SAndroid Build Coastguard Worker   // Set which streams to send. Must have at least as many SSRCs as configured
255*d9f75844SAndroid Build Coastguard Worker   // in the config. Encoder settings are passed on to the encoder instance along
256*d9f75844SAndroid Build Coastguard Worker   // with the VideoStream settings.
257*d9f75844SAndroid Build Coastguard Worker   virtual void ReconfigureVideoEncoder(VideoEncoderConfig config) = 0;
258*d9f75844SAndroid Build Coastguard Worker 
259*d9f75844SAndroid Build Coastguard Worker   virtual void ReconfigureVideoEncoder(VideoEncoderConfig config,
260*d9f75844SAndroid Build Coastguard Worker                                        SetParametersCallback callback) = 0;
261*d9f75844SAndroid Build Coastguard Worker 
262*d9f75844SAndroid Build Coastguard Worker   virtual Stats GetStats() = 0;
263*d9f75844SAndroid Build Coastguard Worker 
264*d9f75844SAndroid Build Coastguard Worker   virtual void GenerateKeyFrame(const std::vector<std::string>& rids) = 0;
265*d9f75844SAndroid Build Coastguard Worker 
266*d9f75844SAndroid Build Coastguard Worker  protected:
~VideoSendStream()267*d9f75844SAndroid Build Coastguard Worker   virtual ~VideoSendStream() {}
268*d9f75844SAndroid Build Coastguard Worker };
269*d9f75844SAndroid Build Coastguard Worker 
270*d9f75844SAndroid Build Coastguard Worker }  // namespace webrtc
271*d9f75844SAndroid Build Coastguard Worker 
272*d9f75844SAndroid Build Coastguard Worker #endif  // CALL_VIDEO_SEND_STREAM_H_
273