I'm going to provide the same response for this and your similar question about video (http://groups.google.com/group/Google-Web- Toolkit/browse_frm/thread/9276cb86ebc94ffa?hl=en), as the two questions are related.
You can embed audio and video in GWT applications, but, in general, GWT needs to invoke a player (QuickTime, Flash) in order to play media. There are various ways to do this, depending on your needs. For instance, if you can assume the presence of QuickTime, you can embed a player like this: http://support.apple.com/kb/TA26485?viewlocale=en_US My company actually did this for a recent project until we discovered that QuickTime does not work properly on Windows 64, at which point we switched to Flash (and the JW FLV player, http://www.longtailvideo.com/players/jw-flv-player/) which we embed with the swfobject javascript library (http:// code.google.com/p/swfobject/) that also comes packaged with JW FLV. We invoke this through GWT with JSNI. There seem to be a number of open source wrappers around the various players too, if you want to go that route. I only can comment on gwt- voices, which works well, but which we could not use as we needed pause and seek support. Janet -- Janet Leland Designing Patterns, LLC http://www.designingpatterns.com On Apr 21, 11:49 pm, "fker...@gmail.com" <fker...@gmail.com> wrote: > I wanted to be able to play sound files in a GWT application. Googling > around, I found gwt-voices athttp://code.google.com/p/gwt-voices/but > I'd like to know if this is the best way to go, or if am I missing > something? How do you play audio in GWT? > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---