Hi,
i implemented an j2me application to play video, but video size(w,h) is very small.
when i set video controller to full screen it is play just audio with no video.
how to play a video in j2me with full screen size?
Code:public void playerUpdate(Player player, String event, Object eventData) { // if the event is that the player has started, show the form // but only if the event data indicates that the event relates to newly // stated player, as the STARTED event is fired even if a player is // restarted. Note that eventData indicates the time at which the start // event is fired. if(event.equals(PlayerListener.STARTED) && new Long(0L).equals((Long)eventData)) { //check if media control video or not VideoControl vc = null; if((vc = (VideoControl)player.getControl("VideoControl")) != null) { try { //trying to set full video screen vc.setDisplayFullScreen(true); vc.setVisible(true); } catch (MediaException e) { e.printStackTrace(); } //try-catch Item videoDisp = (Item)vc.initDisplayMode(vc.USE_GUI_PRIMITIVE, null); this.append(videoDisp); } //check if video control not null } else if(event.equals(PlayerListener.CLOSED)) { this.deleteAll(); // clears the form of any previous controls } // check started or close } //method: process when update the video

Reply With Quote

