+void MediaView::playbackFinished() {
+ // qDebug() << "finished" << mediaObject->currentTime() << mediaObject->totalTime();
+ // add 10 secs for imprecise Phonon backends (VLC, Xine)
+ if (mediaObject->currentTime() + 10000 < mediaObject->totalTime()) {
+ // mediaObject->seek(mediaObject->currentTime());
+ QTimer::singleShot(3000, this, SLOT(playbackResume()));
+ } else skip();
+}
+
+void MediaView::playbackResume() {
+ mediaObject->seek(mediaObject->currentTime());
+ mediaObject->play();
+}
+