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

Side by Side Diff: talk/app/webrtc/rtpsender.h

Issue 1655793003: Make cricket::VideoCapturer implement VideoSourceInterface (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Adding VideoSourceInterface and letting cricket::VideoCapturer implement it Created 4 years, 10 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 * libjingle 2 * libjingle
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 private: 178 private:
179 bool can_send_track() const { return track_ && ssrc_; } 179 bool can_send_track() const { return track_ && ssrc_; }
180 // Helper function to construct options for 180 // Helper function to construct options for
181 // VideoProviderInterface::SetVideoSend. 181 // VideoProviderInterface::SetVideoSend.
182 void SetVideoSend(); 182 void SetVideoSend();
183 183
184 std::string id_; 184 std::string id_;
185 std::string stream_id_; 185 std::string stream_id_;
186 VideoProviderInterface* provider_; 186 VideoProviderInterface* provider_;
187 rtc::scoped_refptr<VideoTrackInterface> track_; 187 rtc::scoped_refptr<VideoTrackInterface> track_;
188 // The sink registered with the current track_, if any.
189 rtc::VideoSinkInterface<cricket::VideoFrame>* sink_;
188 uint32_t ssrc_ = 0; 190 uint32_t ssrc_ = 0;
189 bool cached_track_enabled_ = false; 191 bool cached_track_enabled_ = false;
190 bool stopped_ = false; 192 bool stopped_ = false;
191 }; 193 };
192 194
193 } // namespace webrtc 195 } // namespace webrtc
194 196
195 #endif // TALK_APP_WEBRTC_RTPSENDER_H_ 197 #endif // TALK_APP_WEBRTC_RTPSENDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698