There is a sample in the sampler: http://demo.vaadin.com/sampler/#FlashEmbed
You can see the source by clicking "View Source" and it will show you something like this:
Embedded e = new Embedded(null, new ExternalResource(
"http://www.youtube.com/v/meXvxkn1Y_8&hl=en_US&fs=1&"));
e.setMimeType("application/x-shockwave-flash");
e.setParameter("allowFullScreen", "true");
e.setWidth("320px");
e.setHeight("265px");
addComponent(e);
Obviously, you need to change the ExternalResource to something else (e.g. FileResource, ClassResource, StreamResource, ...) in order to play local files.
source
share