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

Side by Side Diff: remoting/host/plugin/host_script_object.cc

Issue 26921005: Add VP9 decode support to the remoting client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update libvpx/webm comment. Created 7 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/proto/video.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "remoting/host/plugin/host_script_object.h" 5 #include "remoting/host/plugin/host_script_object.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 host_->AddStatusObserver(this); 373 host_->AddStatusObserver(this);
374 log_to_server_.reset( 374 log_to_server_.reset(
375 new LogToServer(host_->AsWeakPtr(), ServerLogEntry::IT2ME, 375 new LogToServer(host_->AsWeakPtr(), ServerLogEntry::IT2ME,
376 signal_strategy_.get(), directory_bot_jid_)); 376 signal_strategy_.get(), directory_bot_jid_));
377 377
378 // Disable audio by default. 378 // Disable audio by default.
379 // TODO(sergeyu): Add UI to enable it. 379 // TODO(sergeyu): Add UI to enable it.
380 scoped_ptr<protocol::CandidateSessionConfig> protocol_config = 380 scoped_ptr<protocol::CandidateSessionConfig> protocol_config =
381 protocol::CandidateSessionConfig::CreateDefault(); 381 protocol::CandidateSessionConfig::CreateDefault();
382 protocol::CandidateSessionConfig::DisableAudioChannel(protocol_config.get()); 382 protocol::CandidateSessionConfig::DisableAudioChannel(protocol_config.get());
383
384 // VP9 encode is not yet supported.
385 protocol::CandidateSessionConfig::DisableVideoCodec(
386 protocol_config.get(), protocol::ChannelConfig::CODEC_VP9);
387
383 host_->set_protocol_config(protocol_config.Pass()); 388 host_->set_protocol_config(protocol_config.Pass());
384 389
385 // Create event logger. 390 // Create event logger.
386 host_event_logger_ = 391 host_event_logger_ =
387 HostEventLogger::Create(host_->AsWeakPtr(), kApplicationName); 392 HostEventLogger::Create(host_->AsWeakPtr(), kApplicationName);
388 393
389 // Connect signaling and start the host. 394 // Connect signaling and start the host.
390 signal_strategy_->Connect(); 395 signal_strategy_->Connect();
391 host_->Start(xmpp_server_config_.username); 396 host_->Start(xmpp_server_config_.username);
392 397
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 } 1662 }
1658 1663
1659 void HostNPScriptObject::SetException(const std::string& exception_string) { 1664 void HostNPScriptObject::SetException(const std::string& exception_string) {
1660 DCHECK(plugin_task_runner_->BelongsToCurrentThread()); 1665 DCHECK(plugin_task_runner_->BelongsToCurrentThread());
1661 1666
1662 g_npnetscape_funcs->setexception(parent_, exception_string.c_str()); 1667 g_npnetscape_funcs->setexception(parent_, exception_string.c_str());
1663 LOG(INFO) << exception_string; 1668 LOG(INFO) << exception_string;
1664 } 1669 }
1665 1670
1666 } // namespace remoting 1671 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/proto/video.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698