5

Does GWT support HTML5? I mean especially Canvas and WebSockets?

Regards

Peter Recore
  • 14,037
  • 4
  • 42
  • 62
cubesoft
  • 3,448
  • 7
  • 49
  • 91

5 Answers5

7

Maybe this video (from Google developers) can be of interest

http://www.youtube.com/watch?v=aW--Wlf9EFs

Federico klez Culloca
  • 26,308
  • 17
  • 56
  • 95
2

Most browsers still do not support these technologies without plugins, therefore direct support is not available.

WebSockets requires support from the server also, once again most servers do not support it yet. for WebSockets in GWT You could download this and use it:
http://code.google.com/p/gwt-websockets/

For the HTML5 Canvas look here:
http://code.google.com/p/gwt-canvas/
or here:
http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas

Romain Hippeau
  • 24,113
  • 5
  • 60
  • 79
  • 1
    Most (now, all as of IE9) browsers do support Canvas now. Websockets are different. And I'd like to point out that HTML5 does *not* include WebSockets. (Same goes for Geolocation). They may be considered for addition to the spec, but they are separate standards right now. – Mark Renouf Nov 13 '10 at 15:40
1

I wrote a GWT library for handling Media elements (Video and Audio). It allows for full progammatic control and allows access to all the events that the elements are supposed to fire. All wrapped up in a nice GWT widget/element combo.

GWT HTM5 Media (GitHub)

Mark Renouf
  • 30,697
  • 19
  • 94
  • 123
0

Yes, they have nothing to do with GWT.

Matthew H
  • 5,831
  • 8
  • 47
  • 82
0

Yes, GWT explicitly supports some HTML5 features.

Cavas is supported, Websockets are not supported by default, but there are projects around which address this task:

barfuin
  • 16,865
  • 10
  • 85
  • 132