|
Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
|
#include <Inputstream.h>
Public Member Functions | |
| CInstanceInputStream (KODI_HANDLE instance, const std::string &kodiVersion="") | |
| Inputstream class constructor used to support multiple instance types. More... | |
| ~CInstanceInputStream () override=default | |
| Destructor. More... | |
| virtual void | GetCapabilities (kodi::addon::InputstreamCapabilities &capabilities)=0 |
| Get the list of features that this add-on provides. More... | |
| virtual bool | Open (const kodi::addon::InputstreamProperty &props)=0 |
| Open a stream. More... | |
| virtual void | Close ()=0 |
| Close an open stream. More... | |
| virtual bool | IsRealTimeStream () |
| Check for real-time streaming. More... | |
| virtual int | ReadStream (uint8_t *buffer, unsigned int bufferSize) |
| Read from an open stream. More... | |
| virtual int64_t | SeekStream (int64_t position, int whence=SEEK_SET) |
| Seek in a stream. More... | |
| virtual int64_t | PositionStream () |
| The position in the stream that's currently being read. More... | |
| virtual int64_t | LengthStream () |
| The Total length of the stream that's currently being read. More... | |
| virtual int | GetBlockSize () |
| Obtain the chunk size to use when reading streams. More... | |
| virtual bool | GetStreamIds (std::vector< unsigned int > &ids) |
| Get IDs of available streams. More... | |
| virtual bool | GetStream (int streamid, kodi::addon::InputstreamInfo &stream) |
| Function for giving detailed stream information. More... | |
| virtual void | EnableStream (int streamid, bool enable) |
| Enable or disable a stream. More... | |
| virtual bool | OpenStream (int streamid) |
| Opens a stream for playback. More... | |
| virtual void | DemuxReset () |
| Reset the demultiplexer in the add-on. 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_PACKET * | DemuxRead () |
| Read the next packet from the demultiplexer, if there is one. 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 | SetVideoResolution (int width, int height) |
| Sets desired width / height. More... | |
| DEMUX_PACKET * | AllocateDemuxPacket (int dataSize) |
| Allocate a demux packet. Free with FreeDemuxPacket. More... | |
| DEMUX_PACKET * | AllocateEncryptedDemuxPacket (int dataSize, unsigned int encryptedSubsampleCount) |
| Allocate a encrypted demux packet. Free with FreeDemuxPacket. More... | |
| void | FreeDemuxPacket (DEMUX_PACKET *packet) |
| Free a packet that was allocated with AllocateDemuxPacket. More... | |
| virtual int | GetTotalTime () |
| Totel time in ms. More... | |
| virtual int | GetTime () |
| Playing time in ms. More... | |
| virtual bool | GetTimes (InputstreamTimes ×) |
| Get current timing values in PTS scale. More... | |
| virtual bool | PosTime (int ms) |
| Positions inputstream to playing time given in ms. 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 | SeekChapter (int ch) |
| Seek to the beginning of chapter # ch. More... | |
Public Member Functions inherited from kodi::addon::IAddonInstance | |
| IAddonInstance (ADDON_TYPE type, const std::string &version) | |
| virtual | ~IAddonInstance ()=default |
| virtual ADDON_STATUS | CreateInstance (int instanceType, const std::string &instanceID, KODI_HANDLE instance, const std::string &version, KODI_HANDLE &addonInstance) |
Additional Inherited Members | |
Public Attributes inherited from kodi::addon::IAddonInstance | |
| const ADDON_TYPE | m_type |
| const std::string | m_kodiVersion |
| std::string | m_id |