Play video in Vaadin -


i'm beginner vaadin, , have problem when play video. video plays file size of video although set fixed dimensions. can me? much!

my code :

public class videopreview extends csslayout{      video video;      public videopreview(string uri) {         video = new video(null, new externalresource(uri, "video/mp4"));         video.setalttext("can't play video");         video.setautoplay(true);         video.setwidth("320px");         video.setheight("265px");         addcomponent(video);     } }  

can check code vaadin sampler :  embedded e = new embedded(null, new externalresource(             "http://www.youtube.com/v/mexvxkn1y_8&hl=en_us&fs=1&"));     e.setalternatetext("vaadin eclipse quickstart video");     e.setmimetype("application/x-shockwave-flash");     e.setparameter("allowfullscreen", "true");     e.setwidth("320px");     e.setheight("265px");     addcomponent(e); works me both chrome , firefox. think firefox addons may cause problem. 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -