×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    45

    video recording problem in N70

    i used following code to show the camera display. it works fine in Nokia 6300. but when i replace "capture://video" with "capture://devcam0" and run the code on N70, only a white screen is shown in the display. what is the problem here? is my code ok? if not, can someone give me an insight about video recording in N70?

    Code:
    myPlayer = Manager.createPlayer("capture://video");
    myPlayer.realize();
    
    videoControl = (VideoControl) myPlayer.getControl("VideoControl");
    videoCanvas = new VideoCanvas();
    videoCanvas.initControls(videoControl, myPlayer);
    
    videoCanvas.addCommand(cmd_exit);
    videoCanvas.addCommand(cmd_capture);
    videoCanvas.setCommandListener(this);
    display.setCurrent(videoCanvas);
    
    myPlayer.start();
    below is the code of initControls method

    Code:
    public void initControls(VideoControl videoControl, Player player)
        {
            RecordingStart = false;
            int width = 0;
            int height = 0;
    
            this.vc = videoControl;
            this.plr = player;
    
            videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
            try
            {
                width = getWidth();
                height = getHeight();
                videoControl.setDisplayLocation(0, 0);
                videoControl.setDisplaySize(width, height);
            }
            catch (MediaException me)
            {
            }
            videoControl.setVisible(true);
        }

  2. #2
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: video recording problem in N70

    Does the "capture://video" work fine on N70? If yes, then use that instead of devcam0 (it is the same camera anyway - and I cannot remember if N70 supports the devcam0 at all as it is quite old phone...)

    Hartti

Similar Threads

  1. video recording problem using mmapi
    By ritusingh in forum Mobile Java General
    Replies: 0
    Last Post: 2010-03-04, 06:17
  2. Video Recording problem
    By vishaljaiswal in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2008-07-03, 10:43
  3. N70 Audio recording problem
    By codsw2 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-05-22, 01:06
  4. problem of voice recording in NOKIA N70
    By adiilah in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2008-03-13, 07:50
  5. N70 Video Recording problem
    By params7 in forum General Development Questions
    Replies: 6
    Last Post: 2006-09-06, 17:32

Posting Permissions

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