Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches

Detailed Description

PVR stream property value handler
To set for Kodi wanted stream properties.


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

Name Type Set call Get call
Name int SetName GetName
Value std::string SetValue GetValue
Remarks
Further can there be used his class constructor to set values.

Example:

...
PVR_ERROR CMyPVRInstance::GetChannelStreamProperties(const kodi::addon::PVRChannel& channel,
std::vector<kodi::addon::PVRStreamProperty>& properties)
{
...
properties.emplace_back(PVR_STREAM_PROPERTY_INPUTSTREAM, "inputstream.adaptive");
}
...
Definition Channels.h:39
@ PVR_ERROR_NO_ERROR
0 : No error occurred.
Definition pvr_general.h:37
#define PVR_STREAM_PROPERTY_INPUTSTREAM
To define in stream properties the name of the inputstream add-on that should be used.
Definition pvr_general.h:162

Example 2:

...
PVR_ERROR CMyPVRInstance::GetChannelStreamProperties(const kodi::addon::PVRChannel& channel,
std::vector<kodi::addon::PVRStreamProperty>& properties)
{
...
property.SetValue("inputstream.adaptive");
properties.emplace_back(property);
}
...
Definition General.h:469
void SetName(const std::string &name)
To set with the identification name.
Definition General.h:507

Topics

 Value Help
 

Function Documentation

◆ PVRStreamProperty() [1/2]

PVRStreamProperty ( )
default

Default class constructor.

Note
Values must be set afterwards.

◆ PVRStreamProperty() [2/2]

PVRStreamProperty ( const std::string & name,
const std::string & value )
inline

Class constructor with integrated value set.

Parameters
[in]nameType identification
[in]valueType used property value

◆ SetName()

void SetName ( const std::string & name)
inline

To set with the identification name.

◆ GetName()

std::string GetName ( ) const
inline

To get with the identification name.

◆ SetValue()

void SetValue ( const std::string & value)
inline

To set with the used property value.

◆ GetValue()

std::string GetValue ( ) const
inline

To get with the used property value.