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

Unified Diff: webrtc/video_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 | « webrtc/video_receive_stream.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video_send_stream.h
diff --git a/webrtc/video_send_stream.h b/webrtc/video_send_stream.h
index 540f5be46232b82537ea6ed857f27c286dccf084..bc8773e70910030afa8cfb848cac749f0d525b61 100644
--- a/webrtc/video_send_stream.h
+++ b/webrtc/video_send_stream.h
@@ -18,6 +18,7 @@
#include "webrtc/config.h"
#include "webrtc/frame_callback.h"
#include "webrtc/stream.h"
+#include "webrtc/transport.h"
#include "webrtc/video_renderer.h"
namespace webrtc {
@@ -64,6 +65,10 @@ class VideoSendStream : public SendStream {
};
struct Config {
+ Config() = delete;
+ explicit Config(newapi::Transport* send_transport)
+ : send_transport(send_transport) {}
+
std::string ToString() const;
struct EncoderSettings {
@@ -110,6 +115,9 @@ class VideoSendStream : public SendStream {
std::string c_name;
} rtp;
+ // Transport for outgoing packets.
+ newapi::Transport* send_transport = nullptr;
+
// Called for each I420 frame before encoding the frame. Can be used for
// effects, snapshots etc. 'nullptr' disables the callback.
I420FrameCallback* pre_encode_callback = nullptr;
« no previous file with comments | « webrtc/video_receive_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698