×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    25

    Playing video in Qt widget using CVideoplayerUtility

    Hi,

    Any one tried and tested playing video in Qt widget using CVideoplayerUtility ?

    Thanks!

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

    Re: Playing video in Qt widget using CVideoplayerUtility

    you should be able to mix Symbian C++ in there easily, thus have you had any specific problems on using this API ?

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    25

    Re: Playing video in Qt widget using CVideoplayerUtility

    Since I am using Qt widget, there is no view involovment during CVideoPlayerUtility instantiation. So, I am wondering how to link the widget to the CVideoPlayerUtility class.

    Instantiation has been done as below.

    RWindow *iWindow = (RWindow *)CCoeEnv::Static()->WsSession();
    const TRect rect(TPoint(0,0), TSize(350,420));

    player = CVideoPlayerUtility::NewL(*this,EMdaPriorityNormal,
    EMdaPriorityPreferenceNone,
    CCoeEnv::Static()->WsSession(),
    *(CCoeEnv::Static()->ScreenDevice()),
    *iWindow,
    rect,
    rect);

    Now, my questionis how does the Play() call play the video in respective widget ?

    Thanks!

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

    Re: Playing video in Qt widget using CVideoplayerUtility

    uups, I definetely forgot that it does require window and for that one I don't have ready made answers really..

  5. #5
    Registered User
    Join Date
    Sep 2007
    Posts
    25

    Re: Playing video in Qt widget using CVideoplayerUtility

    No problem:-) Thanks for the reply!

    But please let me know if you find any work around or mechanism.

    Thanks!

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

    Re: Playing video in Qt widget using CVideoplayerUtility

    Not sure if it really works, but QWidget::effectiveWinId returns widget native backend - in S60 it is CCoeControl. From CCoeControl you can ask the window handle. So at least in principle you should be able to map widget to CVideoPlayerUtility.

Posting Permissions

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