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

Unified Diff: webrtc/audio_send_stream.h

Issue 1273363005: Add send transports to individual webrtc::Call streams. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase+comment Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « talk/media/webrtc/webrtcvoiceengine_unittest.cc ('k') | webrtc/call.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/audio_send_stream.h
diff --git a/webrtc/audio_send_stream.h b/webrtc/audio_send_stream.h
index 9ac78da06d256f76fab754d41b011b4c03f1cada..7ae6afd38ca908e18410d3cd0240ee4860b76d41 100644
--- a/webrtc/audio_send_stream.h
+++ b/webrtc/audio_send_stream.h
@@ -18,6 +18,7 @@
#include "webrtc/config.h"
#include "webrtc/modules/audio_coding/codecs/audio_encoder.h"
#include "webrtc/stream.h"
+#include "webrtc/transport.h"
#include "webrtc/typedefs.h"
namespace webrtc {
@@ -27,6 +28,10 @@ class AudioSendStream : public SendStream {
struct Stats {};
struct Config {
+ Config() = delete;
+ explicit Config(newapi::Transport* send_transport)
+ : send_transport(send_transport) {}
+
std::string ToString() const;
// Receive-stream specific RTP settings.
@@ -40,6 +45,9 @@ class AudioSendStream : public SendStream {
std::vector<RtpExtension> extensions;
} rtp;
+ // Transport for outgoing packets.
+ newapi::Transport* send_transport = nullptr;
+
rtc::scoped_ptr<AudioEncoder> encoder;
int cng_payload_type = -1; // pt, or -1 to disable Comfort Noise Generator.
int red_payload_type = -1; // pt, or -1 to disable REDundant coding.
« no previous file with comments | « talk/media/webrtc/webrtcvoiceengine_unittest.cc ('k') | webrtc/call.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698