I’m using embedded flash video present on my local disk.
this is the code that i used:
import com.vaadin.terminal.ExternalResource;
import com.vaadin.ui.Embedded;
import com.vaadin.ui.VerticalLayout;
public class Video extends VerticalLayout {
private static final long serialVersionUID = -1525906869873914356L;
public Video() {
this.setMargin(true);
this.setSpacing(true);
this.setImmediate(true);
Embedded e = new Embedded(null, new ExternalResource(
"H:\\ffmpeg\\destin\\dostana.flv"
));
e.setMimeType("application/x-shockwave-flash");
e.setParameter("allowFullScreen", "true");
e.setWidth("800px");
e.setHeight("600px");
this.addComponent(e);
}
}
Well, this is working only in Firefox and Opera. In other browsers there is no video present, only a bank page appears. I checked the console, there is no error.
Can anyone identify where I’m going wrong?
Thanks in advanced.