[b]
I want add video from My Local File in my project…
&
How to create HTML5 File?
this is path of my video==== " D:/Kshitij/Movie/01Akasy hits-Aayega maja ab barsatka.mp4"
I Do Following way but not working…
[/b]
package com.example.feedba;
import com.vaadin.terminal.ExternalResource;
import com.vaadin.ui.Button;
import com.vaadin.ui.Video;
import com.vaadin.ui.Window;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
@SuppressWarnings(“serial”)
public class Feedback extends Window {
/**
* @param string
*
*/
public Feedback(String string) {
super();
this.setCaption( "Video Lib" );
final Video v = new Video( "video" );
v.setSources( new ExternalResource( "file:///D:/Kshitij/Movie/01Akasy hits-Aayega maja ab barsatka.mp4" ),
new ExternalResource( "file:///D:/Kshitij/Movie/01Akasy hits-Aayega maja ab barsatka.ogv" ) );
v.setWidth( "640px" );
v.setHeight( "360px" );
addComponent( v );
addComponent( new Button( "Play video", new ClickListener() {
public void buttonClick( ClickEvent event ) {
v.play();
}
} ) );
addComponent( new Button( "Pause video", new ClickListener() {
public void buttonClick( ClickEvent event ) {
v.pause();
}
} ) );
}
public Feedback() {
// TODO Auto-generated constructor stub
}
}
[b]
Please Help to me…i
thanks…advance
[/b]