/home/barant/Documents/Development/BMASockets/BMAStreamContentProvider.h
#ifndef __BMAStreamContentProvider_h__
#define __BMAStreamContentProvider_h__
#include "includes"
#include "BMAStreamFrame.h"
class BMAStreamServer;
class BMAStreamContentProvider {
public:
BMAStreamContentProvider(BMAStreamServer &server);
~BMAStreamContentProvider();
bool ready = false;
//-------------------------------------------------------------------------------
// When inheriting from BMAStreamContentProvider the framesReady is called by
// the object to indicate that the media is loaded and ready to deliver frames.
//-------------------------------------------------------------------------------
// void framesReady();
//-------------------------------------------------------------------------------
// The getNextStreamFrame is called by the server when it needs a new frame to
// send to the clients.
//-------------------------------------------------------------------------------
virtual BMAStreamFrame* getNextStreamFrame();
int getFrameCount();
std::vector<BMAStreamFrame *> frames;
int cursor;
private:
BMAStreamServer &server;
};
#endif
BMAStreamFrame
Definition: BMAStreamFrame.h:4
BMAStreamServer
Definition: BMAStreamServer.h:19
BMAStreamContentProvider
Definition: BMAStreamContentProvider.h:8