-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hi i have problem when i call Audio.setSrc("http://mydomain.com/1.mp3"); first time i click button it not working if i click again (not change src ) it working please help
audio.zul
<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<window title="new page title" border="normal">
<textbox id="s"></textbox>
<audio id="p"></audio>
<button id="play" label="Play" onClick="getAudio()" ></button>
<zscript>
getAudio()
{
p.setSrc(s.getText());
p.play();
}
</zscript>
</window>
</zk>
Hi you can try
p.setSrc(s.getText());
p.invalidate();
p.play();
Asked: 2013-10-30 04:00:21 +0800
Seen: 11 times
Last updated: Nov 26 '13