I have a simple code, that uses everybody...
Qt Code:
Phonon::VideoWidget *vWidget = new Phonon::VideoWidget(); mediaObject = new Phonon::MediaObject(this); Phonon::createPath(mediaObject, vWidget); vWidget->setAspectRatio(Phonon::VideoWidget::AspectRatioAuto); audioOutput = new Phonon::AudioOutput(Phonon::VideoCategory, this); Phonon::createPath(mediaObject, audioOutput);To copy to clipboard, switch view to plain text mode
My problem is, that the third line (Phonon::createPath(mediaObject, vWidget)) takes about 5 seconds. Without it, my window shows immediately. But it is needed of course.
Is there any solution, how to speed up this?
Bookmarks