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 |
Media recorder class.
OwliftMediaRecorder | ( | UvcOwliftFunc | uvc, |
OwliftMic | mic | ||
) | throws OwliftException |
The constructor.
uvc | UvcOwliftFunc for recording. Mandatory required. |
mic | OwliftMic(built-in MIC on terminal) for recording. if set null, doesn't record audio. |
OwliftException |
OwliftMediaRecorder | ( | UvcOwliftFunc | uvc | ) | throws OwliftException |
The constructor.
uvc | UvcOwliftFunc for recording. Mandatory required. |
OwliftException |
boolean isActive | ( | ) |
Tests if This object is recording.
void openFile | ( | String | path | ) | throws OwliftException |
void setVideoBitRate | ( | int | br | ) | throws OwliftException |
Sets video bit rate(bps) for recording.
Must call this method before calling start().
br | bit rate in bps. |
OwliftException |
void setVideoFrameRate | ( | int | fr | ) | throws OwliftException |
Sets video frame rate for recording.
Must call this method before calling start().
fr | frame rate (1-59). |
OwliftException |
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().
b | true : recording data after called UvcOwliftFunc.Callback.recvBuffer(). false : recording data before called UvcOwliftFunc.Callback.recvBuffer() (default). |
void start | ( | ) | throws OwliftException |
Starts recording.
OwliftException |
void stop | ( | ) |
Stops recording.
Copyright (C) 2016 Infinitegra, INC. All Rights Reserved. |
Generated by
![]() |