I am sorry for the inconvenience,
Am getting an error message like “No video with supported format and MIME type found” while using Video component.
@Override
public void init() {
Window mainWindow = new Window(“Vaadin Application”);
Video video = new Video( "video" );
video.setSources(
new ExternalResource( "http://xxx/yy.mp4" ));
video.setAutoplay(true);
video.setWidth( "640px" );
video.setHeight( "360px" );
video.setHtmlContentAllowed(true);
mainWindow.addComponent(video);
setMainWindow(mainWindow);
setTheme("vaadintheme");
}
Runs well in Iphone-4s wit safari browser.
I have tested this with different browsers like Mozilla firefox(15.0.1), google chrome and internet explorer(version -8)
I have seen the previous posts and gone for alternative option as embedded in vaadin
@Override
public void init() {
Window mainWindow = new Window("Vaadin Application");
Embedded video = new Embedded("Video", new ExternalResource("http:///xxx/yy.mp4"));
video.setType(Embedded.TYPE_OBJECT);
video.setMimeType("application/x-shockwave-flash");
video.setParameter("allowFullScreen", "true");
video.setWidth("50%");
video.setHeight("360px");
mainWindow.addComponent(video);
setMainWindow(mainWindow);
setTheme("vaadintheme");
}
I have reffered the following link even,
“https://developer.mozilla.org/en-US/docs/HTML/Supported_media_formats?redirectlocale=en-US&redirectslug=Media_formats_supported_by_the_audio_and_video_elements”
And tried with Internet Explorer,But am getting the same results.
It shows an empty box where the video is to play, and tested this with different browsers like Internet Explorer,Google chrome and Mozilla firefox.
Thanks in Advance for your kind reply.
regards,
Aravind