OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
161 // details. | 161 // details. |
162 struct Rtx { | 162 struct Rtx { |
163 std::string ToString() const; | 163 std::string ToString() const; |
164 // SSRCs to use for the RTX streams. | 164 // SSRCs to use for the RTX streams. |
165 std::vector<uint32_t> ssrcs; | 165 std::vector<uint32_t> ssrcs; |
166 | 166 |
167 // Payload type to use for the RTX stream. | 167 // Payload type to use for the RTX stream. |
168 int payload_type = -1; | 168 int payload_type = -1; |
169 } rtx; | 169 } rtx; |
170 | 170 |
171 struct KeepAlive { | |
172 // If no packet has been sent for |timeout_interval_ms|, send a keep- | |
173 // alive packet. The keep-laive packet is an empty (no payload) RTP | |
åsapersson
2017/06/30 15:09:13
laive->alive
| |
174 // packet with a payload type of 20 as long as the other end has not | |
175 // negotiated the use of this value. If this value has already been | |
176 // negotiated, then some other unused static payload type from table 5 | |
177 // of RFC 3551 shall be used and set in |payload_type|. | |
178 int64_t timeout_interval_ms = -1; | |
179 uint8_t payload_type = 20; | |
180 } keep_alive; | |
181 | |
171 // RTCP CNAME, see RFC 3550. | 182 // RTCP CNAME, see RFC 3550. |
172 std::string c_name; | 183 std::string c_name; |
173 } rtp; | 184 } rtp; |
174 | 185 |
175 // Transport for outgoing packets. | 186 // Transport for outgoing packets. |
176 Transport* send_transport = nullptr; | 187 Transport* send_transport = nullptr; |
177 | 188 |
178 // Called for each I420 frame before encoding the frame. Can be used for | 189 // Called for each I420 frame before encoding the frame. Can be used for |
179 // effects, snapshots etc. 'nullptr' disables the callback. | 190 // effects, snapshots etc. 'nullptr' disables the callback. |
180 rtc::VideoSinkInterface<VideoFrame>* pre_encode_callback = nullptr; | 191 rtc::VideoSinkInterface<VideoFrame>* pre_encode_callback = nullptr; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
259 EnableEncodedFrameRecording(std::vector<rtc::PlatformFile>(), 0); | 270 EnableEncodedFrameRecording(std::vector<rtc::PlatformFile>(), 0); |
260 } | 271 } |
261 | 272 |
262 protected: | 273 protected: |
263 virtual ~VideoSendStream() {} | 274 virtual ~VideoSendStream() {} |
264 }; | 275 }; |
265 | 276 |
266 } // namespace webrtc | 277 } // namespace webrtc |
267 | 278 |
268 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ | 279 #endif // WEBRTC_VIDEO_SEND_STREAM_H_ |
OLD | NEW |