×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    33

    how to draw text on video

    Hi,

    guys can any one give me idea how to overlap a text on video....

    i am currently playing my video full screen.. once the user taps on the screen i want to show some options like back, stop etc overlapping the video that currently been played .. how to do this ...i am suing SDK 5th edition

    i am quite new to symbian so not much idea about it...

    Regards,
    krushi

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: how to draw text on video

    If the video player API is behaving as it is with 3rd edition, then you should pause the video before drawing anything on top of it, othervise you'll have rece conditions on your note & video trying to draw on same palce at the same time, and you'll get loads of flickering.

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

    Re: how to draw text on video

    yes ur right, there is a flicker when i used direct screen access for drawing some thing on top of the video ....

    is there any way out..i don't what to pause the video

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: how to draw text on video

    Not that I know, since the normal Video API wants to work that way.

  5. #5
    Registered User
    Join Date
    Jul 2008
    Posts
    33

    Re: how to draw text on video

    is there any one on this forum who can help me in this plssss

  6. #6
    (Retired) Nokia Developer Admin.
    Join Date
    Jan 2006
    Location
    Michigan
    Posts
    4,664

    Re: how to draw text on video

    Quote Originally Posted by krushived View Post
    is there any one on this forum who can help me in this plssss
    Jukka just did, although it was not the answer you wanted, it was the definitive answer.

    Ron

  7. #7
    Registered User
    Join Date
    Jul 2008
    Posts
    33

    Re: how to draw text on video

    Hi Ron,

    Thank you for the replay.

    Do you mean that its not possible to do that with out pausing the video?

    i have seen real player (for s60 phones)which does overlay menus on the video with out pausing the video...

    it overlays

    1. progress bar
    2. back option
    3. options menu
    4. Next video icon
    5. previous video icon.

    while video is playing.....

    i want to do some thing similar.


    currently i am able to achieve full screen play back but once i play it full screen i cannot do any thing till the video play is complete as there is no menu option visible while video play back is going on.

    so once i tap on the screen (during the video play), i want to show a Back/pause option on top right corner of the screen overlaying the video.


    i have no clue how to do this. I tried using pointer event and direct screen access but nothing much happened.

    Regards,
    krushi

  8. #8
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: how to draw text on video

    I would suppose that Real player would not use the video player API available in public SDK, they could use lower level APIs, or they could have something that is completely done by them.

  9. #9
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    141

    Re: how to draw text on video

    Hi krushived,

    I'd the same problem a few weeks ago and i'd beat up it :)... Here's how i have solved it:
    1) You should not have problems with STATIC objects drawing, for example:
    a) first of all you should create a container window (wich will be a parent for the buttons);
    b) create a base class for the button;
    c) implement own events handler for the button and for the container (a).
    d) draw buttons;
    e) put buttons into container (a);
    f) each time when you need to hide buttons container (a), call method from CVideoPlayerUtility - which change video window context.

    2) Dynamic objects drawing is more complecated, i've solved it by placing text and slider bar inside rounded rectagle and the next redrawing of a small rectangle (wich is smaller ther rouded one). It looks very nice ;)

    Now i don't have flickering video or/and flickering controls.

    --
    Best Regards,
    Yuri

    Quote Originally Posted by krushived View Post
    Hi Ron,

    Thank you for the replay.

    Do you mean that its not possible to do that with out pausing the video?

    i have seen real player (for s60 phones)which does overlay menus on the video with out pausing the video...

    it overlays

    1. progress bar
    2. back option
    3. options menu
    4. Next video icon
    5. previous video icon.

    while video is playing.....

    i want to do some thing similar.


    currently i am able to achieve full screen play back but once i play it full screen i cannot do any thing till the video play is complete as there is no menu option visible while video play back is going on.

    so once i tap on the screen (during the video play), i want to show a Back/pause option on top right corner of the screen overlaying the video.


    i have no clue how to do this. I tried using pointer event and direct screen access but nothing much happened.

    Regards,
    krushi

  10. #10
    Registered User
    Join Date
    Jul 2008
    Posts
    33

    Re: how to draw text on video

    Dear shadow-2005,

    Thank you for ur replay... i am very new to symbian and not quite sure how to go about it .. can u share some examples or notes related to it.... ill be more glad if u can share the code which will write on top of the video..or the one u have tried


    u can mail the code if possible to my personal id ....

    krushived@yahoo.com

    any help will be appreciated.

    Thanks and regards,
    krushi
    Last edited by krushived; 2009-03-02 at 09:02.

  11. #11
    Registered User
    Join Date
    Jul 2008
    Posts
    33

    Re: how to draw text on video

    i am able to display text on top of the video using direct screen access but now what i want to do is.. say i am displaying "back" option on top of the video ...

    now once i click on back it should go to the previous view ...

    my "back" option is on top right corner of the screen ... how do i get the even that a user had tapped on that part of the screen.. i tried using pointer even but of not much help...
    Last edited by krushived; 2009-03-04 at 09:07.

  12. #12
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    141

    Re: how to draw text on video

    Hi krushived,

    Sorry for the delay in the answer, i'm very busy on the work... To handle touch events you should:
    1) overload HandlePointerEventL( const TPointerEvent& aPointerEvent ). If you did like i say before: create own class for the button and another one for the container... then you should check touch coordinates, and in case if they are belongs to the button's rect, you should trace event inside it.

    --
    Best Regards.

    Quote Originally Posted by krushived View Post
    i am able to display text on top of the video using direct screen access but now what i want to do is.. say i am displaying "back" option on top of the video ...

    now once i click on back it should go to the previous view ...

    my "back" option is on top right corner of the screen ... how do i get the even that a user had tapped on that part of the screen.. i tried using pointer even but of not much help...

  13. #13
    Registered User
    Join Date
    Jul 2008
    Posts
    33

    Re: how to draw text on video

    Thank you so much shadow


    I followed ur suggestion and got the result... :)

    Thanks a lot once again....

  14. #14
    Regular Contributor
    Join Date
    Feb 2006
    Posts
    141

    Re: how to draw text on video

    Hey krushived,

    I'm glad, that is my advises were useful for you.

    --
    Best Regards,
    Yuri

    Quote Originally Posted by krushived View Post
    Thank you so much shadow


    I followed ur suggestion and got the result... :)

    Thanks a lot once again....

  15. #15
    Registered User
    Join Date
    Mar 2009
    Posts
    1

    Re: how to draw text on video

    Hello krushived,
    I'm really interested in how you solve your problem.
    I've read this all thread and understand part of the solutions you used but could you send me some sample of your final code (clsamson@gmail.com) in order to illustrate it cause i'm quite new to Symbian to.

    Thanks and Regards,
    Kuremanu

Similar Threads

  1. How to draw a long text into multiline text??
    By titoliu in forum Symbian
    Replies: 1
    Last Post: 2002-08-09, 11:15

Posting Permissions

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