TizenRT Public API
v2.0 M2
|
Public Member Functions | |
MediaRecorder () | |
Constructs an empty MediaRecorder. More... | |
~MediaRecorder () | |
Deconstructs an empty MediaRecorder. More... | |
recorder_result_t | create () |
Create MediaRecorder for capturing. More... | |
recorder_result_t | destroy () |
Destroy MediaRecorder. More... | |
recorder_result_t | prepare () |
Allocate and prepare resources related to the recorder, it should be called before start. More... | |
recorder_result_t | unprepare () |
Releases allocated resources related to the recorder. More... | |
recorder_result_t | start () |
Start recording. More... | |
recorder_result_t | pause () |
Pause recording. More... | |
recorder_result_t | stop () |
Stop recording. More... | |
recorder_result_t | getVolume (uint8_t *vol) |
Gets the current volume. More... | |
recorder_result_t | setVolume (uint8_t vol) |
Sets the volume adjusted. More... | |
recorder_result_t | setDataSource (std::unique_ptr< stream::OutputDataSource > dataSource) |
Sets the DataSource of output data. More... | |
recorder_result_t | setObserver (std::shared_ptr< MediaRecorderObserverInterface > observer) |
Sets the observer of MediaRecorder. More... | |
recorder_result_t | setDuration (int second) |
Set limitation of recording time by given value(second), will be stopped when it reaches that. This should be called after setDataSource but before prepare. More... | |
bool | operator== (const MediaRecorder &rhs) |
MediaRecorder operator==. More... | |
Definition at line 70 of file MediaRecorder.h.
MediaRecorder | ( | ) |
~MediaRecorder | ( | ) |
recorder_result_t create | ( | ) |
Create MediaRecorder for capturing.
#include <media/MediaRecorder.h> This function is a synchronous api
recorder_result_t destroy | ( | ) |
Destroy MediaRecorder.
#include <media/MediaRecorder.h> This function is a synchronous api
recorder_result_t getVolume | ( | uint8_t * | vol | ) |
Gets the current volume.
#include <media/MediaRecorder.h> This function is a synchronous api
bool operator== | ( | const MediaRecorder & | rhs | ) |
MediaRecorder operator==.
#include <media/MediaRecorder.h> This function is a synchronous api Compares the MediaRecorder objects for equality
recorder_result_t pause | ( | ) |
Pause recording.
#include <media/MediaRecorder.h> This function is a asynchronous api Order to MediaRecordWorker pause recording through the queue
recorder_result_t prepare | ( | ) |
Allocate and prepare resources related to the recorder, it should be called before start.
#include <media/MediaRecorder.h> This function is a synchronous api
recorder_result_t setDataSource | ( | std::unique_ptr< stream::OutputDataSource > | dataSource | ) |
Sets the DataSource of output data.
#include <media/MediaRecorder.h> This function is a synchronous api
[in] | dataSource | The dataSource that the config of output data |
recorder_result_t setDuration | ( | int | second | ) |
Set limitation of recording time by given value(second), will be stopped when it reaches that. This should be called after setDataSource but before prepare.
#include <media/MediaRecorder.h> This function is a synchronous api It sets the user's function
[in] | Max | duration(second), No limitation If zero or negative. |
recorder_result_t setObserver | ( | std::shared_ptr< MediaRecorderObserverInterface > | observer | ) |
Sets the observer of MediaRecorder.
#include <media/MediaRecorder.h> This function is a synchronous api It sets the user's function
[in] | observer | The callback to be set for Media Recorder Observer. |
recorder_result_t setVolume | ( | uint8_t | vol | ) |
Sets the volume adjusted.
#include <media/MediaRecorder.h> This function is a synchronous api
[in] | vol | The vol that the value of mic volume |
recorder_result_t start | ( | ) |
Start recording.
#include <media/MediaRecorder.h> This function is a asynchronous api Order to MediaRecordWorker begin recording through the queue
recorder_result_t stop | ( | ) |
Stop recording.
#include <media/MediaRecorder.h> This function is a asynchronous api Order to MediaRecordWorker stop recording through the queue
recorder_result_t unprepare | ( | ) |
Releases allocated resources related to the recorder.
#include <media/MediaRecorder.h> This function is a synchronous api