TizenRT Public API
v2.0 M2
|
Public Member Functions | |
MediaPlayer () | |
Constructs an empty MediaPlayer. More... | |
~MediaPlayer () | |
Deconstructs an empty MediaPlayer. More... | |
player_result_t | create () |
Create the MediaPlayer for playback. More... | |
player_result_t | destroy () |
Destroy MediaPlayer. More... | |
player_result_t | prepare () |
Allocate and prepare resources related to the player, it should be called before start. More... | |
player_result_t | unprepare () |
Releases allocated resources related to the player. More... | |
player_result_t | start () |
Start playback. More... | |
player_result_t | pause () |
Pause playback. More... | |
player_result_t | stop () |
Stop playback. More... | |
player_result_t | getVolume (uint8_t *volume) |
Gets the current volume. More... | |
player_result_t | setVolume (uint8_t) |
Sets the volume adjusted. More... | |
player_result_t | setDataSource (std::unique_ptr< stream::InputDataSource >) |
Sets the DataSource of input data. More... | |
player_result_t | setObserver (std::shared_ptr< MediaPlayerObserverInterface >) |
Sets the observer of MediaPlayer. More... | |
bool | operator== (const MediaPlayer &rhs) |
MediaPlayer operator==. More... | |
Definition at line 69 of file MediaPlayer.h.
MediaPlayer | ( | ) |
~MediaPlayer | ( | ) |
player_result_t create | ( | ) |
Create the MediaPlayer for playback.
#include <media/MediaPlayer.h> This function is a synchronous api
player_result_t destroy | ( | ) |
Destroy MediaPlayer.
#include <media/MediaPlayer.h> This function is a synchronous api
player_result_t getVolume | ( | uint8_t * | volume | ) |
Gets the current volume.
#include <media/MediaPlayer.h> This function is a synchronous api
bool operator== | ( | const MediaPlayer & | rhs | ) |
MediaPlayer operator==.
#include <media/MediaPlayer.h> This function is a synchronous api Compares the MediaPlayer objects for equality
player_result_t pause | ( | ) |
Pause playback.
#include <media/MediaPlayer.h> This function is a asynchronous api Order to MediaPlayerWorker pause playback through the queue
player_result_t prepare | ( | ) |
Allocate and prepare resources related to the player, it should be called before start.
#include <media/MediaPlayer.h> This function is a synchronous api
player_result_t setDataSource | ( | std::unique_ptr< stream::InputDataSource > | ) |
Sets the DataSource of input data.
#include <media/MediaPlayer.h> This function is a synchronous api
[in] | dataSource | The dataSource that the config of input data |
player_result_t setObserver | ( | std::shared_ptr< MediaPlayerObserverInterface > | ) |
Sets the observer of MediaPlayer.
#include <media/MediaPlayer.h> This function is a synchronous api It sets the user's function
[in] | observer | The callback to be set for Media Player Observer. |
player_result_t setVolume | ( | uint8_t | ) |
Sets the volume adjusted.
#include <media/MediaPlayer.h> This function is a synchronous api
[in] | vol | The vol that the value of mic volume |
player_result_t start | ( | ) |
Start playback.
#include <media/MediaPlayer.h> This function is a asynchronous api Order to MediaPlayerWorker begin playback through the queue
player_result_t stop | ( | ) |
Stop playback.
#include <media/MediaPlayer.h> This function is a asynchronous api Order to MediaPlayerWorker stop playback through the queue
player_result_t unprepare | ( | ) |
Releases allocated resources related to the player.
#include <media/MediaPlayer.h> This function is a synchronous api