One question regarding your video loop solution: I always get a small pause between the end of the clip and the restart. During this phase, the screen is blank.
Do you have any ideas how to get rid of this pause?
My code looks like this:
media = new Phonon::MediaObject(this);
media
->setCurrentSource
(Phonon
::MediaSource(QString("/home/my_video.mov")));
Phonon::VideoWidget *videoWidget = new Phonon::VideoWidget(myTargetWidget);
Phonon::createPath(media, videoWidget);
connect(media, SIGNAL(aboutToFinish()), this, SLOT(restartVideo()));
media->play();
media = new Phonon::MediaObject(this);
media->setCurrentSource(Phonon::MediaSource(QString("/home/my_video.mov")));
Phonon::VideoWidget *videoWidget = new Phonon::VideoWidget(myTargetWidget);
Phonon::createPath(media, videoWidget);
connect(media, SIGNAL(aboutToFinish()), this, SLOT(restartVideo()));
media->play();
To copy to clipboard, switch view to plain text mode
and the slot is simply implemented as:
media
->enqueue
(Phonon
::MediaSource(QString("/home/my_video.mov")));
media->enqueue(Phonon::MediaSource(QString("/home/my_video.mov")));
To copy to clipboard, switch view to plain text mode
Bookmarks