Commit a418d353 authored by Xiangjun Zhang's avatar Xiangjun Zhang Committed by Commit Bot

Mirroring service: Convert codec name to lowercase in OFFER message.

ChromeCast receivers require the codec name in OFFER message to be
lowercase.

Bug: 734672
Change-Id: I0fb98ea4c4db3448dba277b34299aff5b498438e
Reviewed-on: https://chromium-review.googlesource.com/1067538
Commit-Queue: Yuri Wiitala <miu@chromium.org>
Reviewed-by: default avatarYuri Wiitala <miu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#560366}
parent 64acb3d4
......@@ -8,6 +8,7 @@
#include "base/rand_util.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/sys_info.h"
#include "base/task_scheduler/post_task.h"
#include "base/threading/thread_task_runner_handle.h"
......@@ -151,7 +152,7 @@ void AddStreamObject(int stream_index,
base::Value::ListStorage* stream_list) {
base::Value stream(base::Value::Type::DICTIONARY);
stream.SetKey("index", base::Value(stream_index));
stream.SetKey("codecName", base::Value(codec_name));
stream.SetKey("codecName", base::Value(base::ToLowerASCII(codec_name)));
stream.SetKey("rtpProfile", base::Value("cast"));
const bool is_audio =
(config.rtp_payload_type <= media::cast::RtpPayloadType::AUDIO_LAST);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment