-#include "splayer.h"
+#include "mpgplayer.h"
#include <QFile>
sPlayer::sPlayer(QObject *parent) :
QObject(parent)
internal = parent;
//buffer->open(QIODevice::ReadWrite);
connect(media,SIGNAL(finished()),this,SLOT(markComplete()));
+ media->setTickInterval(200);
+ connect(media,SIGNAL(tick(qint64)),this,SLOT(updatePlayPosition(qint64)));
}
void sPlayer::setPlaylist(playlist *playList)
{
else
pl->setCurrentPlaying(-1);
}
+void sPlayer::updatePlayPosition(qint64 time)
+{
+ //qDebug() << time << ":" << media->totalTime();
+}
+
void sPlayer::pause()
{
if(media->state() == Phonon::PausedState)