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

Detailed Description

Data to manage stream cryptography
This class structure manages any encryption values required in order to have them available in their stream processing.

Used on inputstream by kodi::addon::InputstreamInfo::SetCryptoSession / kodi::addon::InputstreamInfo::GetCryptoSession and are given to the used video codec to decrypt related data.


The following table contains values that can be set with cpp_kodi_addon_inputstream_Defs_Info_StreamCryptoSession :

Name Type Set call Get call
Keysystem for encrypted media STREAM_CRYPTO_KEY_SYSTEM SetKeySystem GetKeySystem
Flags for special conditions uint8_t SetFlags GetFlags
Crypto session key id std::string SetSessionId GetSessionId

Topics

 Value Help
 

Function Documentation

◆ SetKeySystem()

void SetKeySystem ( STREAM_CRYPTO_KEY_SYSTEM keySystem)
inline

To set keysystem for encrypted media, STREAM_CRYPTO_KEY_SYSTEM_NONE for unencrypted media.

See STREAM_CRYPTO_KEY_SYSTEM for available options.

◆ GetKeySystem()

STREAM_CRYPTO_KEY_SYSTEM GetKeySystem ( ) const
inline

Get keysystem for encrypted media.

◆ SetFlags()

void SetFlags ( uint8_t flags)
inline

Set bit flags to use special conditions, see STREAM_CRYPTO_FLAGS for available flags.

◆ GetFlags()

uint8_t GetFlags ( ) const
inline

Get flags for special conditions.

◆ SetSessionId()

void SetSessionId ( const std::string & sessionId)
inline

To set the crypto session key identifier.

◆ GetSessionId()

std::string GetSessionId ( ) const
inline

To get the crypto session key identifier.