class ConPlayThread

It handle the task of continuous playing and pooling.

Public Fields

[more]Logger* logger
logger is Instance of Logger class.
[more]string rendererUDN
rendererUDN a String value of renderer UDN
[more]Connection* connection
connection a Connection Object
[more]bool allowPlayNext
allowPlayNext a boolean value indicating whether to play continour or not
[more]UpnpAVLevel1SASupport* upnpUtil
upnpUtil a UpnpAVLevel1SASupport Object
[more]ithread_t threadId
threadId a ithread_t for thread
[more]bool playMusic
playMusic a boolean indicating continous playing is music or video
[more]bool playImage
playImage a boolean indicating continous playing is picture
[more]int pollingRate
pollingRate a integer value indicating polling rate for continous playing
[more]int frameDelay
frameDelay a integer value indicating delay between two pictures showing
[more]bool singlePlay
singlePlay a boolean value indicates single play only
[more]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

[more] ConPlayThread(Connection* connection, UpnpAVLevel1SASupport* upnpUtil)
Assign the reference of Connection to the local variable 'connection' and start Thread.
[more]string parseDeviceResponse(IXML_Document* changes, string key)
Parse the XML response from devices
[more]int getTimeSeconds(string time)
Convert the time response from device to seconds
[more]IXML_Document* getRelativeTimePosition()
Get relative time postion
[more]IXML_Document* getTransportState()
Get current transport state
[more]void updateValues(string timePositionValue, string transportStateValue, string TotalTrackDuration)
updates the values to client
[more]void startPlaying()
Set a boolean variable for indication of playing to true
[more]void stopPlaying()
Set a boolean variable for indication of playing to false
[more]void pausePlaying()
Set a boolean variable for indication of playing to false
[more]void setConnection(Connection* connection)
Set the local reference of Connection
[more]Connection* getConnection()
get the local reference of Connection
[more]void checkForPlay()
Check item to play ie music or image
[more]void updateConnectionElements(map<string, string>*rendererUpdates)
Called from the media renderer thread for updates


Documentation

It handle the task of continuous playing and pooling.
oLogger* logger
logger is Instance of Logger class. This will log the information, warning and error messages depending upon the debug level set by user.

ostring rendererUDN
rendererUDN a String value of renderer UDN

oConnection* connection
connection a Connection Object

obool allowPlayNext
allowPlayNext a boolean value indicating whether to play continour or not

oUpnpAVLevel1SASupport* upnpUtil
upnpUtil a UpnpAVLevel1SASupport Object

oithread_t threadId
threadId a ithread_t for thread

obool playMusic
playMusic a boolean indicating continous playing is music or video

obool playImage
playImage a boolean indicating continous playing is picture

oint pollingRate
pollingRate a integer value indicating polling rate for continous playing

oint frameDelay
frameDelay a integer value indicating delay between two pictures showing

obool singlePlay
singlePlay a boolean value indicates single play only

obool 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

o 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

ostring 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

oint 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

oIXML_Document* getRelativeTimePosition()
Get relative time postion
Returns:
IXML_Document Object response of relative time position

oIXML_Document* getTransportState()
Get current transport state
Returns:
IXML_Document Object response of ransport state

ovoid 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

ovoid startPlaying()
Set a boolean variable for indication of playing to true

ovoid stopPlaying()
Set a boolean variable for indication of playing to false

ovoid pausePlaying()
Set a boolean variable for indication of playing to false

ovoid setConnection(Connection* connection)
Set the local reference of Connection
Parameters:
- connection an Connection Object

oConnection* getConnection()
get the local reference of Connection
Returns:
Connection Object

ovoid checkForPlay()
Check item to play ie music or image

ovoid 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++.