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.

40 lines
943 B

14 years ago
14 years ago
14 years ago
14 years ago
14 years ago
  1. /*
  2. * streamer.h: IPTV plugin for the Video Disk Recorder
  3. *
  4. * See the README file for copyright information and how to reach the author.
  5. *
  6. */
  7. #ifndef __IPTV_STREAMER_H
  8. #define __IPTV_STREAMER_H
  9. #include <arpa/inet.h>
  10. #include <vdr/thread.h>
  11. #include "deviceif.h"
  12. #include "protocolif.h"
  13. #include "statistics.h"
  14. class cIptvStreamer : public cThread, public cIptvStreamerStatistics {
  15. private:
  16. cCondWait sleepM;
  17. cIptvDeviceIf* deviceM;
  18. unsigned char* packetBufferM;
  19. unsigned int packetBufferLenM;
  20. cIptvProtocolIf* protocolM;
  21. protected:
  22. virtual void Action(void);
  23. public:
  24. cIptvStreamer(cIptvDeviceIf &deviceP, unsigned int packetLenP);
  25. virtual ~cIptvStreamer();
  26. bool SetSource(const char* locationP, const int parameterP, const int indexP, cIptvProtocolIf* protocolP);
  27. bool SetPid(int pidP, int typeP, bool onP);
  28. bool Open(void);
  29. bool Close(void);
  30. cString GetInformation(void);
  31. };
  32. #endif // __IPTV_STREAMER_H