Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User dsiorpaes's Avatar
    Join Date
    Jun 2005
    Posts
    37
    Hi there, is there any API to control (i.e.: switch on/off) the flash LED on the Nokia 6680 ?


    thanks

  2. #2
    Nokia Developer Moderator petrib's Avatar
    Join Date
    Mar 2003
    Posts
    9,413
    I'm sure there is (otherwise the Camera app wouldn't be able to do it), but it is a hardware specific feature, which hasn't to my knowledge been documented in the published (and "generic" for all devices) Series 60 SDKs.

  3. #3
    Registered User hskopp's Avatar
    Join Date
    Apr 2003
    Posts
    4
    You can use the regular camera API. You need to use the API to record a video with flash light on (there's an option for this). The recorded streams can be thrown away, there's no need to display something in the viewfinder. Thus the user will not notice that actually a video is recorded - only the LED is running. Note that the flashlight is not very bright during video recording (you can try it with the installed camera app).

    Hans

  4. #4
    Registered User dsiorpaes's Avatar
    Join Date
    Jun 2005
    Posts
    37
    Hi, thanks for reply.
    I have written a very simple application as per your suggestion but the led does not power on during video recording. It just lights when capturing pictures.
    This is the code I am actually using to try to switch the led on during video recording. Am I missing something ?

    TCameraInfo iCamInfo;
    iCamera->CameraInfo(iCamInfo);
    iCamera->PrepareVideoCaptureL(CCamera::EFormatYUV420Planar, 0, 0, 1, iCamInfo.iMaxFramesPerBufferSupported);
    iCamera->SetFlashL(CCamera::EFlashForced);
    iCamera->StartVideoCapture();

  5. #5
    Registered User dsiorpaes's Avatar
    Join Date
    Jun 2005
    Posts
    37
    Ok, got it to work, but as you pointed out the LED is very dim... Anybody knows how it can be brightened ?

  6. #6
    Registered User sreerajvr's Avatar
    Join Date
    Oct 2010
    Location
    Trivandrum ,Kerala
    Posts
    135
    TCameraInfo iCamInfo;
    iCamera->CameraInfo(iCamInfo);
    iCamera->PrepareVideoCaptureL(CCamera::EFormatYUV420Planar, 0, 0, 1, iCamInfo.iMaxFramesPerBufferSupported);
    //iCamera->SetFlashL(CCamera::EFlashForced);
    iCamera->SetFlashL(CCamera::EFlashVideoLight);
    iCamera->StartVideoCapture();

    I tried this code in a Dual LED device but the flash will run for awhile and shut itself off within 2 seconds.Can you please help me?
    Last edited by sreerajvr; 2011-02-23 at 05:34.
    sreerajvr

  7. #7
    Nokia Developer Moderator petrib's Avatar
    Join Date
    Mar 2003
    Posts
    9,413
    It could be an intentional restriction by Nokia, and there might not be a workaround. It could also be a bug.

    If it is intentional or a bug, then you'd first need to convince Nokia to something about it, and then release a fix (which'd probably require a new firmware update for whatever phone model you are using).

    Alternatively, you could try digging into Symbian^3 source code and see if it can provide any enlightement.

    There is also Forum Nokia's paid technical support, if you want an official tech support reply.

  8. #8
    Registered User sreerajvr's Avatar
    Join Date
    Oct 2010
    Location
    Trivandrum ,Kerala
    Posts
    135
    Hello petrib,

    Thanks for the reply.(This problem persist with C7 and E7)
    I will try it..

    Best Regards,
    sreerajvr
    Last edited by sreerajvr; 2011-02-24 at 05:34.

  9. #9
    Registered User sreerajvr's Avatar
    Join Date
    Oct 2010
    Location
    Trivandrum ,Kerala
    Posts
    135
    "StartVideoCapture" is still active after the flash off ( I checked it with " iCamera->VideoCaptureActive() " ).
    sreerajvr

  10. #10
    Regular Contributor TongMuan's Avatar
    Join Date
    May 2008
    Location
    Surat Thani
    Posts
    166
    Quote Originally Posted by sreerajvr View Post
    I tried this code in a Dual LED device but the flash will run for awhile and shut itself off within 2 seconds.Can you please help me?
    Hi,

    Do you release the MCameraBuffer/MFrameBuffer in the video buffer callback function?

  11. #11
    Registered User sreerajvr's Avatar
    Join Date
    Oct 2010
    Location
    Trivandrum ,Kerala
    Posts
    135
    Thanks TongMuan for you reply..This program works all symbian devices execept symbian 3(dual flash) devices.
    sreerajvr

Similar Threads

  1. Flash Lite 1.1 use on Mobile
    By mathi77in in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-02-08, 19:13
  2. Flash to Mobile
    By mathi77in in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-05-25, 18:25
  3. Macromedia Flash Player 6+ for 9500
    By so_hail in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2005-04-13, 13:27
  4. Receiving Flash SMS using Nokia 30
    By kohhock in forum Nokia M2M
    Replies: 0
    Last Post: 2005-03-31, 10:12
  5. Can flash be added to mobile
    By zerglim in forum Symbian C++
    Replies: 0
    Last Post: 2004-06-11, 04:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved