Flash content not working in Chrome, IE and Safari

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.

Hi,

I don’t know if this will help, but try to use FileResource instead of ExternalResource.

Or format the path as a URL, e.g. file://…

HTH,
/Jonatan

Thanks for the reply, but it didn’t work.
Instead i used this:

Embedded e = new Embedded(null, new ExternalResource(“http://localhost:8080/persona/dodstana.swf”));
and it worked!! You need to put the swf file inside the webcontent folder and configure your application server to redirect the request to this file. Thats it.

Thanks anyways.