PDA

View Full Version : Phonon Problems... PLEASE PLEASE PLEASE READ, Been 3 Months Now



blanchoir
11th December 2011, 02:30
I am sure this problem has been ignored many times in the Bug Fix team for PyQt, this bug has been reported since 2009.

What is the solution for displaying a Phonon video player inside a QMainWindow with a system flag set to WA_TRANSLUCENTBACGKROUND. The Phonon player just drills a whole right through the Qmainwindow and sets its non-existent. You can actually seen behind the QMainWindow, or right through it like an invisible wall...

There is no solution or fix for this so far. I actually tried putting a Qmainwindow inside a QWidget and display the phonon player from there, but since I want to apply a framelesswindowhint to that subwindow aswell, it dissapears.

is there an alternative to Phonon?

its been 3 months since i have been trying to achieve this, still nothing.

blanchoir
11th December 2011, 20:41
31 Views and still no reply. can someone just say something? Like share any kind of info they have? I don't even care if its not related, just post or something.

RSX
12th December 2011, 00:42
Phonon is deprecated. Use QtMultimedia module.

blanchoir
12th December 2011, 03:47
Phonon is deprecated. Use QtMultimedia module.

I love you. I love you. I love you. I love you.





































i love you.

ChrisW67
12th December 2011, 04:04
Blanchoir: Have you read this: http://labs.qt.nokia.com/2008/11/28/videos-get-pimped/ Does that help at all?

RSX: Where did you read that Phonon is deprecated? Even the QtMultimedia Module page contains:

The functionality provided by the Phonon Module is on a higher level and in many cases more suitable for application developers.

blanchoir
12th December 2011, 04:19
QtMultimedia seems very low-level, aren't there any examples on how to build a basic framework on this?


Blanchoir: Have you read this: http://labs.qt.nokia.com/2008/11/28/videos-get-pimped/ Does that help at all?

RSX: Where did you read that Phonon is deprecated? Even the QtMultimedia Module page contains:

I will read that now! thank you. I thought it was deprecated?


what does this article intend to say? is this a way to support Translucent windows? I guess i'll find out by the end of the read.

Added after 7 minutes:

The codes are in C++, can't understand it very well.

The article is also unclear.

RSX
12th December 2011, 05:09
Where did you read that Phonon is deprecated? I read this: http://labs.qt.nokia.com/2009/09/09/multimedia-in-qt-whats-the-story/. For me it's deprecated.

blanchoir
12th December 2011, 06:01
Guys, shouldn't i use QtMultimediaKit instead?

blanchoir
12th December 2011, 16:45
Seriously Guys, how am i supose to use QtMultimedia, it requires some intense knowledge of Media Streaming, and it looks like I have to make everything myself, from decoding to handling frames, audio. This is just way too much a developper to have to do without an alternative.

ChrisW67
12th December 2011, 21:49
Sorry, I cannot help you with either Phonon or Qt Multimedia specifics... I've never used either in anger. From a cursory look at Qt Multimedia I could not see how a simple example could be constructed and there doesn't seem to be any in the usual places.

liversedge
18th December 2011, 14:08
I have spent the last year or so working on and off with video and Qt. I came to the conclusion that it is a bit of a mess. Lots of options, but it seems each attempt by the Trolls to sort video ends up being a dead end.

I decided to embed native video playback into widgets myself.

I found that on Mac the QTkit (quicktime) works well, and for Linux VLC is king. On Windows I have used the same libVLC approach but may end up moving to a native framework if a suitable candidate appears (DirectShow?).

Sample code;
QTKit - https://github.com/srhea/GoldenCheetah/blob/release_3.0.0dev/src/QtMacVideoWindow.mm
libVLC - https://github.com/srhea/GoldenCheetah/blob/release_3.0.0dev/src/VideoWindow.cpp

Versions of O/S and VLC are a perennial issue, but at least the code is relatively small.

Good Luck!