| 
    Kodi Documentation 22.0
    
   Kodi is an open source media player and entertainment hub. 
   | 
 
Input stream class. More...
#include <InputStreamAddon.h>
  
Public Member Functions | |
| CInputStreamAddon (const ADDON::AddonInfoPtr &addonInfo, IVideoPlayer *player, const CFileItem &fileitem, const std::string &instanceId) | |
| ~CInputStreamAddon () override | |
| bool | Open () override | 
| void | Close () override | 
| int | Read (uint8_t *buf, int buf_size) override | 
| int64_t | Seek (int64_t offset, int whence) override | 
| int64_t | GetLength () override | 
| int | GetBlockSize () override | 
| bool | IsEOF () override | 
| bool | CanSeek () override | 
| bool | CanPause () override | 
| CDVDInputStream::IDisplayTime * | GetIDisplayTime () override | 
| int | GetTotalTime () override | 
| int | GetTime () override | 
| CDVDInputStream::ITimes * | GetITimes () override | 
| bool | GetTimes (Times ×) override | 
| CDVDInputStream::IPosTime * | GetIPosTime () override | 
| bool | PosTime (int ms) override | 
| CDVDInputStream::IDemux * | GetIDemux () override | 
| bool | OpenDemux () override | 
| DemuxPacket * | ReadDemux () override | 
| CDemuxStream * | GetStream (int streamId) const override | 
| std::vector< CDemuxStream * > | GetStreams () const override | 
| void | EnableStream (int streamId, bool enable) override | 
| bool | OpenStream (int streamid) override | 
| int | GetNrOfStreams () const override | 
| void | SetSpeed (int speed) override | 
| bool | SeekTime (double time, bool backward=false, double *startpts=nullptr) override | 
| void | AbortDemux () override | 
| void | FlushDemux () override | 
| void | SetVideoResolution (unsigned int width, unsigned int height, unsigned int maxWidth, unsigned int maxHeight) override | 
| bool | IsRealtime () override | 
| CDVDInputStream::IChapter * | GetIChapter () override | 
| int | GetChapter () override | 
| int | GetChapterCount () override | 
| void | GetChapterName (std::string &name, int ch=-1) override | 
| int64_t | GetChapterPos (int ch=-1) override | 
| bool | SeekChapter (int ch) override | 
  Public Member Functions inherited from ADDON::IAddonInstanceHandler | |
| IAddonInstanceHandler (ADDON_TYPE type, const AddonInfoPtr &addonInfo, AddonInstanceId instanceId=ADDON_INSTANCE_ID_UNUSED, KODI_HANDLE parentInstance=nullptr, const std::string &uniqueWorkID="") | |
| Class constructor for handling add-on instance processes, allowing an add-on to handle multiple work simultaneously and independently.   | |
| virtual | ~IAddonInstanceHandler () | 
| ADDON_TYPE | UsedType () const | 
| AddonInstanceId | InstanceId () const | 
| const std::string & | UniqueWorkID () const | 
| std::string | ID () const | 
| AddonInstanceId | InstanceID () const | 
| std::string | Name () const | 
| std::string | Author () const | 
| std::string | Icon () const | 
| std::string | Path () const | 
| std::string | Profile () const | 
| CAddonVersion | Version () const | 
| ADDON_STATUS | CreateInstance () | 
| void | DestroyInstance () | 
| const std::shared_ptr< CAddonDll > & | Addon () const | 
| AddonInfoPtr | GetAddonInfo () const | 
| virtual void | OnPreInstall () | 
| virtual void | OnPostInstall (bool update, bool modal) | 
| virtual void | OnPreUnInstall () | 
| virtual void | OnPostUnInstall () | 
  Public Member Functions inherited from CDVDInputStream | |
| CDVDInputStream (DVDStreamType m_streamType, const CFileItem &fileitem) | |
| virtual | ~CDVDInputStream () | 
| virtual std::string & | GetContent () | 
| virtual std::string | GetFileName () | 
| virtual CURL | GetURL () | 
| virtual ENextStream | NextStream () | 
| virtual void | Abort () | 
| virtual void | SetReadRate (uint32_t rate) | 
| Indicate expected read rate in bytes per second. This could be used to throttle caching rate. Should be seen as only a hint.   | |
| virtual bool | GetCacheStatus (XFILE::SCacheStatus *status) | 
| Get the cache status.   | |
| bool | IsStreamType (DVDStreamType type) const | 
| virtual BitstreamStats | GetBitstreamStats () const | 
| bool | ContentLookup () | 
| void | SetRealtime (bool realtime) | 
| const CVariant & | GetProperty (const std::string &key) | 
| virtual void | SaveCurrentState (const CStreamDetails &details) | 
| virtual UpdateState | UpdateCurrentState (CFileItem &item, double time, bool &closed) | 
  Public Member Functions inherited from CDVDInputStream::IDisplayTime | |
| virtual | ~IDisplayTime ()=default | 
  Public Member Functions inherited from CDVDInputStream::ITimes | |
| virtual | ~ITimes ()=default | 
  Public Member Functions inherited from CDVDInputStream::IPosTime | |
| virtual | ~IPosTime ()=default | 
  Public Member Functions inherited from CDVDInputStream::IDemux | |
| virtual | ~IDemux ()=default | 
| virtual void | FillBuffer (bool mode) | 
  Public Member Functions inherited from CDVDInputStream::IChapter | |
| virtual | ~IChapter ()=default | 
Static Public Member Functions | |
| static bool | Supports (const ADDON::AddonInfoPtr &addonInfo, const CFileItem &fileitem) | 
  Static Public Member Functions inherited from CDVDInputStream | |
| static void | SavePlaylistDetails (std::vector< PlaylistInformation > &playedPlaylists, std::chrono::steady_clock::time_point startTime, const PlaylistInformation ¤tPlaylistInformation) | 
| static UpdateState | UpdatePlaylistDetails (DVDStreamType type, std::vector< PlaylistInformation > &playedPlaylists, CFileItem &item, double time, bool &closed) | 
Static Protected Member Functions | |
| static int | ConvertVideoCodecProfile (STREAMCODEC_PROFILE profile) | 
| static int | ConvertAudioCodecProfile (STREAMCODEC_PROFILE profile) | 
Protected Attributes | |
| IVideoPlayer * | m_player | 
  Protected Attributes inherited from ADDON::IAddonInstanceHandler | |
| KODI_ADDON_INSTANCE_STRUCT | m_ifc {} | 
  Protected Attributes inherited from CDVDInputStream | |
| DVDStreamType | m_streamType | 
| BitstreamStats | m_stats | 
| std::string | m_content | 
| CFileItem | m_item | 
| bool | m_contentLookup | 
| bool | m_realtime | 
Additional Inherited Members | |
  Public Types inherited from CDVDInputStream | |
| enum | ENextStream { NEXTSTREAM_NONE , NEXTSTREAM_OPEN , NEXTSTREAM_RETRY } | 
| enum class | UpdateState : uint8_t { NONE , FINISHED , NOT_PLAYED } | 
Input stream class.
| CInputStreamAddon::CInputStreamAddon | ( | const ADDON::AddonInfoPtr & | addonInfo, | 
| IVideoPlayer * | player, | ||
| const CFileItem & | fileitem, | ||
| const std::string & | instanceId ) | 
      
  | 
  override | 
      
  | 
  overridevirtual | 
Implements CDVDInputStream::IDemux.
      
  | 
  overridevirtual | 
Reimplemented from CDVDInputStream.
      
  | 
  overridevirtual | 
Reimplemented from CDVDInputStream.
      
  | 
  overridevirtual | 
Reimplemented from CDVDInputStream.
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
Reimplemented from CDVDInputStream::IDemux.
      
  | 
  overridevirtual | 
Implements CDVDInputStream::IDemux.
      
  | 
  overridevirtual | 
Reimplemented from CDVDInputStream.
      
  | 
  overridevirtual | 
Implements CDVDInputStream::IChapter.
      
  | 
  overridevirtual | 
Implements CDVDInputStream::IChapter.
Implements CDVDInputStream::IChapter.
Implements CDVDInputStream::IChapter.
      
  | 
  overridevirtual | 
Reimplemented from CDVDInputStream.
      
  | 
  overridevirtual | 
Reimplemented from CDVDInputStream.
      
  | 
  overridevirtual | 
Reimplemented from CDVDInputStream.
      
  | 
  overridevirtual | 
Reimplemented from CDVDInputStream.
      
  | 
  overridevirtual | 
Reimplemented from CDVDInputStream.
      
  | 
  overridevirtual | 
Implements CDVDInputStream.
      
  | 
  overridevirtual | 
Implements CDVDInputStream::IDemux.
      
  | 
  overridevirtual | 
Implements CDVDInputStream::IDemux.
      
  | 
  overridevirtual | 
Implements CDVDInputStream::IDemux.
      
  | 
  overridevirtual | 
Implements CDVDInputStream::IDisplayTime.
Implements CDVDInputStream::ITimes.
      
  | 
  overridevirtual | 
Implements CDVDInputStream::IDisplayTime.
      
  | 
  overridevirtual | 
Implements CDVDInputStream.
      
  | 
  overridevirtual | 
Reimplemented from CDVDInputStream.
      
  | 
  overridevirtual | 
Reimplemented from CDVDInputStream.
      
  | 
  overridevirtual | 
Implements CDVDInputStream::IDemux.
Reimplemented from CDVDInputStream::IDemux.
Implements CDVDInputStream::IPosTime.
Implements CDVDInputStream.
      
  | 
  overridevirtual | 
Implements CDVDInputStream::IDemux.
Implements CDVDInputStream.
Implements CDVDInputStream::IChapter.
      
  | 
  overridevirtual | 
Implements CDVDInputStream::IDemux.
Implements CDVDInputStream::IDemux.
      
  | 
  overridevirtual | 
Reimplemented from CDVDInputStream::IDemux.
      
  | 
  static | 
      
  | 
  protected |