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

Unified Diff: chrome/renderer/extensions/cast_streaming_native_handler.cc

Issue 1484403002: cast: Support for low-latency interactive mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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
« no previous file with comments | « chrome/common/extensions/api/cast_streaming_rtp_stream.idl ('k') | chrome/renderer/media/cast_rtp_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/cast_streaming_native_handler.cc
diff --git a/chrome/renderer/extensions/cast_streaming_native_handler.cc b/chrome/renderer/extensions/cast_streaming_native_handler.cc
index b861f826433541592083c3cb3a1aa66b187e8348..ec51402fa3561295b71c47acedd44e92222bdb89 100644
--- a/chrome/renderer/extensions/cast_streaming_native_handler.cc
+++ b/chrome/renderer/extensions/cast_streaming_native_handler.cc
@@ -4,8 +4,11 @@
#include "chrome/renderer/extensions/cast_streaming_native_handler.h"
+#include <algorithm>
#include <functional>
#include <iterator>
+#include <string>
+#include <vector>
#include "base/location.h"
#include "base/logging.h"
@@ -89,6 +92,9 @@ bool ToCastRtpPayloadParamsOrThrow(v8::Isolate* isolate,
cast_params->max_latency_ms = ext_params.max_latency;
cast_params->min_latency_ms =
ext_params.min_latency ? *ext_params.min_latency : ext_params.max_latency;
+ cast_params->animated_latency_ms = ext_params.animated_latency
+ ? *ext_params.animated_latency
+ : ext_params.max_latency;
cast_params->codec_name = ext_params.codec_name;
cast_params->ssrc = ext_params.ssrc;
cast_params->feedback_ssrc = ext_params.feedback_ssrc;
@@ -126,6 +132,7 @@ void FromCastRtpPayloadParams(const CastRtpPayloadParams& cast_params,
ext_params->payload_type = cast_params.payload_type;
ext_params->max_latency = cast_params.max_latency_ms;
ext_params->min_latency.reset(new int(cast_params.min_latency_ms));
+ ext_params->animated_latency.reset(new int(cast_params.animated_latency_ms));
ext_params->codec_name = cast_params.codec_name;
ext_params->ssrc = cast_params.ssrc;
ext_params->feedback_ssrc = cast_params.feedback_ssrc;
« no previous file with comments | « chrome/common/extensions/api/cast_streaming_rtp_stream.idl ('k') | chrome/renderer/media/cast_rtp_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698