×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    7

    j2me video : how to diplay in full screen

    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

  2. #2
    Registered User
    Join Date
    Dec 2009
    Posts
    376

    Re: j2me video : how to diplay in full screen


  3. #3
    Registered User
    Join Date
    May 2011
    Posts
    7

    Re: j2me video : how to diplay in full screen

    i read it but i did not find useful answer.

    how to display video in full size?

  4. #4
    Registered User
    Join Date
    May 2011
    Posts
    6

    Re: j2me video : how to diplay in full screen

    I believe you are facing the same issues as I am in this thread: http://discussion.forum.nokia.com/fo...on-S40-devices

Similar Threads

  1. 3gp video in full screen
    By Red Falcon in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2008-05-29, 07:23
  2. Autostart a video in full screen mode
    By Alco Fresh in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2007-02-19, 08:03
  3. Autostarting Video in Full Screen Mode
    By Alco Fresh in forum Mobile Java General
    Replies: 1
    Last Post: 2007-02-17, 02:24
  4. video Playing in full screen
    By impankaj24 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-09-01, 05:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×