MartinS
16th February 2009, 23:31
Finally, i succeeded in building the demos/examples supplied with Qt 4 and phonon.
Well, now i tried to embed the 'mediaplayer' (demos/mediaplayer) demonstration
into the 'browser plugin' project example 'trivial' that can be found here (http://www.qtsoftware.com/products/appdev/add-on-products/catalog/4/Utilities/qtbrowserplugin).
I did this by simply merging those two pieces of code together and calling an instanciation of the media player object in the constructor of the 'trivial' plug in.
Well, so far so good.
When the 'trivial' plug in example is run now, it also shoots the media player window.
All dialogs work, but if i try to open some media file, nothing happens.
( I double checked if the file is really opened, but it seems like the actual playback is never triggered. I use the very unchanged source of the media player example. )
Why ?
( Also, it is mentioned in the doc about browser plugin development [ see here (http://doc.trolltech.com/solutions/4/qtbrowserplugin/developingplugins.html)] that 'since any QWidget or QObject subclass can be turned into a plugin with little effort it is usually easiest to do the development as a stand-alone Qt application'. Can someone point me to some more information regarding this process ? Because this seems to be exactly what i'm trying to do ... )
Well, now i tried to embed the 'mediaplayer' (demos/mediaplayer) demonstration
into the 'browser plugin' project example 'trivial' that can be found here (http://www.qtsoftware.com/products/appdev/add-on-products/catalog/4/Utilities/qtbrowserplugin).
I did this by simply merging those two pieces of code together and calling an instanciation of the media player object in the constructor of the 'trivial' plug in.
Well, so far so good.
When the 'trivial' plug in example is run now, it also shoots the media player window.
All dialogs work, but if i try to open some media file, nothing happens.
( I double checked if the file is really opened, but it seems like the actual playback is never triggered. I use the very unchanged source of the media player example. )
Why ?
( Also, it is mentioned in the doc about browser plugin development [ see here (http://doc.trolltech.com/solutions/4/qtbrowserplugin/developingplugins.html)] that 'since any QWidget or QObject subclass can be turned into a plugin with little effort it is usually easiest to do the development as a stand-alone Qt application'. Can someone point me to some more information regarding this process ? Because this seems to be exactly what i'm trying to do ... )