Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2724)

Side by Side Diff: webrtc/media/engine/webrtcvideoengine2.h

Issue 2863123002: Wire up BWE stats through WebrtcSession so that they are filled in both for audio and video calls. (Closed)
Patch Set: Comments addressed." Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/media/base/mediachannel.h ('k') | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 bool enable, 153 bool enable,
154 const VideoOptions* options, 154 const VideoOptions* options,
155 rtc::VideoSourceInterface<webrtc::VideoFrame>* source) override; 155 rtc::VideoSourceInterface<webrtc::VideoFrame>* source) override;
156 bool AddSendStream(const StreamParams& sp) override; 156 bool AddSendStream(const StreamParams& sp) override;
157 bool RemoveSendStream(uint32_t ssrc) override; 157 bool RemoveSendStream(uint32_t ssrc) override;
158 bool AddRecvStream(const StreamParams& sp) override; 158 bool AddRecvStream(const StreamParams& sp) override;
159 bool AddRecvStream(const StreamParams& sp, bool default_stream); 159 bool AddRecvStream(const StreamParams& sp, bool default_stream);
160 bool RemoveRecvStream(uint32_t ssrc) override; 160 bool RemoveRecvStream(uint32_t ssrc) override;
161 bool SetSink(uint32_t ssrc, 161 bool SetSink(uint32_t ssrc,
162 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) override; 162 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) override;
163 void FillBitrateInfo(BandwidthEstimationInfo* bwe_info) override;
163 bool GetStats(VideoMediaInfo* info) override; 164 bool GetStats(VideoMediaInfo* info) override;
164 165
165 void OnPacketReceived(rtc::CopyOnWriteBuffer* packet, 166 void OnPacketReceived(rtc::CopyOnWriteBuffer* packet,
166 const rtc::PacketTime& packet_time) override; 167 const rtc::PacketTime& packet_time) override;
167 void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet, 168 void OnRtcpReceived(rtc::CopyOnWriteBuffer* packet,
168 const rtc::PacketTime& packet_time) override; 169 const rtc::PacketTime& packet_time) override;
169 void OnReadyToSend(bool ready) override; 170 void OnReadyToSend(bool ready) override;
170 void OnNetworkRouteChanged(const std::string& transport_name, 171 void OnNetworkRouteChanged(const std::string& transport_name,
171 const rtc::NetworkRoute& network_route) override; 172 const rtc::NetworkRoute& network_route) override;
172 void OnTransportOverheadChanged(int transport_overhead_per_packet) override; 173 void OnTransportOverheadChanged(int transport_overhead_per_packet) override;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 void RemoveSink(rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) override; 278 void RemoveSink(rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) override;
278 279
279 bool SetVideoSend(bool mute, 280 bool SetVideoSend(bool mute,
280 const VideoOptions* options, 281 const VideoOptions* options,
281 rtc::VideoSourceInterface<webrtc::VideoFrame>* source); 282 rtc::VideoSourceInterface<webrtc::VideoFrame>* source);
282 283
283 void SetSend(bool send); 284 void SetSend(bool send);
284 285
285 const std::vector<uint32_t>& GetSsrcs() const; 286 const std::vector<uint32_t>& GetSsrcs() const;
286 VideoSenderInfo GetVideoSenderInfo(bool log_stats); 287 VideoSenderInfo GetVideoSenderInfo(bool log_stats);
287 void FillBandwidthEstimationInfo(BandwidthEstimationInfo* bwe_info); 288 void FillBitrateInfo(BandwidthEstimationInfo* bwe_info);
288 289
289 private: 290 private:
290 // Parameters needed to reconstruct the underlying stream. 291 // Parameters needed to reconstruct the underlying stream.
291 // webrtc::VideoSendStream doesn't support setting a lot of options on the 292 // webrtc::VideoSendStream doesn't support setting a lot of options on the
292 // fly, so when those need to be changed we tear down and reconstruct with 293 // fly, so when those need to be changed we tear down and reconstruct with
293 // similar parameters depending on which options changed etc. 294 // similar parameters depending on which options changed etc.
294 struct VideoSendStreamParameters { 295 struct VideoSendStreamParameters {
295 VideoSendStreamParameters( 296 VideoSendStreamParameters(
296 webrtc::VideoSendStream::Config config, 297 webrtc::VideoSendStream::Config config,
297 const VideoOptions& options, 298 const VideoOptions& options,
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 // send_params/recv_params, rtp_extensions, options, etc. 519 // send_params/recv_params, rtp_extensions, options, etc.
519 VideoSendParameters send_params_; 520 VideoSendParameters send_params_;
520 VideoOptions default_send_options_; 521 VideoOptions default_send_options_;
521 VideoRecvParameters recv_params_; 522 VideoRecvParameters recv_params_;
522 int64_t last_stats_log_ms_; 523 int64_t last_stats_log_ms_;
523 }; 524 };
524 525
525 } // namespace cricket 526 } // namespace cricket
526 527
527 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 528 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/mediachannel.h ('k') | webrtc/media/engine/webrtcvideoengine2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698