Kodi Development  20.0
for Binary and Script based Add-Ons

Detailed Description

Times of playing stream (Live TV and recordings)
This class is used to transfer the necessary data when kodi::addon::PVRStreamProperties::GetStreamTimes is called.


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

Name Type Set call Get call
Start time time_t SetStartTime GetStartTime
PTS start int64_t SetPTSStart GetPTSStart
PTS begin int64_t SetPTSBegin GetPTSBegin
PTS end int64_t SetPTSEnd GetPTSEnd

Modules

 Value Help
 

Function Documentation

◆ SetStartTime()

void SetStartTime ( time_t  startTime)
inline

For recordings, this must be zero. For Live TV, this is a reference time in units of time_t (UTC) from which time elapsed starts. Ideally start of tv show, but can be any other value.

◆ GetStartTime()

time_t GetStartTime ( ) const
inline

To get with SetStartTime() changed values.

◆ SetPTSStart()

void SetPTSStart ( int64_t  ptsStart)
inline

The pts of startTime.

◆ GetPTSStart()

int64_t GetPTSStart ( ) const
inline

To get with SetPTSStart() changed values.

◆ SetPTSBegin()

void SetPTSBegin ( int64_t  ptsBegin)
inline

Earliest pts player can seek back. Value is in micro seconds, relative to PTS start. For recordings, this must be zero. For Live TV, this must be zero if not timeshifting and must point to begin of the timeshift buffer, otherwise.

◆ GetPTSBegin()

int64_t GetPTSBegin ( ) const
inline

To get with SetPTSBegin() changed values.

◆ SetPTSEnd()

void SetPTSEnd ( int64_t  ptsEnd)
inline

Latest pts player can seek forward. Value is in micro seconds, relative to PTS start. For recordings, this must be the total length. For Live TV, this must be zero if not timeshifting and must point to end of the timeshift buffer, otherwise.

◆ GetPTSEnd()

int64_t GetPTSEnd ( ) const
inline

To get with SetPTSEnd() changed values.