RDK Documentation (Open Sourced RDK Components)
MediaPlayerGeneric Class Reference
Inheritance diagram for MediaPlayerGeneric:
Inheritance graph
Collaboration diagram for MediaPlayerGeneric:
Collaboration graph

Public Member Functions

 MediaPlayerGeneric (MediaPlayerClient *client)
 
MediaPlayer::RMFPlayerState rmf_playerState () const
 
MediaPlayer::RMFVideoBufferState rmf_videoState () const
 
bool rmf_load (const std::string &url)
 
void rmf_play ()
 
void rmf_stop ()
 
void rmf_pause ()
 
bool rmf_canItPlay () const
 
bool rmf_isPaused () const
 
void rmf_setRate (float speed)
 
float rmf_getRate () const
 
void rmf_setVolume (float volume)
 
float rmf_getVolume () const
 
void rmf_setMute (bool mute)
 
bool rmf_isMuted () const
 
float rmf_getDuration () const
 
float rmf_getCurrentTime () const
 
void rmf_seekToLivePosition ()
 
void rmf_seekToStartPosition ()
 
void rmf_seek (float time)
 
bool rmf_isSeeking () const
 
unsigned long rmf_getCCDecoderHandle () const
 
std::string rmf_getAudioLanguages () const
 
void rmf_setAudioLanguage (const std::string &audioLang)
 
void rmf_setAudioMute (bool isMuted)
 
void rmf_setEissFilterStatus (bool status)
 
void rmf_setVideoZoom (unsigned short zoomVal)
 
void rmf_setVideoBufferLength (float bufferLength)
 
void rmf_setInProgressRecording (bool isInProgress)
 
bool rmf_isItInProgressRecording () const
 
std::string rmf_getMediaErrorMessage () const
 
void rmf_changeSpeed (float speed, short overshootTime)
 
std::string rmf_getMediaWarnDescription () const
 
int rmf_getMediaWarnData () const
 
std::string rmf_getAvailableAudioTracks () const
 
std::string rmf_getCaptionDescriptor () const
 
std::string rmf_getEISSDataBuffer () const
 
void rmf_setNetworkBufferSize (int bufferSize)
 
int rmf_getNetworkBufferSize () const
 
void rmf_setVideoRectangle (unsigned x, unsigned y, unsigned w, unsigned h)
 
MediaPlayerSink * rmf_getPlayerSink ()
 
IRMFMediaSource * rmf_getSource ()
 
int rmf_getVideoPid ()
 
int rmf_getAudioPid ()
 
void rmf_setVideoKeySlot (const char *str)
 
void rmf_setAudioKeySlot (const char *str)
 
void rmf_deleteVideoKeySlot ()
 
void rmf_deleteAudioKeySlot ()
 
uint32_t getPATBuffer (std::vector< uint8_t > &buf)
 
uint32_t getPMTBuffer (std::vector< uint8_t > &buf)
 
uint32_t getCATBuffer (std::vector< uint8_t > &buf)
 
bool getAudioPidFromPMT (uint32_t *pid, const std::string &audioLang)
 
bool getAudioMute () const
 
void setFilter (uint16_t pid, char *filterParam, uint32_t *pFilterId)
 
uint32_t getSectionData (uint32_t *filterId, std::vector< uint8_t > &sectionData)
 
void releaseFilter (uint32_t filterId)
 
void resumeFilter (uint32_t filterId)
 
void pauseFilter (uint32_t filterId)
 

Private Member Functions

GstElement * pipeline () const
 
void updateStates ()
 
bool changePipelineState (GstState newState)
 
void handleBusMessage (GstBus *bus, GstMessage *msg)
 
void endOfStream ()
 
void notifyError (const char *message)
 
void loadingFailed (MediaPlayer::RMFPlayerState error)
 
void cleanup ()
 

Static Private Member Functions

static void busMessageCallback (GstBus *bus, GstMessage *msg, gpointer data)
 

Private Attributes

MediaPlayerClientm_playerClient
 
GstElement * m_pipeline
 
MediaPlayer::RMFPlayerState m_playerState
 
MediaPlayer::RMFVideoBufferState m_videoState
 
std::string m_url
 
std::string m_errorMsg
 
bool m_errorOccured
 
bool m_seekIsPending
 
float m_seekTime
 
IntRect m_lastKnownRect
 

Additional Inherited Members

- Public Types inherited from MediaPlayer
enum  RMFPlayerState
 
enum  RMFVideoBufferState
 

yes

Definition at line 28 of file mediaplayergeneric.h.


The documentation for this class was generated from the following files: