1 #ifndef _STREAM_RECIEVER_H_
2 #define _STREAM_RECIEVER_H_
7 #include <QReadWriteLock>
9 #include "StreamBuffer.h"
13 #include "mplayer/stream.h"
14 #include "mplayer/demuxer.h"
17 class StreamReciever
: public QThread
22 StreamReciever(const QString
&streamUrl
);
27 qint64
getTotalPlayTime() const;
28 int getBufferSize() const;
29 QString
getTempFileName() const;
32 void percentage(int value
);
33 void loaded(qint64 value
);
34 void bufferReady(const QString
&file
);
35 void bufferReady(StreamBuffer
*buffer
);
36 void error(QString errmsg
);
40 QString m_tempFileName
;
41 StreamBuffer
*m_buffer
;
43 QReadWriteLock m_rwLock
;
50 #endif // _STREAM_RECIEVER_H_