+ this->pl = playList;
+ connect(pl,SIGNAL(bufferReady(int)),this,SLOT(start(int)));
+ connect(pl,SIGNAL(downloadProgress(int,qint64,qint64)),this,SLOT(putb(int,qint64,qint64)));
+ //connect(pl,SIGNAL(downloadComplete(int)),this,SLOT(start(int)));
+
+}
+void sPlayer::markComplete()
+{
+ pl->markPlayed(pl->currentplaying());
+ if(pl->existAt(pl->currentplaying()+1))
+ {
+ pl->setCurrentPlaying(pl->currentplaying()+1);
+ if(pl->bReady(pl->currentplaying()))
+ this->start(pl->currentplaying());
+ }
+ else
+ pl->setCurrentPlaying(-1);
+}
+void sPlayer::updatePlayPosition(qint64 time)
+{
+ //qDebug() << time << ":" << media->totalTime();