I have a simple program that allows kids to follow-the-dots. At the end the photo appears and I would like a train whistle to sound. I have the following code which works great for the image to appear:
.circle {
background: url('start.png');
play-during: url('train.wav') auto;
width: 24px;
height: 24px;
text-align: center;
display:compact;
position:absolute;
cursor: none;
color: transparent;
z-index: 100;
}
But play-during does not cause the sound effect. I have tried mp3 and wav files. I have also tried cue-after. Any suggestions?
.circle {
background: url('start.png');
play-during: url('train.wav') auto;
width: 24px;
height: 24px;
text-align: center;
display:compact;
position:absolute;
cursor: none;
color: transparent;
z-index: 100;
}
But play-during does not cause the sound effect. I have tried mp3 and wav files. I have also tried cue-after. Any suggestions?