2 ==============================================================================
4 This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 Copyright 2004-11 by Raw Material Software Ltd.
7 ------------------------------------------------------------------------------
9 JUCE can be redistributed and/or modified under the terms of the GNU General
10 Public License (Version 2), as published by the Free Software Foundation.
11 A copy of the license is included in the JUCE distribution, or can be found
12 online at www.gnu.org/licenses.
14 JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 ------------------------------------------------------------------------------
20 To release a closed-source product which uses JUCE, commercial licenses are
21 available: visit www.rawmaterialsoftware.com/juce for more information.
23 ==============================================================================
26 // (This file gets included by juce_android_NativeCode.cpp, rather than being
27 // compiled on its own).
28 #if JUCE_INCLUDED_FILE && JUCE_USE_CAMERA
31 //==============================================================================
33 class AndroidCameraInternal
36 AndroidCameraInternal()
40 ~AndroidCameraInternal()
46 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AndroidCameraInternal
);
49 //==============================================================================
50 CameraDevice::CameraDevice (const String
& name_
, int /*index*/)
53 internal
= new AndroidCameraInternal();
58 CameraDevice::~CameraDevice()
61 delete static_cast <AndroidCameraInternal
*> (internal
);
65 Component
* CameraDevice::createViewerComponent()
72 String
CameraDevice::getFileExtension()
74 return ".m4a"; // TODO correct?
77 void CameraDevice::startRecordingToFile (const File
& file
, int quality
)
82 Time
CameraDevice::getTimeOfFirstRecordedFrame() const
88 void CameraDevice::stopRecording()
93 void CameraDevice::addListener (Listener
* listenerToAdd
)
98 void CameraDevice::removeListener (Listener
* listenerToRemove
)
103 StringArray
CameraDevice::getAvailableDevices()
112 CameraDevice
* CameraDevice::openDevice (int index
,
113 int minWidth
, int minHeight
,
114 int maxWidth
, int maxHeight
)