Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <PVRPlaybackState.h>
Classes | |
class | CLastWatchedUpdateTimer |
Public Member Functions | |
CPVRPlaybackState () | |
ctor. | |
virtual | ~CPVRPlaybackState () |
dtor. | |
void | Clear () |
clear instances, keep stored UIDs. | |
void | ReInit () |
re-init using stored UIDs. | |
void | OnPlaybackStarted (const CFileItem &item) |
Inform that playback of an item just started. | |
bool | OnPlaybackStopped (const CFileItem &item) |
Inform that playback of an item was stopped due to user interaction. | |
bool | OnPlaybackEnded (const CFileItem &item) |
Inform that playback of an item has stopped without user interaction. | |
void | StartPlayback (CFileItem *item, ContentUtils::PlayMode mode=ContentUtils::PlayMode::CHECK_AUTO_PLAY_NEXT_ITEM) const |
Start playback of the given item. | |
bool | IsPlaying () const |
Check if a TV channel, radio channel or recording is playing. | |
bool | IsPlayingTV () const |
Check if a TV channel is playing. | |
bool | IsPlayingRadio () const |
Check if a radio channel is playing. | |
bool | IsPlayingEncryptedChannel () const |
Check if a an encrypted TV or radio channel is playing. | |
bool | IsPlayingRecording () const |
Check if a recording is playing. | |
bool | IsPlayingEpgTag () const |
Check if an epg tag is playing. | |
bool | IsPlayingChannel (int iClientID, int iUniqueChannelID) const |
Check whether playing channel matches given uids. | |
bool | IsPlayingChannel (const std::shared_ptr< const CPVRChannel > &channel) const |
Check if the given channel is playing. | |
bool | IsPlayingRecording (const std::shared_ptr< const CPVRRecording > &recording) const |
Check if the given recording is playing. | |
bool | IsPlayingEpgTag (const std::shared_ptr< const CPVREpgInfoTag > &epgTag) const |
Check if the given epg tag is playing. | |
std::shared_ptr< CPVRChannel > | GetPlayingChannel () const |
Return the channel that is currently playing. | |
std::shared_ptr< CPVRChannelGroupMember > | GetPlayingChannelGroupMember () const |
Return the channel group member that is currently playing. | |
std::shared_ptr< CPVRRecording > | GetPlayingRecording () const |
Return the recording that is currently playing. | |
std::shared_ptr< CPVREpgInfoTag > | GetPlayingEpgTag () const |
Return the epg tag that is currently playing. | |
int | GetPlayingChannelUniqueID () const |
Return playing channel unique identifier. | |
std::string | GetPlayingClientName () const |
Get the name of the playing client, if there is one. | |
int | GetPlayingClientID () const |
Get the ID of the playing client, if there is one. | |
bool | IsRecording () const |
Check whether there are active recordings. | |
bool | IsRecordingOnPlayingChannel () const |
Check whether there is an active recording on the currenlyt playing channel. | |
bool | IsPlayingActiveRecording () const |
Check if an active recording is playing. | |
bool | CanRecordOnPlayingChannel () const |
Check whether the currently playing channel can be recorded. | |
void | SetActiveChannelGroup (const std::shared_ptr< CPVRChannelGroup > &group) |
Set the active channel group. | |
std::shared_ptr< CPVRChannelGroup > | GetActiveChannelGroup (bool bRadio) const |
Get the active channel group. | |
std::shared_ptr< CPVRChannelGroupMember > | GetLastPlayedChannelGroupMember (bool bRadio) const |
Get the last played channel group member. | |
std::shared_ptr< CPVRChannelGroupMember > | GetPreviousToLastPlayedChannelGroupMember (bool bRadio) const |
Get the channel group member that was played before the last played member. | |
CDateTime | GetPlaybackTime (int iClientID, int iUniqueChannelID) const |
Get current playback time for the given channel, taking timeshifting and playing epg tags into account. | |
CDateTime | GetChannelPlaybackTime (int iClientID, int iUniqueChannelID) const |
Get current playback time for the given channel, taking timeshifting into account. | |
|
default |
ctor.
|
virtualdefault |
dtor.
bool CPVRPlaybackState::CanRecordOnPlayingChannel | ( | ) | const |
Check whether the currently playing channel can be recorded.
void CPVRPlaybackState::Clear | ( | ) |
clear instances, keep stored UIDs.
std::shared_ptr< CPVRChannelGroup > CPVRPlaybackState::GetActiveChannelGroup | ( | bool | bRadio | ) | const |
Get the active channel group.
bRadio | True to get the active radio group, false to get the active TV group. |
Get current playback time for the given channel, taking timeshifting into account.
iClientID | The client id. |
iUniqueChannelID | The channel uid. |
std::shared_ptr< CPVRChannelGroupMember > CPVRPlaybackState::GetLastPlayedChannelGroupMember | ( | bool | bRadio | ) | const |
Get the last played channel group member.
bRadio | True to get the radio group member, false to get the TV group member. |
Get current playback time for the given channel, taking timeshifting and playing epg tags into account.
iClientID | The client id. |
iUniqueChannelID | The channel uid. |
std::shared_ptr< CPVRChannel > CPVRPlaybackState::GetPlayingChannel | ( | ) | const |
Return the channel that is currently playing.
std::shared_ptr< CPVRChannelGroupMember > CPVRPlaybackState::GetPlayingChannelGroupMember | ( | ) | const |
Return the channel group member that is currently playing.
int CPVRPlaybackState::GetPlayingChannelUniqueID | ( | ) | const |
Return playing channel unique identifier.
int CPVRPlaybackState::GetPlayingClientID | ( | ) | const |
Get the ID of the playing client, if there is one.
std::string CPVRPlaybackState::GetPlayingClientName | ( | ) | const |
Get the name of the playing client, if there is one.
std::shared_ptr< CPVREpgInfoTag > CPVRPlaybackState::GetPlayingEpgTag | ( | ) | const |
Return the epg tag that is currently playing.
std::shared_ptr< CPVRRecording > CPVRPlaybackState::GetPlayingRecording | ( | ) | const |
Return the recording that is currently playing.
std::shared_ptr< CPVRChannelGroupMember > CPVRPlaybackState::GetPreviousToLastPlayedChannelGroupMember | ( | bool | bRadio | ) | const |
Get the channel group member that was played before the last played member.
bRadio | True to get the radio group member, false to get the TV group member. |
bool CPVRPlaybackState::IsPlaying | ( | ) | const |
Check if a TV channel, radio channel or recording is playing.
bool CPVRPlaybackState::IsPlayingActiveRecording | ( | ) | const |
Check if an active recording is playing.
bool CPVRPlaybackState::IsPlayingChannel | ( | const std::shared_ptr< const CPVRChannel > & | channel | ) | const |
Check if the given channel is playing.
channel | The channel to check. |
Check whether playing channel matches given uids.
iClientID | The client id. |
iUniqueChannelID | The channel uid. |
bool CPVRPlaybackState::IsPlayingEncryptedChannel | ( | ) | const |
Check if a an encrypted TV or radio channel is playing.
bool CPVRPlaybackState::IsPlayingEpgTag | ( | ) | const |
Check if an epg tag is playing.
bool CPVRPlaybackState::IsPlayingEpgTag | ( | const std::shared_ptr< const CPVREpgInfoTag > & | epgTag | ) | const |
Check if the given epg tag is playing.
epgTag | The tag to check. |
bool CPVRPlaybackState::IsPlayingRadio | ( | ) | const |
Check if a radio channel is playing.
bool CPVRPlaybackState::IsPlayingRecording | ( | ) | const |
Check if a recording is playing.
bool CPVRPlaybackState::IsPlayingRecording | ( | const std::shared_ptr< const CPVRRecording > & | recording | ) | const |
Check if the given recording is playing.
recording | The recording to check. |
bool CPVRPlaybackState::IsPlayingTV | ( | ) | const |
Check if a TV channel is playing.
bool CPVRPlaybackState::IsRecording | ( | ) | const |
Check whether there are active recordings.
bool CPVRPlaybackState::IsRecordingOnPlayingChannel | ( | ) | const |
Check whether there is an active recording on the currenlyt playing channel.
Inform that playback of an item has stopped without user interaction.
item | The item that ended to play. |
Inform that playback of an item just started.
item | The item that started to play. |
Inform that playback of an item was stopped due to user interaction.
item | The item that stopped to play. |
void CPVRPlaybackState::ReInit | ( | ) |
re-init using stored UIDs.
void CPVRPlaybackState::SetActiveChannelGroup | ( | const std::shared_ptr< CPVRChannelGroup > & | group | ) |
Set the active channel group.
group | The new group. |
void CPVRPlaybackState::StartPlayback | ( | CFileItem * | item, |
ContentUtils::PlayMode | mode = ContentUtils::PlayMode::CHECK_AUTO_PLAY_NEXT_ITEM ) const |
Start playback of the given item.
item | containing a channel, a recording or an epg tag. |
mode | playback mode. |