30 #ifndef __MEDIA_MEDIAPLAYER_H 31 #define __MEDIA_MEDIAPLAYER_H 34 #include <media/InputDataSource.h> 46 PLAYER_ERROR_INVALID_STATE,
47 PLAYER_ERROR_INVALID_OPERATION,
48 PLAYER_ERROR_INVALID_PARAMETER,
49 PLAYER_ERROR_INTERNAL_OPERATION_FAILED,
50 PLAYER_ERROR_FILE_OPEN_FAILED,
51 PLAYER_ERROR_OUT_OF_MEMORY,
52 PLAYER_ERROR_DEVICE_NOT_SUPPORTED,
59 typedef int player_result_t;
61 class MediaPlayerImpl;
130 player_result_t
start();
140 player_result_t
pause();
150 player_result_t
stop();
159 player_result_t
getVolume(uint8_t *volume);
178 player_result_t
setDataSource(std::unique_ptr<stream::InputDataSource>);
189 player_result_t
setObserver(std::shared_ptr<MediaPlayerObserverInterface>);
202 std::shared_ptr<MediaPlayerImpl> mPMpImpl;