Playing MP3 and AVI in GWT application

656 views
Skip to first unread message

shahid

unread,
Jul 13, 2011, 12:10:59 PM7/13/11
to Google Web Toolkit
What is the best way to support playing MP3(audio) and AVI (video)
files in a GWT application. We have gone a long way into developing
our application on top of GWT and now we have a requirement to support
playing mp3 and avi files. However I can't find a widget or player
that I can use with GWT to support both of these formats. Has anyone
used this functionality in your application and how? What is the best
practice ?

David Chandler

unread,
Jul 13, 2011, 12:45:56 PM7/13/11
to google-we...@googlegroups.com
HTML5 to the rescue...


http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/media/client/Audio.html


The APIs are changing slightly in GWT 2.4 to enable you to more easily specify multiple formats.

/dmc


--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
David Chandler
Developer Programs Engineer, GWT+GAE
w: http://code.google.com/

shahid

unread,
Jul 14, 2011, 4:12:19 AM7/14/11
to Google Web Toolkit
The trouble is HTML 5 is not supported on majority of the user's
browser. Also what do you do for backward compatibility?

On Jul 13, 5:45 pm, David Chandler <drfibona...@google.com> wrote:
> HTML5 to the rescue...
>
> http://www.slideshare.net/turbomanage/gwt-plus-html-5
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...

Alain Ekambi

unread,
Jul 14, 2011, 4:41:13 AM7/14/11
to google-we...@googlegroups.com
You still can fallback to Flash if the HTML5 features are not supported i would say.

2011/7/14 shahid <shahi...@gmail.com>



--


Rob Coops

unread,
Jul 14, 2011, 4:44:21 AM7/14/11
to google-we...@googlegroups.com
Then there is only one real solution, Adobe Flash...

Pretty much everyone and their mother has a Flash Player installed (for those that do not use HTML5 (Apple iStuff is the main group there without Flash)). If you set the system to prefer HTML5 and then switch back to Flash if this is not available you are future proof and able to deal with what ever way that coin will flip.

For the widget simply use two and load which ever one the users browser will support. If the users browser is capable to deal with HTML5 like Chrome or Firefox you simply load the HTML5 widget, if you are being visited by an older IE version simply push the Flash version over.

Using MVP you would simply have to views and a few lines of code to decide which one to show the user not unlike deciding to show the user the mobile version of the view instead of the full fledged desktop version.

Regards,

Rob

dreamer

unread,
Jul 14, 2011, 6:24:07 AM7/14/11
to Google Web Toolkit
Hi,

We don't have to build the page entirely using GWT widgets,
if playing these in any html is possible, it should be possible even
with GWT.
with HTML5 it is snap to implement this, but GWT does not prevent to
launch player and play anything you want.

Even you can mix Flash with GWT.

You can build your site almost with 99% with pure HTML and just WITH
one or two GWT widgets.
Still it is GWT app.

GWT is just a javascript, how much you want in your page, that is up
to you.
My wish is to go 100% and develop like in Visual Basic using GWT
designer. May be couple of more years to realize this.

Even add RPC/actions to buttons, should be under the hood, developer
should add method, and just
should declare, if it is client or server. GWT should take care. I
have to come up with whole new proxy pattern to achieve this, to mask
my client code.


-Venu
http://schoolk12.appspot.com/
Reply all
Reply to author
Forward
0 new messages