Read-only archive of the All About Symbian forum (2001–2013) · About this archive

playing video on 7.0s

2 replies · 2,248 views · Started 20 November 2003

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,

to be honest with you,
symbian are a shower of f*\kwits . they expect developers to work with half baked tools. api's mismatching with the headers in their epoc\include folder.
how pathetic is that...
a build env which uses this archiac build script with references an earlier version of perl as opposed to what is available now. if one tries to build with the newer version it fails. no documentation nothing. that is like Sun releasing a new JDK which won't install properly.

I have been through the ringer with this mate. at the moment i stumbled upon this post becuase i trying to find a way to use the full functionaliyt of this class (videoplayer.h or cvideoplayerutility). it seems as if does not implement half of what it should implement according to the docs.

amateurs.

rant over.

ronoc

just a little bit more on this.
According to some 'inside sources' the real or helix binaries that this class uses which are shipped with the devices are not monitored regulated. I.e Nokia or whoever, ship different binaries of helix everytime they do a new build for their devices.

I have noticed even with the same firmware phones (6630) videoplayerutility behaving differently notably with the ability to open localhost as 127.0.0.1. this would imply that some helix binaries allow you to open localhost and others won't.

Basically the multimedia capability of the symbian api is pile of sh*te

ronoc