QtAssistant::Phonon::MediaSource(QIODevice);
//-------------------------------------------------
QFile fille ("C:\\3334.avi");
fille.open(QIODevice::ReadOnly);
QBuffer tr (player);
QByteArray qw = fille.readAll();
qDebug () << fille.size() << " " << qw.size();
tr.setData(qw);
tr.close();
Phonon::MediaObject* player = Phonon::createPlayer( Phonon::VideoCategory );
QBuffer buff (player);
buff.setData(qw,qw.size());
qDebug ()<< buff.size();
qDebug()<< qw.size();
player->setCurrentSource(Phonon::MediaSource(&tr));
//player->setParent( this );
//connect( player, SIGNAL( finished() ), player, SLOT( deleteLater() ) );
player->play();
Как привязать буфер к проигрывателю ??