Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, February 2008
Phonon video player for Windows?


Message 1 in thread

Has anyone built a video player on Windows with Phonon?

I'm aware of http://dragonplayer.org, but I haven't seen anything else.

(I'll do it myself, but I'm too lazy/busy at the moment...)

Sam Dutton
 





SAM DUTTON
SENIOR SITE DEVELOPER

200 GRAY'S INN ROAD
LONDON
WC1X 8XZ
UNITED KINGDOM
T +44 (0)20 7430 4496
F 
E Sam.Dutton@xxxxxxxxx
WWW.ITN.CO.UK

P  Please consider the environment. Do you really need to print this email?
Please Note:

 

Any views or opinions are solely those of the author and do not necessarily represent 
those of Independent Television News Limited unless specifically stated. 
This email and any files attached are confidential and intended solely for the use of the individual
or entity to which they are addressed. 
If you have received this email in error, please notify postmaster@xxxxxxxxx 

Please note that to ensure regulatory compliance and for the protection of our clients and business,
we may monitor and read messages sent to and from our systems.

Thank You.


--
 [ signature omitted ] 

Message 2 in thread

Dutton, Sam wrote:
> Has anyone built a video player on Windows with Phonon?
 >
> I'm aware of http://dragonplayer.org, but I haven't seen anything else.
> 
> (I'll do it myself, but I'm too lazy/busy at the moment...)

Have you looked at the mediaplayer demo? :)

-- 
 [ signature omitted ] 

Message 3 in thread

Bradley T Hughes wrote:
> 
> Have you looked at the mediaplayer demo? :)
> 

I had a look on it, but does not work for me, nor any other Phonon app. 
I just don't get any backends or audio output devices listed.
Compiled phonon after installing beta1 (done qmake in %QTDIR%\src\phonon 
and then mingw32-make) Every example app compiles fine but they just 
don't play media files.

Do I have to install anything else? (DX SDK and/or Platform SDK)

Using WinXP SP2 Pro - latest with MinGW from Qt 4.3.4

--
 [ signature omitted ] 

Message 4 in thread

Ferenc Stelcz wrote:
>Bradley T Hughes wrote:
>> Have you looked at the mediaplayer demo? :)
>
>I had a look on it, but does not work for me, nor any other Phonon app.
>I just don't get any backends or audio output devices listed.
>Compiled phonon after installing beta1 (done qmake in %QTDIR%\src\phonon
>and then mingw32-make) Every example app compiles fine but they just
>don't play media files.
>
>Do I have to install anything else? (DX SDK and/or Platform SDK)

You probably did not install the Phonon backend. You only have the 
front-end, which means applications compile but do nothing.

To build the backend, go to src/plugins/phonon and build there.

Warning: the mingw stock gcc cannot parse the Windows SDK headers. I don't 
know if you need modified headers or a different version of gcc.
-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: This is a digitally signed message part.


Message 5 in thread

Quoting Thiago Macieira <thiago.macieira@xxxxxxxxxxxxx>:

> Warning: the mingw stock gcc cannot parse the Windows SDK headers. I don't
> know if you need modified headers or a different version of gcc.

That's not 100% true. With some gcc tricks, it's possible to use the  
Windows SDK headers and link to the Microsoft's .lib import libraries.

For example, while porting ZeroC ICE to MinGW I had to use the Windows  
SDK headers and libs to be able to use the Performance Data Helper  
service. I only needed to add "-idirafter  
$(WINDOWS_PLATFORM_SDK_DIR)/Include" to the gcc flags and link to  
pdh.lib.

The Windows 2003 SDK works fine that way. If you want to use the  
Windows Vista SDK instead, you must #define the header annotations to  
an empty string because MinGW does not understand them.

Of course, you cannot just replace MinGW's w32api with the Microsoft  
SDK. It works fine for some parts of the SDK but not all (at least,  
not without modifying the Windows SDK) due to Visual Studio-specific  
code and defines in the headers.

-- 
 [ signature omitted ]