×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    6

    pause/resume video midlet issue

    Hi,

    I have a midlet used for taking snapshots using the MMAPI. The problem is that if i have the video canvas on the display and i receive a phone call my application is paused but when it comes back the screen freezes. Even if this happens i can still take pictures, but the video canvas is not showing what it should.

    This is how i create the player and the video control:

    player = Manager.createPlayer("capture://video");
    player.realize();
    videocontrol = (VideoControl) player.getControl("VideoControl");
    videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
    videoControl.setDisplayFullScreen(true);
    videoControl.setVisible(true);
    Canvas videocanvas = new PhotoCanvas(videocontrol, this);
    player.start();
    display.setCurrent(videocanvas);

    These are the functions called by startApp() and pauseApp():

    public synchronized void startCamera() {
    if (player != null) {
    player.start();
    videocontrol.setVisible(true);
    }
    }

    public synchronized void stopCamera() {
    if (player != null) {
    videocontrol.setVisible(false);
    player.stop();
    }
    }

    This code works on the Sun Emulator , but tested on Nokia E51 it has the effect described above.

    Regards,
    Radu

  2. #2
    Registered User
    Join Date
    Nov 2007
    Posts
    3

    Re: pause/resume video midlet issue

    Hi,

    I've got the same problem on Nokia devices. My code is almost equal to yours and works fine on Sun emulator and other devices from SonyEricsson, Motorola or Samsung.

    Have you find the solution yet? Anybody has any idea of this?

    Cheers,
    María

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    20

    Re: pause/resume video midlet issue

    I've got the same problem when I call stop and restart the player, the player is sort of freeze. I think it is because of this statement at URL
    http://lamp.epfl.ch/~linuxsoft/java-...er.html#start()

    "If the Player was previously stopped by calling stop or reaching a preset stop time, it will resume playback from where it was previously stopped "

    Therefore, I think it will freeze because it playback from where it was previously stopped

  4. #4
    Registered User
    Join Date
    Jun 2008
    Posts
    6

    Re: pause/resume video midlet issue

    Hi,

    I still haven't found any solution to it. Does anyone know a workaround for this?

    Thanks,
    Radu

Similar Threads

  1. Midlet and native video player
    By greggiannis in forum Mobile Java General
    Replies: 3
    Last Post: 2010-12-23, 10:16
  2. 6280 video & sound
    By jascco in forum Mobile Java Media (Graphics & Sounds)
    Replies: 14
    Last Post: 2008-10-10, 08:25
  3. Video Play issue
    By a21204 in forum Streaming and Video
    Replies: 4
    Last Post: 2008-08-06, 07:36
  4. N95 signed midlet installation issue
    By jet-lee in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2007-11-09, 20:11
  5. How to create two instances of midlet
    By marquito99 in forum Mobile Java General
    Replies: 0
    Last Post: 2004-04-30, 01:33

Posting Permissions

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