×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    May 2005
    Posts
    75

    White background with CVideoPlayerUtility on Symbian^3

    Hi,

    As many other discussion threads seem to discuss, people have problems with getting visible video with CVideoPlayerUtility on Symbian^3. http://www.developer.nokia.com/Commu...r_applications explains the issue, but doesn't really spell out what to do in order to solve the issue, only says:

    make sure their UI is drawn correctly with ScreenPlay architecture and surface composition
    The common knowledge seems to be not to do gc.Clear() at all, which works, but that leaves the background outside of the video white, when I would like it to be black instead.

    // Martin

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,696

    Re: White background with CVideoPlayerUtility on Symbian^3

    The suggestion says that you should not draw anything where the video is going to be rendered. But you can freely display anything around it. 4x gc.Clear(TRect) or DrawRect can probably help for example.

  3. #3
    Regular Contributor
    Join Date
    May 2005
    Posts
    75

    Re: White background with CVideoPlayerUtility on Symbian^3

    Ok, so the user is supposed to calculate the dimensions of the video and just draw outside of that? Or is that area actually drawn by the video player available somehow?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,696

    Re: White background with CVideoPlayerUtility on Symbian^3

    I guess it is the "const TRect &aClipRect" argument of CVideoPlayerUtility::NewL

  5. #5
    Regular Contributor
    Join Date
    May 2005
    Posts
    75

    Re: White background with CVideoPlayerUtility on Symbian^3

    Nope, in all examples I've seen, that's just set to the same as the aScreenRect argument - e.g. in http://www.developer.nokia.com/Commu...oPlayerUtility. Since it's a const reference, you don't get anything returned in it, and you can't really know the video dimensions before actually having the player open the video for you...

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,696

    Re: White background with CVideoPlayerUtility on Symbian^3

    Yes, I know what const references do, just I do not often use this API and I have thought it would fill the passed rectangle(s) with the video.
    There are some getter methods however: VideoFrameSizeL, perhaps GetCropRegionL (though this latter one probably returns the cliprect).

  7. #7
    Regular Contributor
    Join Date
    May 2005
    Posts
    75

    Re: White background with CVideoPlayerUtility on Symbian^3

    Yes, some of those methods could probably be used, although it feels kinda fragile to calculate it manually (either risking painting over part of the video, or leaving a thin white line between the video and the black background).

    Anyway, I solved the issue this way now:

    Code:
    Window().SetBackgroundColor(KRgbBlack);
    I was looking for such a method before, but didn't find it until now.

Similar Threads

  1. Playing videos in Symbian^3 with CVideoPlayerUtility
    By symbi4n_programmer in forum Symbian
    Replies: 8
    Last Post: 2011-02-22, 12:15
  2. CEikEdwin , Outline not visible on White Background..
    By gmsk19 in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-01-30, 05:51
  3. White background on icons in Theme Studio 1.2.1
    By nsquared in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2006-02-24, 20:37

Posting Permissions

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