1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
694 B

#ifndef _H264or5_LIVE_VIDEO_SOURCE_HH
#define _H264or5_LIVE_VIDEO_SOURCE_HH
#include "FramedSource.hh"
class H264LiveVideoSource : public FramedSource
{
public:
static H264LiveVideoSource* createNew(UsageEnvironment& env, void* listener);
virtual unsigned maxFrameSize() const;
protected:
H264LiveVideoSource(UsageEnvironment& env, void* listener);
// called only by createNew()
virtual ~H264LiveVideoSource();
private:
// redefined virtual functions:
virtual void doGetNextFrame();
private:
Boolean fHasTriggerKeyFrame;
int fSendHeaderCount;
// char *fTruncatedBytes;
unsigned int fTruncatedBytesNum;
void* fListener;
};
#endif