Kodi Development  20.0
for Binary and Script based Add-Ons
CInstanceInputStreamabstract

Inherits IAddonInstance.

Public Member Functions

DEMUX_PACKETAllocateDemuxPacket (int dataSize)
 Allocate a demux packet. Free with FreeDemuxPacket. More...
 
DEMUX_PACKETAllocateEncryptedDemuxPacket (int dataSize, unsigned int encryptedSubsampleCount)
 Allocate a encrypted demux packet. Free with FreeDemuxPacket. More...
 
 CInstanceInputStream (KODI_HANDLE instance, const std::string &kodiVersion="")
 Inputstream class constructor used to support multiple instance types. More...
 
virtual void Close ()=0
 Close an open stream. More...
 
virtual void DemuxAbort ()
 Abort the demultiplexer thread in the add-on. More...
 
virtual void DemuxFlush ()
 Flush all data that's currently in the demultiplexer buffer in the add-on. More...
 
virtual DEMUX_PACKETDemuxRead ()
 Read the next packet from the demultiplexer, if there is one. More...
 
virtual void DemuxReset ()
 Reset the demultiplexer in the add-on. More...
 
virtual bool DemuxSeekTime (double time, bool backwards, double &startpts)
 Notify the InputStream addon/demuxer that Kodi wishes to seek the stream by time. More...
 
virtual void DemuxSetSpeed (int speed)
 Notify the InputStream addon/demuxer that Kodi wishes to change playback speed. More...
 
virtual void EnableStream (int streamid, bool enable)
 Enable or disable a stream. More...
 
void FreeDemuxPacket (DEMUX_PACKET *packet)
 Free a packet that was allocated with AllocateDemuxPacket. More...
 
virtual int GetBlockSize ()
 Obtain the chunk size to use when reading streams. More...
 
virtual void GetCapabilities (kodi::addon::InputstreamCapabilities &capabilities)=0
 Get the list of features that this add-on provides. More...
 
virtual int GetChapter ()
 Return currently selected chapter. More...
 
virtual int GetChapterCount ()
 Return number of available chapters. More...
 
virtual const char * GetChapterName (int ch)
 Return name of chapter. More...
 
virtual int64_t GetChapterPos (int ch)
 Return position if chapter # ch in milliseconds. More...
 
virtual bool GetStream (int streamid, kodi::addon::InputstreamInfo &stream)
 Function for giving detailed stream information. More...
 
virtual bool GetStreamIds (std::vector< unsigned int > &ids)
 Get IDs of available streams. More...
 
virtual int GetTime ()
 Playing time in ms. More...
 
virtual bool GetTimes (InputstreamTimes &times)
 Get current timing values in PTS scale. More...
 
virtual int GetTotalTime ()
 Totel time in ms. More...
 
virtual bool IsRealTimeStream ()
 Check for real-time streaming. More...
 
virtual int64_t LengthStream ()
 The Total length of the stream that's currently being read. More...
 
virtual bool Open (const kodi::addon::InputstreamProperty &props)=0
 Open a stream. More...
 
virtual bool OpenStream (int streamid)
 Opens a stream for playback. More...
 
virtual int64_t PositionStream ()
 The position in the stream that's currently being read. More...
 
virtual bool PosTime (int ms)
 Positions inputstream to playing time given in ms. More...
 
virtual int ReadStream (uint8_t *buffer, unsigned int bufferSize)
 Read from an open stream. More...
 
virtual bool SeekChapter (int ch)
 Seek to the beginning of chapter # ch. More...
 
virtual int64_t SeekStream (int64_t position, int whence=SEEK_SET)
 Seek in a stream. More...
 
virtual void SetVideoResolution (int width, int height)
 Sets desired width / height. More...
 
 ~CInstanceInputStream () override=default
 Destructor. More...
 
- Public Member Functions inherited from IAddonInstance
virtual ADDON_STATUS CreateInstance (int instanceType, const std::string &instanceID, KODI_HANDLE instance, const std::string &version, KODI_HANDLE &addonInstance)
 
 IAddonInstance (ADDON_TYPE type, const std::string &version)
 

Additional Inherited Members

- Public Attributes inherited from IAddonInstance
std::string m_id
 
const std::string m_kodiVersion
 
const ADDON_TYPE m_type
 

The documentation for this class was generated from the following file: