Re: mp3 resources - can they be played from within GWT?
Yes, GWT includes an Audio class: http://google-web-toolkit.googlecode.com/svn/javadoc/2.5/com/google/gwt/media/client/Audio.html
However, not all browsers support all formats, e.g. Firefox doesn't support mp3: http://en.wikipedia.org/wiki/HTML5_Audio
So you may have to serve the file in multiple formats. More background on HTML5 audio: http://html5doctor.com/html5-audio-the-state-of-play/
On Sunday, October 7, 2012 2:59:00 AM UTC+2, jones34 wrote:
Is there any way (a widget, maybe) I can play an MP3 that I have as gwt resource, without leaving gwt or sending the user to a new browser tab? An MP3 player widget, maybe?thanks
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/qwIUytVQR6QJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home