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

Unified Diff: chrome/renderer/media/cast_rtp_stream.h

Issue 1484403002: cast: Support for low-latency interactive mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cast streaming API tests Created 5 years 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
Index: chrome/renderer/media/cast_rtp_stream.h
diff --git a/chrome/renderer/media/cast_rtp_stream.h b/chrome/renderer/media/cast_rtp_stream.h
index 8cb98979831f2019e9f25c7970329d9a87ebbedc..88ec92aab50e476bdf781d3810cea9d31cf504b1 100644
--- a/chrome/renderer/media/cast_rtp_stream.h
+++ b/chrome/renderer/media/cast_rtp_stream.h
@@ -13,6 +13,8 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "media/cast/cast_config.h"
+#include "media/cast/constants.h"
#include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
namespace base {
@@ -36,36 +38,40 @@ struct CastCodecSpecificParams {
// Defines the basic properties of a payload supported by cast transport.
struct CastRtpPayloadParams {
// RTP specific field that identifies the content type.
- int payload_type;
+ int payload_type = media::cast::kDefaultRtpVideoPayloadType;
// Maximum latency in milliseconds. Implemetation tries to keep latency
// under this threshold.
- int max_latency_ms;
+ int max_latency_ms = media::cast::kDefaultRtpMaxDelayMs;
// Minimum latency.
// Default value (0) means use max_latency_ms.
- int min_latency_ms;
+ int min_latency_ms = 0;
+
+ // Starting latency on animated content.
+ // Default value (0) means use max_latency_ms.
+ int animated_latency_ms = 0;
// RTP specific field to identify a stream.
- int ssrc;
+ int ssrc = 1;
// RTP specific field to idenfity the feedback stream.
- int feedback_ssrc;
+ int feedback_ssrc = 2;
// Update frequency of payload sample.
- int clock_rate;
+ int clock_rate = media::cast::kVideoFrequency;
// Maximum bitrate in kilobits per second.
- int max_bitrate;
+ int max_bitrate = media::cast::kDefaultMaxVideoKbps;
// Minimum bitrate in kilobits per second.
- int min_bitrate;
+ int min_bitrate = media::cast::kDefaultMinVideoKbps;
// Number of audio channels.
- int channels;
+ int channels = 1;
// The maximum frame rate.
- double max_frame_rate;
+ double max_frame_rate = media::cast::kDefaultMaxFrameRate;
// Name of the codec used.
std::string codec_name;

Powered by Google App Engine
This is Rietveld 408576698