1 /* 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #include "modules/video_capture/video_capture_factory.h" 12 13 #include "modules/video_capture/video_capture_impl.h" 14 15 namespace webrtc { 16 Create(const char * deviceUniqueIdUTF8)17rtc::scoped_refptr<VideoCaptureModule> VideoCaptureFactory::Create( 18 const char* deviceUniqueIdUTF8) { 19 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_MAC) 20 return nullptr; 21 #else 22 return videocapturemodule::VideoCaptureImpl::Create(deviceUniqueIdUTF8); 23 #endif 24 } 25 CreateDeviceInfo()26VideoCaptureModule::DeviceInfo* VideoCaptureFactory::CreateDeviceInfo() { 27 #if defined(WEBRTC_ANDROID) || defined(WEBRTC_MAC) 28 return nullptr; 29 #else 30 return videocapturemodule::VideoCaptureImpl::CreateDeviceInfo(); 31 #endif 32 } 33 34 } // namespace webrtc 35