×

Discussion Board

Results 1 to 7 of 7

Thread: HELPPP PLZ

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    19

    Exclamation HELPPP PLZ

    Hello Guys,


    I'm working on this Mobile video and camera project on my Nokia 6300, but I'm facing this problem

    Code:
    videoControl=(VideoControl)(midlet.MyPlayerControl.CapturePlayer.getControl("javax.microedition.media.control.VideoControl"));
    recControl=(RecordControl)midlet.MyPlayerControl.CapturePlayer.getControl("javax.microedition.media.control.RecordControl");
    Where VideoControl is used to view the video Capture and to take snapShots by the
    Code:
    videoControl.getSnapshot(null);
    x method

    where as the recControl is used to record video, now in the emulator everything works fine, but on my 6300 device the recording goes well, bbut snapShots gives me a null pointer exception, I dont get it.

    Can anyOne help plz.
    Thnx Guys

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: HELPPP PLZ

    Hi,

    have you tried simply using:

    Code:
    getControl("VideoControl")
    instead of
    Code:
    getControl("javax.microedition.media.control.VideoControl")
    ?
    Pit

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    19

    Re: HELPPP PLZ

    Quote Originally Posted by jappit View Post
    Hi,

    have you tried simply using:

    Code:
    getControl("VideoControl")
    instead of
    Code:
    getControl("javax.microedition.media.control.VideoControl")
    ?
    Pit
    thnx for the reply, but anyway thats not the soln, coz the video capture already appears on the screen!!!!, the problem is in capturing snapShots, something goes wrong

  4. #4
    Registered User
    Join Date
    Mar 2008
    Posts
    19

    Re: HELPPP PLZ

    I got it , the return value of the videoControl.getSnapshot(null);
    returns null each time it is invoked in my device, but it works well in the emualtor. so any suggestions guys?

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

    Re: HELPPP PLZ

    Which capture locator are you using? You chould use "image" not "video" on Series 40 devices

    Hartti

  6. #6
    Registered User
    Join Date
    Jun 2004
    Posts
    7

    Re: HELPPP PLZ

    Hi, I had the same problem. The error was that I called player.stop() before videoControl.getSnapshot(null). Works fine if you don't stop the player.

    cheers, teric

  7. #7
    Nokia Developer Expert
    Join Date
    May 2007
    Location
    Mexico D.F
    Posts
    351

    Lightbulb Re: HELPPP PLZ

    Hello

    Had the same problem before with a S40 3ed... try this

    1. Use the locator "capture://image" ...

    2. try this encoding: "enconding=image/jpg" (will not work on Wireless toolkit emulator... try s40 3ed emulator)

    Anyway... you can know the allowed encodings by making a very simple midlet, run it and display the encodings

    ----
    String s = System.getProperty("video.snapshot.encodings");
    Form f=new Form("codificacion");
    f.append(s);
    Display.getDisplay(this).setCurrent(f);
    ----

    Try that... and let us know

Similar Threads

  1. How to show image on click any event......plz urgent
    By pashraj in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2008-01-29, 05:31
  2. Grid: help PLZ (Urgent)
    By diptivs in forum Symbian
    Replies: 3
    Last Post: 2008-01-01, 03:49
  3. Plz tell me easy method to cut image from the strip
    By mwm786 in forum Mobile Java General
    Replies: 1
    Last Post: 2005-02-01, 10:12
  4. Replies: 1
    Last Post: 2004-03-26, 09:53
  5. yes plz. thanks
    By jump_912 in forum Bluetooth Technology
    Replies: 0
    Last Post: 2003-11-21, 17:11

Posting Permissions

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