java me - Trouble with Video j2me -


i want play video in j2me,the code using

       int index = 0;           loadvideo(index);           string url = "file:///e:/videos/abc.3gp";                 try{                         player p = manager.createplayer(url);                         p.realize();                          //get video controller                         videocontrol video = (videocontrol) p.getcontrol("videocontrol");                          //get gui display video                         item videoitem = (item)video.initdisplaymode(videocontrol.use_gui_primitive, null);                        //videoitem.setpreferredsize(100, 200);                         //append gui form                        form.append(videoitem);                         display.setcurrent(form);                          //start video                         p.start();                }catch(ioexception ioe){ } catch(mediaexception me){ } 

the problem video playing in in small screen mode, how can make fit fit display, pls me....

you should use videocontrol

videocontrol.setdisplaysize(width, height);

note: in nokia phone 3gp video not scale.

hope you.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -