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

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

Issue 1803063004: Reset the BWE when the network changes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Updated comments Created 4 years, 9 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
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
11 #ifndef WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 11 #ifndef WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
12 #define WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 12 #define WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
13 13
14 #include <map> 14 #include <map>
15 #include <memory> 15 #include <memory>
16 #include <set> 16 #include <set>
17 #include <string> 17 #include <string>
18 #include <vector> 18 #include <vector>
19 19
20 #include "webrtc/base/asyncinvoker.h" 20 #include "webrtc/base/asyncinvoker.h"
21 #include "webrtc/base/criticalsection.h" 21 #include "webrtc/base/criticalsection.h"
22 #include "webrtc/base/networkroute.h"
22 #include "webrtc/base/thread_annotations.h" 23 #include "webrtc/base/thread_annotations.h"
23 #include "webrtc/base/thread_checker.h" 24 #include "webrtc/base/thread_checker.h"
24 #include "webrtc/media/base/videosinkinterface.h" 25 #include "webrtc/media/base/videosinkinterface.h"
25 #include "webrtc/media/base/videosourceinterface.h" 26 #include "webrtc/media/base/videosourceinterface.h"
26 #include "webrtc/call.h" 27 #include "webrtc/call.h"
27 #include "webrtc/media/base/mediaengine.h" 28 #include "webrtc/media/base/mediaengine.h"
28 #include "webrtc/media/engine/webrtcvideochannelfactory.h" 29 #include "webrtc/media/engine/webrtcvideochannelfactory.h"
29 #include "webrtc/media/engine/webrtcvideodecoderfactory.h" 30 #include "webrtc/media/engine/webrtcvideodecoderfactory.h"
30 #include "webrtc/media/engine/webrtcvideoencoderfactory.h" 31 #include "webrtc/media/engine/webrtcvideoencoderfactory.h"
31 #include "webrtc/transport.h" 32 #include "webrtc/transport.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 bool SetSink(uint32_t ssrc, 161 bool SetSink(uint32_t ssrc,
161 rtc::VideoSinkInterface<VideoFrame>* sink) override; 162 rtc::VideoSinkInterface<VideoFrame>* sink) override;
162 bool GetStats(VideoMediaInfo* info) override; 163 bool GetStats(VideoMediaInfo* info) override;
163 bool SetCapturer(uint32_t ssrc, VideoCapturer* capturer) override; 164 bool SetCapturer(uint32_t ssrc, VideoCapturer* capturer) 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;
171 void OnNetworkRouteChanged(const std::string& transport_name,
172 const NetworkRoute& network_route) override;
170 void SetInterface(NetworkInterface* iface) override; 173 void SetInterface(NetworkInterface* iface) override;
171 174
172 // Implemented for VideoMediaChannelTest. 175 // Implemented for VideoMediaChannelTest.
173 bool sending() const { return sending_; } 176 bool sending() const { return sending_; }
174 uint32_t GetDefaultSendChannelSsrc() { return default_send_ssrc_; } 177 uint32_t GetDefaultSendChannelSsrc() { return default_send_ssrc_; }
175 178
176 private: 179 private:
177 class WebRtcVideoReceiveStream; 180 class WebRtcVideoReceiveStream;
178 struct VideoCodecSettings { 181 struct VideoCodecSettings {
179 VideoCodecSettings(); 182 VideoCodecSettings();
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 // TODO(deadbeef): Don't duplicate information between 529 // TODO(deadbeef): Don't duplicate information between
527 // send_params/recv_params, rtp_extensions, options, etc. 530 // send_params/recv_params, rtp_extensions, options, etc.
528 VideoSendParameters send_params_; 531 VideoSendParameters send_params_;
529 VideoOptions default_send_options_; 532 VideoOptions default_send_options_;
530 VideoRecvParameters recv_params_; 533 VideoRecvParameters recv_params_;
531 }; 534 };
532 535
533 } // namespace cricket 536 } // namespace cricket
534 537
535 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_ 538 #endif // WEBRTC_MEDIA_ENGINE_WEBRTCVIDEOENGINE2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698