playing video on series 60 v7.0s
| Thu, 2003-11-20 17:14 | |
|
Hi Gurus,
I am trying to play a video clip on emulator using CVideoPlayerUtility class from SDK v2.0 in symbian OS7.0s. The first problem I have is when I use the constructor of CVideoPlayerUtility (shown below) with only the first parameter, which is supposed to work, according to the SDK Documentation, but the program does not compile. So looking at the header definition of the class (.h file) I have found that the constructor requires eigth parameters (enclosed below) and they don´t appear in the Documentation, so I don´t know what are they used for, either way how to get them. CVideoPlayerUtility* NewL(MVideoPlayerUtilityObserver& aObserver,TInt aPriority,TMdaPriorityPreference aPref, RWsSession& aWs,CWsScreenDevice& aScreenDevice,RWindowBase& aWindow,const TRect& aScreenRect,const TRect& aClipRect); Where I get stuck is with the last five parameters. What we have tried is: - RWsSession and CWsScreenDevice have been obtained from the Enviroment, as follows: CEikonEnv* myEikonEnv = CEikonEnv::Static(); RWsSession ws = myEikonEnv->WsSession(); CWsScreenDevice myScrDev(ws); myScrDev.Construct(); - RWindowBase from "myView/Container" (which is a CCoeControl) using the function DrawableWindow() iAppContainer->DrawableWindow() - And I used the function ClientRect() from "myAppUI" to get both TRects Doing this I have created an instance of the object, but the program crashes when I try to draw anything on the screen, for instance, when I display a command menu. I suppose the problem is with CWsScreenDevice object that is not properly initialized or built, but it is only a supposition. Has anyone an idea of how to solve this?? In addition to this I would like to ask you if you know any example of how to play video &/or using this class Tanks in advance, |
|






Forum posts: 76
Are you initialising like this? if not then try this ...
iVPlayerUtility = CVideoPlayerUtility::NewL(*this,
                              EMdaPriorityNormal,
                              EMdaPriorityPreferenceNone,
                             container->ControlEnv()->WsSession(),
                             *(container->ControlEnv()->ScreenDevice()),
                             container->ClientWindow(),
                             rect,
                             rect);
All the Best.
..
KiraN Puranik
Forum posts: 8
I can play video with the device but not on the emulator.
Do i need anything specifiically to play video on the emulator.
Couple of other things to note, on the 6600 the player cannot open localhost while on the 6670 and 6630 it can. it seems the later releases of the series 60 have updated player dll's. i think it might be the symbian OS calling into the helix stuff. Very hard to find out those details as nokia would like to keep that to them selves.
Conor
Forum posts: 98
Forum posts: 11
I have been working on video player application.Can anybody gimme a rough idea as to how to start playing a video file.
any source code will be greately appreciated.
Thanks Much,
Ram