OWLIFT Library for Android: OwliftMediaRecorder Class Reference
OWLIFT Library for Android  1.8.0.0
Top Page
List of all members | Public Member Functions
OwliftMediaRecorder Class Reference

Public Member Functions

 OwliftMediaRecorder (UvcOwliftFunc uvc, OwliftMic mic) throws OwliftException
 
 OwliftMediaRecorder (UvcOwliftFunc uvc) throws OwliftException
 
boolean isActive ()
 
void start () throws OwliftException
 
void stop ()
 
void setVideoFrameRate (int fr) throws OwliftException
 
void setVideoBitRate (int br) throws OwliftException
 
void setVideoPostRecvBuffer (boolean b) throws OwliftException
 
void openFile (String path) throws OwliftException
 

Detailed Description

Media recorder class.

Constructor & Destructor Documentation

◆ OwliftMediaRecorder() [1/2]

The constructor.

Parameters
uvcUvcOwliftFunc for recording. Mandatory required.
micOwliftMic(built-in MIC on terminal) for recording. if set null, doesn't record audio.
Exceptions
OwliftException

◆ OwliftMediaRecorder() [2/2]

The constructor.

Parameters
uvcUvcOwliftFunc for recording. Mandatory required.
Exceptions
OwliftException

Member Function Documentation

◆ isActive()

boolean isActive ( )

Tests if This object is recording.

Returns
true : recording, false : otherwise.

◆ openFile()

void openFile ( String  path) throws OwliftException

Opens file for recording.

Parameters
pathfile path for saving.
Exceptions
OwliftException

◆ setVideoBitRate()

void setVideoBitRate ( int  br) throws OwliftException

Sets video bit rate(bps) for recording.
Must call this method before calling start().

Parameters
brbit rate in bps.
Exceptions
OwliftException

◆ setVideoFrameRate()

void setVideoFrameRate ( int  fr) throws OwliftException

Sets video frame rate for recording.
Must call this method before calling start().

Parameters
frframe rate (1-59).
Exceptions
OwliftException

◆ setVideoPostRecvBuffer()

void setVideoPostRecvBuffer ( boolean  b) throws OwliftException

Selects data for video recording after calling UvcOwliftFunc.Callback.recvBuffer() or not.

Must call this method before calling start()
Default setting is false and the data for video recording is video data before calling recvBuffer(). If sets true, the data for video recording is video data of UvcOwliftFunc.Buffer.getData() in recvBuffer().

Parameters
b
true : recording data after called UvcOwliftFunc.Callback.recvBuffer().
false : recording data before called UvcOwliftFunc.Callback.recvBuffer() (default).

◆ start()

void start ( ) throws OwliftException

Starts recording.

Exceptions
OwliftException

◆ stop()

void stop ( )

Stops recording.