Discussion Board
Playing video in Qt widget using CVideoplayerUtility
2009-05-06, 11:45
#1
Registered User
Hi,
Any one tried and tested playing video in Qt widget using CVideoplayerUtility ?
Thanks!
Re: Playing video in Qt widget using CVideoplayerUtility
2009-05-06, 11:57
#2
Nokia Developer Expert
you should be able to mix Symbian C++ in there easily, thus have you had any specific problems on using this API ?
Re: Playing video in Qt widget using CVideoplayerUtility
2009-05-06, 12:17
#3
Registered User
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!
Re: Playing video in Qt widget using CVideoplayerUtility
2009-05-06, 12:38
#4
Nokia Developer Expert
uups, I definetely forgot that it does require window and for that one I don't have ready made answers really..
Re: Playing video in Qt widget using CVideoplayerUtility
2009-05-06, 12:53
#5
Registered User
No problem:-) Thanks for the reply!
But please let me know if you find any work around or mechanism.
Thanks!
Re: Playing video in Qt widget using CVideoplayerUtility
2009-05-06, 18:03
#6
Registered User
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
Forum Rules