BMA Server Framework
/home/barant/Documents/Development/BMASockets/BMAStreamContentProvider.h
1 #ifndef __BMAStreamContentProvider_h__
2 #define __BMAStreamContentProvider_h__
3 
4 #include "includes"
5 #include "BMAStreamFrame.h"
6 class BMAStreamServer;
7 
9 
10  public:
13 
14  bool ready = false;
15 
16  //-------------------------------------------------------------------------------
17  // When inheriting from BMAStreamContentProvider the framesReady is called by
18  // the object to indicate that the media is loaded and ready to deliver frames.
19  //-------------------------------------------------------------------------------
20 
21 // void framesReady();
22 
23  //-------------------------------------------------------------------------------
24  // The getNextStreamFrame is called by the server when it needs a new frame to
25  // send to the clients.
26  //-------------------------------------------------------------------------------
27 
28  virtual BMAStreamFrame* getNextStreamFrame();
29 
30  int getFrameCount();
31 
32  std::vector<BMAStreamFrame *> frames;
33  int cursor;
34 
35  private:
36  BMAStreamServer &server;
37 
38 };
39 
40 #endif
Definition: BMAStreamFrame.h:4
Definition: BMAStreamServer.h:19
Definition: BMAStreamContentProvider.h:8