Note: During running the program a CD data constancy is ensured till the next instant of the waiting service or till a change made by means of the program.
play CD from requested track
(default = 1)
The play CD from requested track command starts playing an audio CD from a track specified as a numeric parameter. Without the track number being specified the playback starts from the CD beginning (i.e. from track 1).
stop playing CD
The stop playing CD command stops the CD playback.
pause/continue playing CD
The pause/continue playing CD element enables to pause or to continue the audio CD playback. This element can be used as a logic variable, i.e. it can be entered or read. A validity flag means that the CD playback is paused. By using the command without entering a parameter the state will be switched over.
test playing CD
The test playing CD element returns a logic flag indicating whether the CD playback is running.
The eject CD element serves to eject or retract the CD door, and to detect the CD state. This element is used in a similar way as a logic variable. Setting to the validity flag causes the door to be ejected, setting to the invalidity flag causes the door to be retracted. Using the element as a command without any parameters causes the state to turn over provided that an audio CD is inserted (If no audio CD is inserted, the door is always considered to be open). Using the element in a logic term serves to test the audio CD not being ready (i.e. to test, whether the door is open or whether an audio CD is not inserted).
total length of CD
The total length of CD element returns the total length, expressed in seconds, of the inserted audio CD's records.
number of tracks of CD
The number of tracks element returns the number of tracks of the inserted audio CD.
position from the CD beginning
The position from the CD beginning element returns the position being played from the CD beginning. The position is given in seconds. The element may be used as a numeric variable; by setting the numeric value the playing position can be determined (the pause state remaining retained).
track being played
The track being played element returns the number of the track being played (numbered starting from 1). This element can be used as a numeric variable. By setting the numeric value the playback will be started from the track entered (the pause state remaining retained).
length of track being played
The length of track being played element returns the length of the track being played in seconds.
position from the track beginning
The position from the track beginning element returns the position being played from the beginning of the track being played. This position is given in seconds. This element can be used as a numeric variable; by setting the numeric value the position being played will be set (the pause state remaining retained).
Full Html Context Help of The Peter - Gemtree Software & Children Programming