| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ |
| 6 #define CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ | 6 #define CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // Defines the basic properties of a payload supported by cast transport. | 36 // Defines the basic properties of a payload supported by cast transport. |
| 37 struct CastRtpPayloadParams { | 37 struct CastRtpPayloadParams { |
| 38 // RTP specific field that identifies the content type. | 38 // RTP specific field that identifies the content type. |
| 39 int payload_type; | 39 int payload_type; |
| 40 | 40 |
| 41 // Maximum latency in milliseconds. Implemetation tries to keep latency | 41 // Maximum latency in milliseconds. Implemetation tries to keep latency |
| 42 // under this threshold. | 42 // under this threshold. |
| 43 int max_latency_ms; | 43 int max_latency_ms; |
| 44 | 44 |
| 45 // Minimum latency. |
| 46 int min_latency_ms; |
| 47 |
| 45 // RTP specific field to identify a stream. | 48 // RTP specific field to identify a stream. |
| 46 int ssrc; | 49 int ssrc; |
| 47 | 50 |
| 48 // RTP specific field to idenfity the feedback stream. | 51 // RTP specific field to idenfity the feedback stream. |
| 49 int feedback_ssrc; | 52 int feedback_ssrc; |
| 50 | 53 |
| 51 // Update frequency of payload sample. | 54 // Update frequency of payload sample. |
| 52 int clock_rate; | 55 int clock_rate; |
| 53 | 56 |
| 54 // Maximum bitrate in kilobits per second. | 57 // Maximum bitrate in kilobits per second. |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 scoped_ptr<CastVideoSink> video_sink_; | 159 scoped_ptr<CastVideoSink> video_sink_; |
| 157 CastRtpParams params_; | 160 CastRtpParams params_; |
| 158 base::WeakPtrFactory<CastRtpStream> weak_factory_; | 161 base::WeakPtrFactory<CastRtpStream> weak_factory_; |
| 159 base::Closure stop_callback_; | 162 base::Closure stop_callback_; |
| 160 ErrorCallback error_callback_; | 163 ErrorCallback error_callback_; |
| 161 | 164 |
| 162 DISALLOW_COPY_AND_ASSIGN(CastRtpStream); | 165 DISALLOW_COPY_AND_ASSIGN(CastRtpStream); |
| 163 }; | 166 }; |
| 164 | 167 |
| 165 #endif // CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ | 168 #endif // CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ |
| OLD | NEW |