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

Public Member Functions

 AAMPPlayer (RDKMediaPlayer *parent)
 
bool doCanPlayURL (const std::string &url)
 
void doInit ()
 
void doLoad (const std::string &url)
 
void doSetVideoRectangle (const IntRect &rect)
 
void doSetAudioLanguage (std::string &lang)
 
void doPlay ()
 
void doPause ()
 
void doSetPosition (float position)
 
void doSeekToLive ()
 
void doStop ()
 
void doChangeSpeed (float speed, int32_t overshootTime)
 
void doSetSpeed (float speed)
 
void doSetBlocked (bool blocked)
 
void doSetEISSFilterStatus (bool status)
 
void doSetVolume (float volume)
 
void doSetIsInProgressRecording (bool isInProgressRecording)
 
void doSetZoom (int zoom)
 
void doSetNetworkBufferSize (int32_t networkBufferSize)
 
void doSetVideoBufferLength (float videoBufferLength)
 
void getProgressData (ProgressData *progressData)
 
bool isManagementSession () const
 
- Public Member Functions inherited from RDKMediaPlayerImpl
 RDKMediaPlayerImpl (RDKMediaPlayer *parent)
 
RDKMediaPlayergetParent ()
 
TuneState getTuneState ()
 
void setTuneState (TuneState state)
 

Static Public Member Functions

static bool canPlayURL (const std::string &url)
 

Private Member Functions

void onProgress (const AAMPEvent &progressEvent)
 

Static Private Member Functions

static bool setContentType (const std::string &uri, std::string &contentType)
 

Private Attributes

PlayerInstanceAAMPm_aampInstance
 
AAMPListenerm_aampListener
 
ProgressData m_progressData
 

Friends

class AAMPListener
 

yes

Definition at line 29 of file aampplayer.h.

Member Function Documentation

◆ setContentType()

bool AAMPPlayer::setContentType ( const std::string &  url,
std::string &  contentStr 
)
staticprivate
Parameters
urllocator to be tuned
contentStroutput parameter, receives inferred contentType, or "unknown"
Return values
trueif URL appears to be a DASH (.mpd), HLS (.m3u8) locator or .mp4/.mp3 format
falsewith contentStr assigned "unsupported" if URL has unexpected extension

Definition at line 490 of file aampplayer.cpp.


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