It handle the task of continuous playing and pooling.
Public Fields
-
Logger* logger
- logger is Instance of Logger class.
-
string rendererUDN
- rendererUDN a String value of renderer UDN
-
Connection* connection
- connection a Connection Object
-
bool allowPlayNext
- allowPlayNext a boolean value indicating whether to play continour or not
-
UpnpAVLevel1SASupport* upnpUtil
- upnpUtil a UpnpAVLevel1SASupport Object
-
ithread_t threadId
- threadId a ithread_t for thread
-
bool playMusic
- playMusic a boolean indicating continous playing is music or video
-
bool playImage
- playImage a boolean indicating continous playing is picture
-
int pollingRate
- pollingRate a integer value indicating polling rate for continous playing
-
int frameDelay
- frameDelay a integer value indicating delay between two pictures showing
-
bool singlePlay
- singlePlay a boolean value indicates single play only
-
bool isPollingAllowed
- isPollingAllowed a boolean value whether media renderer polling thread is already running or not If isPollingAllowed is true, this class will fetch the value from socket elements otherwise it will fetch value from media renderer
Public Methods
-
ConPlayThread(Connection* connection, UpnpAVLevel1SASupport* upnpUtil)
- Assign the reference of Connection to the local variable 'connection' and start Thread.
-
string parseDeviceResponse(IXML_Document* changes, string key)
- Parse the XML response from devices
-
int getTimeSeconds(string time)
- Convert the time response from device to seconds
-
IXML_Document* getRelativeTimePosition()
- Get relative time postion
-
IXML_Document* getTransportState()
- Get current transport state
-
void updateValues(string timePositionValue, string transportStateValue, string TotalTrackDuration)
- updates the values to client
-
void startPlaying()
- Set a boolean variable for indication of playing to true
-
void stopPlaying()
- Set a boolean variable for indication of playing to false
-
void pausePlaying()
- Set a boolean variable for indication of playing to false
-
void setConnection(Connection* connection)
- Set the local reference of Connection
-
Connection* getConnection()
- get the local reference of Connection
-
void checkForPlay()
- Check item to play ie music or image
-
void updateConnectionElements(map<string, string>*rendererUpdates)
- Called from the media renderer thread for updates
Documentation
It handle the task of continuous playing and pooling.
Logger* logger
-
logger is Instance of Logger class. This will log the information, warning and error messages
depending upon the debug level set by user.
string rendererUDN
-
rendererUDN a String value of renderer UDN
Connection* connection
-
connection a Connection Object
bool allowPlayNext
-
allowPlayNext a boolean value indicating whether to play continour or not
UpnpAVLevel1SASupport* upnpUtil
-
upnpUtil a UpnpAVLevel1SASupport Object
ithread_t threadId
-
threadId a ithread_t for thread
bool playMusic
-
playMusic a boolean indicating continous playing is music or video
bool playImage
-
playImage a boolean indicating continous playing is picture
int pollingRate
-
pollingRate a integer value indicating polling rate for continous playing
int frameDelay
-
frameDelay a integer value indicating delay between two pictures showing
bool singlePlay
-
singlePlay a boolean value indicates single play only
bool isPollingAllowed
-
isPollingAllowed a boolean value whether media renderer polling thread is already running or not
If isPollingAllowed is true, this class will fetch the value from socket elements otherwise it will fetch value from media renderer
ConPlayThread(Connection* connection, UpnpAVLevel1SASupport* upnpUtil)
-
Assign the reference of Connection to the local variable 'connection' and start Thread.
- Parameters:
- - connection an Connection Object
- upnpUtil an UpnpAVLevel1SASupport Object
string parseDeviceResponse(IXML_Document* changes, string key)
-
Parse the XML response from devices
- Parameters:
- changes - a IXML_Document Object
string - as key for finding particular node
- Returns:
- String Value of node specified by key
int getTimeSeconds(string time)
-
Convert the time response from device to seconds
- Parameters:
- string - as time in format 00:55:99
- Returns:
- Interger Value of time
IXML_Document* getRelativeTimePosition()
-
Get relative time postion
- Returns:
- IXML_Document Object response of relative time position
IXML_Document* getTransportState()
-
Get current transport state
- Returns:
- IXML_Document Object response of ransport state
void updateValues(string timePositionValue, string transportStateValue, string TotalTrackDuration)
-
updates the values to client
- Parameters:
- timePositionValue - a String Value of relative time position
transportStateValue - a String Value of transport state
TotalTrackDuration - a String Value of total track duration
void startPlaying()
-
Set a boolean variable for indication of playing to true
void stopPlaying()
-
Set a boolean variable for indication of playing to false
void pausePlaying()
-
Set a boolean variable for indication of playing to false
void setConnection(Connection* connection)
-
Set the local reference of Connection
- Parameters:
- - connection an Connection Object
Connection* getConnection()
-
get the local reference of Connection
- Returns:
- Connection Object
void checkForPlay()
-
Check item to play ie music or image
void updateConnectionElements(map<string, string>*rendererUpdates)
-
Called from the media renderer thread for updates
- Parameters:
- rendererUpdates - an Object of map<string,string> which contains key-value information of transportState, relativeTimePosition,currentURIMetaData,currentTrackURI,trackDuration.
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.