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 (for example, 2-5 will play tracks 2 through 5) or a comma (for example, 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
- Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
- To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.
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" />