2015-08-31 13:19:03 +02:00
|
|
|
/*
|
2016-06-17 03:45:45 -07:00
|
|
|
* Copyright 2016 The WebRTC project authors. All Rights Reserved.
|
2015-08-31 13:19:03 +02:00
|
|
|
*
|
2016-02-10 07:54:43 -08:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2015-08-31 13:19:03 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package org.webrtc;
|
|
|
|
|
|
2016-09-02 05:58:11 -07:00
|
|
|
import org.webrtc.CameraEnumerationAndroid.CaptureFormat;
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
2016-06-17 03:45:45 -07:00
|
|
|
public interface CameraEnumerator {
|
|
|
|
|
public String[] getDeviceNames();
|
|
|
|
|
public boolean isFrontFacing(String deviceName);
|
|
|
|
|
public boolean isBackFacing(String deviceName);
|
2016-09-02 05:58:11 -07:00
|
|
|
public List<CaptureFormat> getSupportedFormats(String deviceName);
|
2015-08-31 13:19:03 +02:00
|
|
|
|
2016-06-17 03:45:45 -07:00
|
|
|
public CameraVideoCapturer createCapturer(
|
|
|
|
|
String deviceName, CameraVideoCapturer.CameraEventsHandler eventsHandler);
|
2015-08-31 13:19:03 +02:00
|
|
|
}
|