The following example plays track 1 of a CD, waits for 20 seconds and then stops the CD playing.
var CD = CreateCDPlayer();CD.Play(1);wait(20);CD.Stop();