×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2013
    Posts
    2

    Video looping flickering issue on Asha SW platform

    I'm trying to play short videos (2-20 seconds) in a continuous loop in a Java app. I'm using Player component to render the video on Canvas based view.

    The problem is that on Nokia Asha Software Platform 1.0 the video flickers almost every time when it starts again from the beginning. By flickering I mean showing of a couple of black frames, which is very annoying on light-colored video. This issue is reproducible on the emulator as well as on Nokia Asha 501 device. However, it is NOT occurring on S40 devices, like Nokia Asha 311, where it loops very smoothly.

    Has anyone else struggled with the problem and possibly found some solution? Is this a known platform bug?

    A simple code playing a video and reproducing the problem is like the following:

    Code:
    import javax.microedition.media.Player;
    import javax.microedition.media.control.VideoControl;
    ...
    
    InputStream is = getClass().getResourceAsStream("/video.mp4");
    Player player = Manager.createPlayer(is, "video/mp4");
    player.realize();
    player.prefetch();
                
    VideoControl vc = (VideoControl)player.getControl("VideoControl");
    vc.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
    vc.setDisplaySize(240, 180);
    vc.setVisible(true);
    
    player.setLoopCount(-1);
    player.start();

  2. #2
    Registered User
    Join Date
    Nov 2013
    Posts
    2

    Re: Video looping flickering issue on Asha SW platform

    Well, there seems to be no solution for the video flickering. I have tried all kinds of sane and insane workarounds but the problem remains the same. I conclude it is a feature of the current platform video playback implementation.

    Anyhow, if the information helps anyone else, in my use case I decide to convert the short MP4 videos to a series of lower frame rate JPG images and implemented a simple Timer based animation player to show the JPG frames one after another in a loop.

Similar Threads

  1. [RSA] Decryption in Asha platform
    By pvhau in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2013-11-10, 18:23
  2. SIP web App in Asha platform
    By J2ME MultiComm in forum General Development Questions
    Replies: 1
    Last Post: 2013-08-07, 09:09
  3. Why it says not compatible for Asha Platform?
    By nemoryoliver in forum Nokia Asha Web Apps
    Replies: 4
    Last Post: 2013-05-13, 18:10
  4. Flickering issue in Nokia6280
    By jihadrh in forum Mobile Java Games
    Replies: 2
    Last Post: 2008-03-01, 08:03

Posting Permissions

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