How to play audio from the jar?
Hi,
I would like to play audio in the browser and I found this:
com.google.gwt.media.client.Audio
This class requires to set the audio source by calling:
setSrc (String url);
However, I have all my resources in the class path and I usually access them as an InputStream by calling Class.getResourceAsStream.
How can I pass such an audio file to the Audio class?
Thanks
Magnus
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/groups/opt_out.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home