From 5264f2cd003271ba2c426e21d62d13025dba177b Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Fri, 5 Jan 2007 15:01:49 +0000 Subject: add iStreamableService --- lib/service/iservice.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'lib/service/iservice.h') diff --git a/lib/service/iservice.h b/lib/service/iservice.h index ca84a410..3f7a9dc9 100644 --- a/lib/service/iservice.h +++ b/lib/service/iservice.h @@ -711,6 +711,25 @@ public: }; SWIG_TEMPLATE_TYPEDEF(ePtr, iPlayableServicePtr); +SWIG_IGNORE(iStreamableService); +class iStreamableService: public iObject +{ +#ifdef SWIG + iStreamableService(); + ~iStreamableService(); +#endif +public: + /* returns a dict: + { "demux": , + "pids": [(x,type),(y,type),(z,type),..], + ... + } + with type being "video", "audio", "pmt", "pat"... + */ + virtual PyObject *getStreamingData()=0; +}; +SWIG_TEMPLATE_TYPEDEF(ePtr, iStreamableServicePtr); + class iRecordableService_ENUMS { #ifdef SWIG @@ -752,9 +771,11 @@ public: #endif virtual SWIG_VOID(RESULT) getError(int &SWIG_OUTPUT)=0; virtual RESULT prepare(const char *filename, time_t begTime=-1, time_t endTime=-1, int eit_event_id=-1)=0; + virtual RESULT prepareStreaming()=0; virtual RESULT start()=0; virtual RESULT stop()=0; virtual SWIG_VOID(RESULT) frontendInfo(ePtr &SWIG_OUTPUT)=0; + virtual SWIG_VOID(RESULT) stream(ePtr &SWIG_OUTPUT)=0; }; SWIG_TEMPLATE_TYPEDEF(ePtr, iRecordableServicePtr); -- cgit v1.2.3