Java 类org.webrtc.Camera1Enumerator 实例源码

项目:webrtc-android-codelab    文件:MainActivity.java   
private VideoCapturer createVideoCapturer() {
    VideoCapturer videoCapturer;
    Logging.d(TAG, "Creating capturer using camera1 API.");
    videoCapturer = createCameraCapturer(new Camera1Enumerator(false));

    return videoCapturer;
}
项目:matrix-android-sdk    文件:MXWebRtcCall.java   
/**
 * Get a camera enumerator
 *
 * @param context the context
 * @return the camera enumerator
 */
private static CameraEnumerator getCameraEnumerator(Context context) {
    if (useCamera2(context)) {
        return new Camera2Enumerator(context);
    } else {
        return new Camera1Enumerator(false);
    }
}
项目:VideoCRE    文件:VideoCapturers.java   
public static VideoCapturer createCamera1Capturer(boolean captureToTexture) {
    return createCameraCapturer(new Camera1Enumerator(captureToTexture));
}