qt_rtmp_demo/media/streamcontrol.h

29 lines
432 B
C++

#ifndef STREAMCONTROL_H
#define STREAMCONTROL_H
#include <thread>
class StreamControl
{
public:
typedef enum {
STOP,
RUNNING,
PAUSHED
}Status;
StreamControl();
virtual int Process(void*);
int Start(void *);
int Stop();
int Pause();
StreamControl::Status CurrentStatus();
private:
StreamControl::Status mStatus;
std::thread *mThread;
};
#endif // STREAMCONTROL_H