2011-03-13 73 views
0

我想用下面的代码播放.wav文件的序列。我的问题是有时候所有文件都会一次一次地播放。简单地说,xyz.wav文件是随机播放的。有没有办法thread.sleep或等到一个文件完成播放音频? <<ice:outputMedia>和<ui:repeat>

(UI:重复值= “#{captcha.imageSpeechFiles}” VAR = “购物车” 渲染= “#{captcha.play}”> (冰:outputMedia源= “#{}购物” mime类型=“audio/x-wav”player =“windows”style =“width:0px; height:0px;”> (param name =“play”value =“true”/> (/ ice:outputMedia> /UI:重复>

回答

0

我解决我自己的问题,而不是冰:outputMedia标签,如果我们使用嵌入如下图所示它的做工精细

(UI:重复值=“#{} popup.imageSpeechFiles” var =“cart”rendered =“#{popup.play}”> (embed id =“embdwav”src =“#{cart}”autostart =“true”hidden =“true”/> (/ ui:repeat>