×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    11

    VideoPlayer, screen flickering

    Hi

    I'm showing a video stream on a Canvas like this:
    videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);

    On the top of the screen I paint the volume bar.
    Every time the volume bar is changed (canvas repaint), video flickers.

    Is there any way to avoid screen flickering when painting on a Canvas during video streaming?
    btw: On N95 the midlet works ok. 6120, N72 flicker heavily.

    thanks

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

    Re: VideoPlayer, screen flickering

    Hi,

    a possible workaround could be to repaint only the volume region, and not the whole Graphics area, with the repaint(int x, int y, int width, int height) method.

    Hope it helps,
    Pit

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    11

    Re: VideoPlayer, screen flickering

    Hi

    I've tried that. Doesn't help.
    Even if the paint() method is totally empty, it still flickers.

    every call to "repaint(); serviceRepaints();" makes it flicker.

    But there surely must be a solution for it.

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    11

    Re: VideoPlayer, screen flickering

    I've found a way to fix it.

    since there was no response to this thread, I guess nobody had the same problem.

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

    Re: VideoPlayer, screen flickering

    Hi 223224255,

    personally speaking, I think that posting solutions to development issues is always a good thing. The lack of responses to a question could be due to very different reasons: one of the most usual is that nobody has a solution to your specific problem.. so, posting the one you've found would be even more useful

    Cheers,
    Pit

  6. #6
    Registered User
    Join Date
    Mar 2003
    Posts
    11

    Re: VideoPlayer, screen flickering

    Hi

    It's quite simple.

    You need to call repaint(x,y,w,h) instead of paint().
    And the repaint rectangle must not intercept with video player.

  7. #7
    Registered User
    Join Date
    Mar 2003
    Posts
    11

    Re: VideoPlayer, screen flickering

    Works ok on NSeries. Probably also on other phones.

  8. #8
    Regular Contributor
    Join Date
    Oct 2008
    Location
    Bangalore,India
    Posts
    129

    Re: VideoPlayer, screen flickering

    Hi 223224255 ,

    Even i tried repaint(particular location) seems didnt work on E71.
    Do u suggest some way to avoid flickering.
    The base for flickering is when increasing volume using volume ctrl which will be extremely down the screen.

    Regards,
    kusuma

  9. #9
    Regular Contributor
    Join Date
    Oct 2008
    Location
    Bangalore,India
    Posts
    129

    Re: VideoPlayer, screen flickering

    Hi

    Just avoid calling repaint in playerUpdate method and flickering goes off.

    Kusuma

Similar Threads

  1. My 6288 screen is flickering
    By mttw001 in forum General Development Questions
    Replies: 2
    Last Post: 2008-07-14, 07:42
  2. Problem with E90 and secondary screen
    By Tatanka.nbr1 in forum Symbian
    Replies: 5
    Last Post: 2008-06-27, 10:01
  3. N80 Screen flickering problem
    By hanno in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2007-06-29, 12:26
  4. Screen Flickering!
    By Priju Jacob Paul in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-07-27, 15:00
  5. Screen flickering
    By rave_symbian in forum Symbian
    Replies: 0
    Last Post: 2003-12-03, 06:48

Posting Permissions

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