public void initialize() {
add(new Label("This demo will not work at all under IE or Opera."));
video = new Video("media/video.ogg");
video.setControls(true);
add(video);
video.addPlayHandler(new PlayHandler() {
@Override
public void onPlay(PlayEvent event) {
video.setWidth(video.getVideoWidth());
video.setHeight(video.getVideoHeight());
getPrimarySurface().setWidth(video.getVideoWidth());