Does GWT suppor开发者_JAVA技巧t HTML5? I mean especially Canvas and WebSockets?
Regards
Maybe this video (from Google developers) can be of interest
http://www.youtube.com/watch?v=aW--Wlf9EFs
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
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)
Yes, they have nothing to do with GWT.
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:
- gwt-websockets
- WebSockets for GWT
- more to be found by googling (I can't recommend a particular project from personal experience, I'm afraid)
精彩评论