Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

URL and Data of key/value pairs passed to addon on Open.
This is used to have the necessary data of the stream to be opened. More...

Topics

 Value Help
 

Classes

class  kodi::addon::InputstreamProperty
 

Functions

std::string kodi::addon::InputstreamProperty::GetURL () const
 Stream URL to open.
 
std::string kodi::addon::InputstreamProperty::GetMimeType () const
 Stream mime type.
 
unsigned int kodi::addon::InputstreamProperty::GetPropertiesAmount () const
 Amount of available properties.
 
const std::map< std::string, std::string > kodi::addon::InputstreamProperty::GetProperties () const
 List of available properties-.
 
std::string kodi::addon::InputstreamProperty::GetLibFolder () const
 Get addon library folder.
 
std::string kodi::addon::InputstreamProperty::GetProfileFolder () const
 Get addon profile/user folder.
 

Detailed Description

URL and Data of key/value pairs passed to addon on Open.
This is used to have the necessary data of the stream to be opened.


The following table contains values that can be set with class InputstreamProperty :

Name Type Get call
Stream URL std::string GetURL
Mime type std::string GetMimeType
Available amount of properties unsigned int GetPropertiesAmount
List of properties std::map<std::string, std::string> GetProperties
Get addon library folder std::string GetLibFolder
Get addon profile/user folder std::string GetProfileFolder
Warning
This data are only given from Kodi to addon and can't be used on other places on addon.

Function Documentation

◆ GetLibFolder()

std::string kodi::addon::InputstreamProperty::GetLibFolder ( ) const
inline

Get addon library folder.

Note
As alternative can also kodi::GetAddonPath used.

◆ GetMimeType()

std::string kodi::addon::InputstreamProperty::GetMimeType ( ) const
inline

Stream mime type.

◆ GetProfileFolder()

std::string kodi::addon::InputstreamProperty::GetProfileFolder ( ) const
inline

Get addon profile/user folder.

Note
As alternative can also kodi::GetBaseUserPath used.

◆ GetProperties()

const std::map< std::string, std::string > kodi::addon::InputstreamProperty::GetProperties ( ) const
inline

List of available properties-.

◆ GetPropertiesAmount()

unsigned int kodi::addon::InputstreamProperty::GetPropertiesAmount ( ) const
inline

Amount of available properties.

◆ GetURL()

std::string kodi::addon::InputstreamProperty::GetURL ( ) const
inline

Stream URL to open.