×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2005
    Posts
    76

    playerUpdate not called for SnapshotControl events

    Hi,

    I'm not able to get PlayerListener events that comes from SnapshotControl, like SHOOTING_STOPPED, on N701 with Belle FP2. The picture is taken and saved where intended, however I do not know how to safely detect that it is done and I can close the view etc.

    In fact, the only events I get is "stopped" and "closed". I tried to register the listener just after player creation, after prefetching, after obtaining snapshot control - but it has no effect.

    Anyone has idea what could be wrong? Thanks.

    ---------

    final SnapshotControl snapshotCtrl = (SnapshotControl) player.getControl("javax.microedition.amms.control.camera.SnapshotControl");
    snapshotCtrl.setDirectory(...);
    snapshotCtrl.setFilePrefix(..);
    snapshotCtrl.setFileSuffix(..);
    snapshotCtrl.start(SnapshotControl.FREEZE);
    Last edited by hnipak; 2013-01-21 at 14:27.

  2. #2
    Registered User
    Join Date
    May 2005
    Posts
    76

    Re: playerUpdate not called for SnapshotControl events

    OK, seems that

    snapshotCtrl.start(1);

    works better, but - eventData for SHOOTING_STOPPED should be " a String containing the name of the last generated file." - in my case, generated file is pic-0001.jpg, however eventData is "a" ... ???
    Last edited by hnipak; 2013-01-21 at 17:10.

  3. #3
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: playerUpdate not called for SnapshotControl events

    strange though, according to http://www.developer.nokia.com/Commu...ken_in_JSR_234 you are doing it correctly...
    try to use that code instead and see if you're more succesfull ?!
    Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them.

Similar Threads

  1. Series 40 6th Edition shoot multiple pictures with SnapshotControl
    By mbode in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2012-01-14, 21:25
  2. keyPressed() and other Key Events handler are not called
    By raj_J2ME in forum Mobile Java General
    Replies: 10
    Last Post: 2010-10-11, 04:59
  3. Replies: 2
    Last Post: 2009-05-20, 09:37
  4. Video stops without a PlayerUpdate event
    By jdesmedt in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2009-04-29, 14:06
  5. playerUpdate(...)
    By tonem in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-10-11, 13:04

Posting Permissions

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