JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
CameraDevice::Pimpl::MediaRecorder Class Reference
Inheritance diagram for CameraDevice::Pimpl::MediaRecorder:
Collaboration diagram for CameraDevice::Pimpl::MediaRecorder:

Public Member Functions

 MediaRecorder (const String &outputFilePath, int videoWidth, int videoHeight, int sensorOrientation, int cameraLensFacing)
 
 ~MediaRecorder ()
 
LocalRef< jobject > getSurface ()
 
void start ()
 
void stop ()
 

Private Member Functions

void lockScreenOrientation ()
 
void onError (LocalRef< jobject > &recorder, int what, int extra) override
 
void onInfo (LocalRef< jobject > &recorder, int what, int extra) override
 
void unlockScreenOrientation ()
 

Static Private Member Functions

static String getErrorStringFromCode (int what)
 
static String getInfoStringFromCode (int what)
 
static int getOrientationHint (bool useInverseDegrees, int cameraSensorOrientation)
 
static jint juceOrientationToNativeOrientation (int orientations) noexcept
 

Private Attributes

bool hasStartedRecording = false
 
GlobalRef mediaRecorder
 
MediaRecorderOnErrorListener onErrorListener
 
MediaRecorderOnInfoListener onInfoListener
 
int orientationsEnabled = -1
 

Constructor & Destructor Documentation

◆ MediaRecorder()

CameraDevice::Pimpl::MediaRecorder::MediaRecorder ( const String &  outputFilePath,
int  videoWidth,
int  videoHeight,
int  sensorOrientation,
int  cameraLensFacing 
)
inline

◆ ~MediaRecorder()

CameraDevice::Pimpl::MediaRecorder::~MediaRecorder ( )
inline

References juce::getEnv().

Member Function Documentation

◆ getErrorStringFromCode()

static String CameraDevice::Pimpl::MediaRecorder::getErrorStringFromCode ( int  what)
inlinestaticprivate

◆ getInfoStringFromCode()

static String CameraDevice::Pimpl::MediaRecorder::getInfoStringFromCode ( int  what)
inlinestaticprivate

◆ getOrientationHint()

static int CameraDevice::Pimpl::MediaRecorder::getOrientationHint ( bool  useInverseDegrees,
int  cameraSensorOrientation 
)
inlinestaticprivate

◆ getSurface()

LocalRef<jobject> CameraDevice::Pimpl::MediaRecorder::getSurface ( )
inline

References juce::getEnv().

◆ juceOrientationToNativeOrientation()

static jint CameraDevice::Pimpl::MediaRecorder::juceOrientationToNativeOrientation ( int  orientations)
inlinestaticprivatenoexcept

◆ lockScreenOrientation()

void CameraDevice::Pimpl::MediaRecorder::lockScreenOrientation ( )
inlineprivate

◆ onError()

void CameraDevice::Pimpl::MediaRecorder::onError ( LocalRef< jobject > &  recorder,
int  what,
int  extra 
)
inlineoverrideprivatevirtual

◆ onInfo()

void CameraDevice::Pimpl::MediaRecorder::onInfo ( LocalRef< jobject > &  recorder,
int  what,
int  extra 
)
inlineoverrideprivatevirtual

◆ start()

void CameraDevice::Pimpl::MediaRecorder::start ( )
inline

References juce::getEnv().

◆ stop()

void CameraDevice::Pimpl::MediaRecorder::stop ( )
inline

◆ unlockScreenOrientation()

void CameraDevice::Pimpl::MediaRecorder::unlockScreenOrientation ( )
inlineprivate

Member Data Documentation

◆ hasStartedRecording

bool CameraDevice::Pimpl::MediaRecorder::hasStartedRecording = false
private

◆ mediaRecorder

GlobalRef CameraDevice::Pimpl::MediaRecorder::mediaRecorder
private

◆ onErrorListener

MediaRecorderOnErrorListener CameraDevice::Pimpl::MediaRecorder::onErrorListener
private

◆ onInfoListener

MediaRecorderOnInfoListener CameraDevice::Pimpl::MediaRecorder::onInfoListener
private

◆ orientationsEnabled

int CameraDevice::Pimpl::MediaRecorder::orientationsEnabled = -1
private

The documentation for this class was generated from the following file: