问题
Does GWT support HTML5? I mean especially Canvas and WebSockets?
Regards
回答1:
Maybe this video (from Google developers) can be of interest
http://www.youtube.com/watch?v=aW--Wlf9EFs
回答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
回答3:
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)
回答4:
Yes, they have nothing to do with GWT.
回答5:
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)
来源:https://stackoverflow.com/questions/3502291/gwt-support-for-html5