We have a program used html5 audio, it works well in IE, Chrome, Firefox, but failed in Safari of IOS. Could you help?zk/html:<audio id=au_captcha src=sound/A.wav height=0px width=0px></audio>Java:@Listen(onOK=#tbtnPlaySound)public void onOKTbtnPlaySound() {au_captcha.setSrc(/playSoundServlet?r= + Math.random()); au_captcha.setAutostart(true); au_captcha.setLoop(false); au_captcha.setVisible(true); au_captcha.invalidate();}playSoundServletprivate void playCaptchaSound(HttpServletRequest request,HttpServletResponse response, HttpSession session) { String sPath = request.getSession().getServletContext() .getRealPath(/).toString().replace(, /) + sound/; // Set to expire far in the past. response.setDateHeader(Expires, 0); // Set standard HTTP/1.1 no-cache headers. response.setHeader(Cache-Control, no-store, no-cache, must-revalidate); // Set IE extended HTTP/1.1 no-cache headers (use addHeader). response.addHeader(Cache-Control, post-check=0, pre-check=0);
1
0
576