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

Public Member Functions

 MediaPlayerDLNA (MediaPlayerClient *host)
 
bool rmf_load (const std::string &url)
 
const std::string & rmf_getURL () const
 
bool rmf_canItPlay () const
 
void rmf_play ()
 
void rmf_pause ()
 
void rmf_stop ()
 
bool rmf_isPaused () const
 
bool rmf_isSeeking () const
 
float rmf_getDuration () const
 
float rmf_getCurrentTime () const
 
void rmf_seek (float position)
 
void rmf_seekToLivePosition (void)
 
void rmf_seekToStartPosition (void)
 
void rmf_changeSpeed (float, short)
 
void rmf_setRate (float speed)
 
float rmf_getRate () const
 
void rmf_setVolume (float volume)
 
float rmf_getVolume () const
 
void rmf_setMute (bool muted)
 
bool rmf_isMuted () 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
 
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 ()
 
void rmf_setVideoKeySlot (const char *str)
 
void rmf_setAudioKeySlot (const char *str)
 
void rmf_deleteVideoKeySlot ()
 
void rmf_deleteAudioKeySlot ()
 
int rmf_getVideoPid ()
 
int rmf_getAudioPid ()
 
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)
 
MediaPlayer::RMFPlayerState rmf_playerState () const
 
MediaPlayer::RMFVideoBufferState rmf_videoState () const
 
void notifyPlayerOfVideoAsync ()
 
void notifyPlayerOfVideo ()
 
void notifyPlayerOfAudioAsync ()
 
void notifyPlayerOfAudio ()
 
void notifyPlayerOfFirstAudioFrame ()
 
void notifyPlayerOfFirstVideoFrame ()
 
void notifyPlayerOfMediaWarning ()
 
void notifyPlayerOfEISSData ()
 
void notifyPresenceOfVideo ()
 
void notifyPMTUpdate ()
 
void notifyLanguageChange ()
 
void onPlay ()
 
void onPause ()
 
void onStop ()
 
void ended ()
 
void notifyError (RMFResult err, const char *pMsg)
 
void notifyStatus (const RMFStreamingStatus &status)
 

Static Public Member Functions

static bool supportsUrl (const std::string &urlStr)
 

Private Member Functions

void commitLoad ()
 
void cancelLoad ()
 
void prepareToPlay ()
 
void loadingFailed (MediaPlayer::RMFPlayerState)
 
void setMediaErrorMessage (const std::string &errorMsg)
 
void timeChanged ()
 
void durationChanged ()
 
bool isMpegTS () const
 
bool isVOD () const
 
bool isOCAP () const
 
bool wantAudio () const
 
float playbackPosition () const
 
void cacheDuration ()
 
void updateStates ()
 
float maxTimeLoaded () const
 
void onReplyError ()
 
void onReplyFinished (const ResponseInfo &response)
 
void onProgressTimerTimeout ()
 
void fetchHeaders (void)
 
void fetchOnWorkerThread (const RequestInfo &request)
 
void fetchWithCurl (const RequestInfo &request, ResponseInfo &response)
 
void onFrameReceived (void)
 
void time_to_hms (float time, unsigned &h, unsigned &m, float &s)
 
void fetchHeadersForTrickMode (float speed, double time)
 
void onFirstVideoFrame ()
 
void onEISSDUpdate ()
 
void onFirstAudioFrame ()
 
void onMediaWarningReceived ()
 
void onPMTUpdateAudioMute ()
 

Private Attributes

MediaPlayerClientm_playerClient
 
HNSource * m_hnsource
 
IRMFMediaSource * m_source
 
MediaPlayerSink * m_sink
 
DumpFileSink * m_dfsink
 
IRMFMediaEvents * m_events
 
IRMFMediaEvents * m_events_sink
 
std::string m_url
 
bool m_changingRate
 
float m_endTime
 
MediaPlayer::RMFPlayerState m_playerState
 
MediaPlayer::RMFVideoBufferState m_videoState
 
bool m_isStreaming
 
bool m_paused
 
bool m_pausedInternal
 
bool m_seeking
 
float m_playbackRate
 
bool m_errorOccured
 
float m_mediaDuration
 
bool m_startedBuffering
 
float m_maxTimeLoaded
 
bool m_delayingLoad
 
bool m_mediaDurationKnown
 
unsigned int m_volumeTimerHandler
 
unsigned int m_muteTimerHandler
 
bool m_muted
 
unsigned int m_videoTimerHandler
 
unsigned int m_audioTimerHandler
 
IntRect m_lastKnownRect
 
float m_currentPosition
 
bool m_isVOnlyOnce
 
bool m_isAOnlyOnce
 
bool m_isEndReached
 
bool m_isInProgressRecording
 
std::string m_errorMsg
 
Timer< MediaPlayerDLNAm_progressTimer
 
float m_baseSeekTime
 
float m_currentProgressTime
 
std::string m_rmfMediaWarnDesc
 
std::string m_rmfAudioTracks
 
std::string m_rmfCaptionDescriptor
 
std::string m_rmfEISSDataBuffer
 
int m_rmfMediaWarnData
 
int m_networkBufferSize
 
unsigned char m_restartPlaybackCount
 
bool m_allowPositionQueries
 
bool m_EOSPending
 
bool m_fetchTrickModeHeaders
 
bool m_isVODPauseRequested
 
bool m_isVODRateChangeRequested
 
bool m_isVODSeekRequested
 
bool m_isVOD5XHackEnabled
 
bool m_isVODAsset
 
bool m_isMusicOnlyAsset
 
bool m_VODKeepPipelinePlaying
 
bool m_eissFilterStatus
 
uint8_t m_psiStatus
 
bool m_pmtUpdate
 
bool m_audioMuteStatus
 
unsigned int m_onFirstVideoFrameHandler
 
unsigned int m_onFirstAudioFrameHandler
 
unsigned int m_onEISSDUpdateHandler
 
unsigned int m_onMediaWarningReceivedHandler
 

Additional Inherited Members

- Public Types inherited from MediaPlayer
enum  RMFPlayerState
 
enum  RMFVideoBufferState
 

yes

Definition at line 45 of file mediaplayerdlna.h.


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