JUCE  v6.1.6 (6.0.8-1114)
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 () override
 
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 ( )
inlineoverride

References juce::getEnv(), and mediaRecorder.

Member Function Documentation

◆ getErrorStringFromCode()

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

Referenced by onError().

◆ getInfoStringFromCode()

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

Referenced by onInfo().

◆ getOrientationHint()

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

◆ getSurface()

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

◆ juceOrientationToNativeOrientation()

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

◆ lockScreenOrientation()

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

References orientationsEnabled.

Referenced by start().

◆ 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

◆ stop()

◆ unlockScreenOrientation()

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

References orientationsEnabled.

Referenced by stop().

Member Data Documentation

◆ hasStartedRecording

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

Referenced by start(), and stop().

◆ mediaRecorder

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

◆ onErrorListener

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

Referenced by MediaRecorder().

◆ onInfoListener

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

Referenced by MediaRecorder().

◆ orientationsEnabled

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

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