I have game (build in libgdx) I use GWT to convert it to html5
I need to show cinematic videos in it
is there any way to do it? I need to work my game on cross platform
Use the widget Video. It represents HTML5 tag video. But this widget may not work properly on all browsers.
You can read about other HTML5 features supporting by GWT in the documentation.
I used http://code.google.com/p/gwt-html5-video/downloads/list
to show videos
VideoWidget videoPlayer = new VideoWidget(true, false, null);
List<VideoSource> sources = new ArrayList<VideoSource>();
sources.add(new VideoSource(video, VideoType.MP4));
videoPlayer.setSources(sources);
videoPlayer.setPixelSize(960, 640);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With