OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |