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

Side by Side Diff: talk/session/media/channelmanager.cc

Issue 1374253002: Added functions on libjingle API to start and stop the recording of an RtcEventLog. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added functions to start and stop logging. Created 5 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
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 for (size_t i = 0; i < devs.size(); ++i) { 632 for (size_t i = 0; i < devs.size(); ++i) {
633 names->push_back(devs[i].name); 633 names->push_back(devs[i].name);
634 } 634 }
635 } 635 }
636 636
637 bool ChannelManager::StartAecDump(rtc::PlatformFile file) { 637 bool ChannelManager::StartAecDump(rtc::PlatformFile file) {
638 return worker_thread_->Invoke<bool>( 638 return worker_thread_->Invoke<bool>(
639 Bind(&MediaEngineInterface::StartAecDump, media_engine_.get(), file)); 639 Bind(&MediaEngineInterface::StartAecDump, media_engine_.get(), file));
640 } 640 }
641 641
642 bool ChannelManager::StartRtcEventLog(rtc::PlatformFile file) {
643 return worker_thread_->Invoke<bool>(
644 Bind(&MediaEngineInterface::StartRtcEventLog, media_engine_.get(), file));
645 }
646
647 void ChannelManager::StopRtcEventLog() {
648 worker_thread_->Invoke<void>(
649 Bind(&MediaEngineInterface::StopRtcEventLog, media_engine_.get()));
650 }
651
642 } // namespace cricket 652 } // namespace cricket
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698