Tuesday, April 22, 2014

HTML5 Audio onCanPlayThrough()

Hi all,
I don't see the message !!

What am I doing wrong?

I'm using GWT 2.6,FF,CHROME

Thanks in advance

Audio audio=Audio.createIfSupported();
.setSrc("sound.mp3");// 300KB size
.addCanPlayThroughHandler(new CanPlayThroughHandler() {
public void onCanPlayThrough(CanPlayThroughEvent event) {
// TODO Auto-generated method stub
Window.alert("mp3 loaded");

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment