Multimedia - CD control |
Declaration
<AMMULTIMEDIA ACTIVITY="cd_player" DRIVELETTER="text" ACTION="text (options)" TRACK="number" WAIT="YES/NO" /> |
Description
Controls the CD drive on the computer.
Practical Usage
Commonly used to simulate an alarm clock, server audio notification tool, radio music broadcast system or any other application that requires audio to be played. This activity supports audio cd operations only.
Parameters
General
Property |
Type |
Required |
Default |
Markup |
Description |
CD-ROM drive to use |
Text |
Yes |
(Empty) |
|
The drive letter of the CD-ROM that the command should be directed to. If set to "default" the default CD-ROM drive is used. |
Action |
Options |
Yes |
(None) |
|
The action that should be performed on the CD-ROM drive. If unsure, hover the mouse over each button to determine its action. The available options are:
|
Track |
Number |
Yes |
(Empty) |
|
The tracks that should be played. To specify multiple tracks, separate them with a dash (i.e. 2-5 will play tracks 2 through 5) or a comma (i.e. 1,5 will play tracks 1 and 5). Valid only when the Action parameter is set to Play,Resume or Play Track. |
Wait for tracks to finish before continuing task |
Yes/No |
No |
No |
WAIT="YES" |
If selected, causes the task to stop at the current step and not continue until the entire CD or the specified tracks have finished playing. When disabled, the CD Player will return and allow the task to continue immediately while the CD is playing. |
Examples
- The sample AML code below can be copied and pasted directly into the Steps Panel of the Task Builder.
- Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.
Example 1
This sample task goes to the previous track on the default CD drive and then waits until the track is finished playing before continuing.
<AMMULTIMEDIA ACTIVITY="cd_player" WAIT="YES" />
Example 2
This sample task plays the CD in the CD player labeled as the "F" drive.
<AMMULTIMEDIA ACTIVITY="cd_player" DRIVELETTER="F" />
Example 3
This sample task plays tracks 1 to 5 on the CD located in the default drive and then waits until the tracks are finished playing before continuing.
<AMMULTIMEDIA ACTIVITY="cd_player" DRIVELETTER="F" WAIT="YES" />