Here is a short description of the KXineWidget - class.
You can use this class in any Qt - application and have all the power of xine in your hands.
The demo project can be found Here
Please note that this class was developped by the Kaffeine - Project.
Here is how you would use the class in your application :
MyClass::MyClass() { : //////////////////////////////////////////////////////////////////////////// QString prefVideo ("xshm"); QString prefAudio ("auto"); m_pXineWidget = new KXineWidget (vframe, "XineWidget", prefAudio, prefVideo); // Next we create a GridLayout to have the QXineWidget take the full space of the QFrame - Object. m_pXineLayout = new QGridLayout (vframe, 1, 1, 4, 6, "XineMainLayout"); m_pXineLayout->addWidget(m_pXineWidget, 0, 0); // Next I would recommend initializing the xine engine ... m_pXineWidget->initXine(); // Or show(), since the QXineWidget::polish() function would then call InitXine() : } : void MyClass::slotPlay() { QString fileName = QFileDialog::getOpenFileName ( "./", QString ("Movie Files ( *.mpg *.mpeg *.mov *.vob *.MPG *.MPEG *.MOV *.mov )")); m_pXineWidget->appendToQueue ( fileName ); m_pXineWidget->slotPlay (); }