[Qt-interest] Phonon within browser plug-in

Martin Schröer gordon at gordonswelt.de
Mon Mar 2 11:50:54 CET 2009


gordon at gordonswelt.de schrieb:
> Well, i am starting to get nuts on this.
> I already posted to five different forums and did not get any useful
> information.
>
> My problem:
>
> I'm currently working on an application i'll use within my thesis work.
>
> Therefore, i plan to have a 'media player' like application which is to
> be run as a browser plugin.
>
> So far, so good.
>
> Implementation of simple phonon support worked well within a simple
> window-based application, but if
> i try to use those phonon modules within a browser plugin stub, nothing
> happens.
>
> For the browser plugin i used the qtbrowserplugin sources.
>
> This is a snippet of the phonon code i use:
>
> video = new Phonon::MediaObject(this);
> QString filename = "./test.avi";
> video->setCurrentSource(filename);
> videoWidget = new Phonon::VideoWidget(this);
> Phonon::createPath(video, videoWidget);
> Phonon::AudioOutput *audioOutput = new
> Phonon::AudioOutput(Phonon::VideoCategory, this);
> Phonon::createPath(video, audioOutput);
>
> connect(video, SIGNAL(stateChanged(Phonon::State, Phonon::State)), this,
> SLOT(stateChanged(Phonon::State, Phonon::State)));
>
>
> When i run the plugin, everything seems fine, but the phonon module
> never overcomes the 'loading' state.
>
> I tried for debugging purposes setting the name of the media to be
> played back to a file that doesn't exist, so phonon whould switch to a
> Phonon::ErrorState, but it does not. It just keeps sitting in the
> Phonon::LoadingState, forever.
>
> O/S is Windows XP, Qt4.5.0-rc1 (and formerly 4.4.3)  is used
>
> The same piece of code works like a charm within a simple window
> application.
>
> Can anyone help me out on this ?
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>   
No ideas on this issue ? :(



More information about the Qt-interest-old mailing list