GWT support for HTML5

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 17:42:43

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!