![]() |
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
#include <ApplicationPlayer.h>
Public Member Functions | |
CApplicationPlayer () | |
void | ClosePlayer () |
void | ResetPlayer () |
std::string | GetCurrentPlayer () |
float | GetPlaySpeed () |
float | GetPlayTempo () |
bool | HasPlayer () const |
bool | OpenFile (const CFileItem &item, const CPlayerOptions &options, const CPlayerCoreFactory &factory, const std::string &playerName, IPlayerCallback &callback) |
void | OpenNext (const CPlayerCoreFactory &factory) |
void | SetPlaySpeed (float speed) |
void | SetTempo (float tempo) |
void | FrameAdvance (int frames) |
void | FrameMove () |
void | Render (bool clear, uint32_t alpha=255, bool gui=true) |
void | FlushRenderer () |
void | SetRenderViewMode (int mode, float zoom, float par, float shift, bool stretch) |
float | GetRenderAspectRatio () |
void | TriggerUpdateResolution () |
bool | IsRenderingVideo () |
bool | IsRenderingGuiLayer () |
bool | IsRenderingVideoLayer () |
bool | Supports (EINTERLACEMETHOD method) |
EINTERLACEMETHOD | GetDeinterlacingMethodDefault () |
bool | Supports (ESCALINGMETHOD method) |
bool | Supports (ERENDERFEATURE feature) |
unsigned int | RenderCaptureAlloc () |
void | RenderCapture (unsigned int captureId, unsigned int width, unsigned int height, int flags=0) |
void | RenderCaptureRelease (unsigned int captureId) |
bool | RenderCaptureGetPixels (unsigned int captureId, unsigned int millis, uint8_t *buffer, unsigned int size) |
bool | IsExternalPlaying () |
bool | IsRemotePlaying () |
void | AddSubtitle (const std::string &strSubPath) |
bool | CanPause () |
bool | CanSeek () |
void | DoAudioWork () |
void | GetAudioCapabilities (std::vector< int > &audioCaps) |
int | GetAudioStream () |
int | GetAudioStreamCount () |
void | GetAudioStreamInfo (int index, AudioStreamInfo &info) |
int | GetCacheLevel () const |
float | GetCachePercentage () const |
int | GetChapterCount () |
int | GetChapter () |
void | GetChapterName (std::string &strChapterName, int chapterIdx=-1) |
int64_t | GetChapterPos (int chapterIdx=-1) |
float | GetPercentage () const |
std::string | GetPlayerState () |
int | GetPreferredPlaylist () const |
int | GetSubtitle () |
void | GetSubtitleCapabilities (std::vector< int > &subCaps) |
int | GetSubtitleCount () |
void | GetSubtitleStreamInfo (int index, SubtitleStreamInfo &info) |
bool | GetSubtitleVisible () |
std::shared_ptr< TextCacheStruct_t > | GetTeletextCache () |
std::string | GetRadioText (unsigned int line) |
int64_t | GetTime () const |
int64_t | GetMinTime () const |
int64_t | GetMaxTime () const |
time_t | GetStartTime () const |
int64_t | GetTotalTime () const |
int | GetVideoStream () |
int | GetVideoStreamCount () |
void | GetVideoStreamInfo (int streamId, VideoStreamInfo &info) |
int | GetPrograms (std::vector< ProgramInfo > &programs) |
void | SetProgram (int progId) |
int | GetProgramsCount () |
bool | HasAudio () const |
bool | HasMenu () const |
bool | HasVideo () const |
bool | HasGame () const |
bool | HasRDS () const |
bool | IsCaching () const |
bool | IsInMenu () const |
bool | IsPaused () |
bool | IsPausedPlayback () |
bool | IsPassthrough () const |
bool | IsPlaying () const |
bool | IsPlayingAudio () const |
bool | IsPlayingVideo () const |
bool | IsPlayingGame () const |
bool | IsPlayingRDS () const |
void | LoadPage (int p, int sp, unsigned char *buffer) |
bool | OnAction (const CAction &action) |
void | OnNothingToQueueNotify () |
void | Pause () |
bool | QueueNextFile (const CFileItem &file) |
void | Seek (bool bPlus=true, bool bLargeStep=false, bool bChapterOverride=false) |
int | SeekChapter (int iChapter) |
void | SeekPercentage (float fPercent=0) |
bool | SeekScene (bool bPlus=true) |
void | SeekTime (int64_t iTime=0) |
void | SeekTimeRelative (int64_t iTime=0) |
void | SetAudioStream (int iStream) |
void | SetAVDelay (float fValue=0.0f) |
void | SetDynamicRangeCompression (long drc) |
void | SetMute (bool bOnOff) |
bool | SetPlayerState (const std::string &state) |
void | SetSubtitle (int iStream) |
void | SetSubTitleDelay (float fValue=0.0f) |
void | SetSubtitleVisible (bool bVisible) |
void | SetTime (int64_t time) |
void | SetTotalTime (int64_t time) |
void | SetVideoStream (int iStream) |
void | SetVolume (float volume) |
void | SetSpeed (float speed) |
bool | SupportsTempo () |
CVideoSettings | GetVideoSettings () |
void | SetVideoSettings (CVideoSettings &settings) |
CSeekHandler & | GetSeekHandler () |
void | SetUpdateStreamDetails () |
bool | HasGameAgent () |
Check if any players are playing a game. More... | |
CApplicationPlayer::CApplicationPlayer | ( | ) |
void CApplicationPlayer::AddSubtitle | ( | const std::string & | strSubPath | ) |
bool CApplicationPlayer::CanPause | ( | ) |
bool CApplicationPlayer::CanSeek | ( | ) |
void CApplicationPlayer::ClosePlayer | ( | ) |
void CApplicationPlayer::DoAudioWork | ( | ) |
void CApplicationPlayer::FlushRenderer | ( | ) |
void CApplicationPlayer::FrameAdvance | ( | int | frames | ) |
void CApplicationPlayer::FrameMove | ( | ) |
void CApplicationPlayer::GetAudioCapabilities | ( | std::vector< int > & | audioCaps | ) |
int CApplicationPlayer::GetAudioStream | ( | ) |
int CApplicationPlayer::GetAudioStreamCount | ( | ) |
void CApplicationPlayer::GetAudioStreamInfo | ( | int | index, |
AudioStreamInfo & | info | ||
) |
int CApplicationPlayer::GetCacheLevel | ( | ) | const |
float CApplicationPlayer::GetCachePercentage | ( | ) | const |
int CApplicationPlayer::GetChapter | ( | ) |
int CApplicationPlayer::GetChapterCount | ( | ) |
void CApplicationPlayer::GetChapterName | ( | std::string & | strChapterName, |
int | chapterIdx = -1 |
||
) |
int64_t CApplicationPlayer::GetChapterPos | ( | int | chapterIdx = -1 | ) |
std::string CApplicationPlayer::GetCurrentPlayer | ( | ) |
EINTERLACEMETHOD CApplicationPlayer::GetDeinterlacingMethodDefault | ( | ) |
int64_t CApplicationPlayer::GetMaxTime | ( | ) | const |
int64_t CApplicationPlayer::GetMinTime | ( | ) | const |
float CApplicationPlayer::GetPercentage | ( | ) | const |
std::string CApplicationPlayer::GetPlayerState | ( | ) |
float CApplicationPlayer::GetPlaySpeed | ( | ) |
float CApplicationPlayer::GetPlayTempo | ( | ) |
int CApplicationPlayer::GetPreferredPlaylist | ( | ) | const |
int CApplicationPlayer::GetPrograms | ( | std::vector< ProgramInfo > & | programs | ) |
int CApplicationPlayer::GetProgramsCount | ( | ) |
std::string CApplicationPlayer::GetRadioText | ( | unsigned int | line | ) |
float CApplicationPlayer::GetRenderAspectRatio | ( | ) |
CSeekHandler & CApplicationPlayer::GetSeekHandler | ( | ) |
time_t CApplicationPlayer::GetStartTime | ( | ) | const |
int CApplicationPlayer::GetSubtitle | ( | ) |
void CApplicationPlayer::GetSubtitleCapabilities | ( | std::vector< int > & | subCaps | ) |
int CApplicationPlayer::GetSubtitleCount | ( | ) |
void CApplicationPlayer::GetSubtitleStreamInfo | ( | int | index, |
SubtitleStreamInfo & | info | ||
) |
bool CApplicationPlayer::GetSubtitleVisible | ( | ) |
std::shared_ptr< TextCacheStruct_t > CApplicationPlayer::GetTeletextCache | ( | ) |
int64_t CApplicationPlayer::GetTime | ( | ) | const |
int64_t CApplicationPlayer::GetTotalTime | ( | ) | const |
CVideoSettings CApplicationPlayer::GetVideoSettings | ( | ) |
int CApplicationPlayer::GetVideoStream | ( | ) |
int CApplicationPlayer::GetVideoStreamCount | ( | ) |
void CApplicationPlayer::GetVideoStreamInfo | ( | int | streamId, |
VideoStreamInfo & | info | ||
) |
bool CApplicationPlayer::HasAudio | ( | ) | const |
bool CApplicationPlayer::HasGame | ( | ) | const |
bool CApplicationPlayer::HasGameAgent | ( | ) |
Check if any players are playing a game.
bool CApplicationPlayer::HasMenu | ( | ) | const |
bool CApplicationPlayer::HasPlayer | ( | ) | const |
bool CApplicationPlayer::HasRDS | ( | ) | const |
bool CApplicationPlayer::HasVideo | ( | ) | const |
bool CApplicationPlayer::IsCaching | ( | ) | const |
bool CApplicationPlayer::IsExternalPlaying | ( | ) |
bool CApplicationPlayer::IsInMenu | ( | ) | const |
bool CApplicationPlayer::IsPassthrough | ( | ) | const |
bool CApplicationPlayer::IsPaused | ( | ) |
bool CApplicationPlayer::IsPausedPlayback | ( | ) |
bool CApplicationPlayer::IsPlaying | ( | ) | const |
bool CApplicationPlayer::IsPlayingAudio | ( | ) | const |
bool CApplicationPlayer::IsPlayingGame | ( | ) | const |
bool CApplicationPlayer::IsPlayingRDS | ( | ) | const |
bool CApplicationPlayer::IsPlayingVideo | ( | ) | const |
bool CApplicationPlayer::IsRemotePlaying | ( | ) |
bool CApplicationPlayer::IsRenderingGuiLayer | ( | ) |
bool CApplicationPlayer::IsRenderingVideo | ( | ) |
bool CApplicationPlayer::IsRenderingVideoLayer | ( | ) |
void CApplicationPlayer::LoadPage | ( | int | p, |
int | sp, | ||
unsigned char * | buffer | ||
) |
bool CApplicationPlayer::OnAction | ( | const CAction & | action | ) |
void CApplicationPlayer::OnNothingToQueueNotify | ( | ) |
bool CApplicationPlayer::OpenFile | ( | const CFileItem & | item, |
const CPlayerOptions & | options, | ||
const CPlayerCoreFactory & | factory, | ||
const std::string & | playerName, | ||
IPlayerCallback & | callback | ||
) |
void CApplicationPlayer::OpenNext | ( | const CPlayerCoreFactory & | factory | ) |
void CApplicationPlayer::Pause | ( | ) |
bool CApplicationPlayer::QueueNextFile | ( | const CFileItem & | file | ) |
void CApplicationPlayer::Render | ( | bool | clear, |
uint32_t | alpha = 255 , |
||
bool | gui = true |
||
) |
void CApplicationPlayer::RenderCapture | ( | unsigned int | captureId, |
unsigned int | width, | ||
unsigned int | height, | ||
int | flags = 0 |
||
) |
unsigned int CApplicationPlayer::RenderCaptureAlloc | ( | ) |
bool CApplicationPlayer::RenderCaptureGetPixels | ( | unsigned int | captureId, |
unsigned int | millis, | ||
uint8_t * | buffer, | ||
unsigned int | size | ||
) |
void CApplicationPlayer::RenderCaptureRelease | ( | unsigned int | captureId | ) |
void CApplicationPlayer::ResetPlayer | ( | ) |
void CApplicationPlayer::Seek | ( | bool | bPlus = true , |
bool | bLargeStep = false , |
||
bool | bChapterOverride = false |
||
) |
int CApplicationPlayer::SeekChapter | ( | int | iChapter | ) |
void CApplicationPlayer::SeekPercentage | ( | float | fPercent = 0 | ) |
bool CApplicationPlayer::SeekScene | ( | bool | bPlus = true | ) |
void CApplicationPlayer::SeekTime | ( | int64_t | iTime = 0 | ) |
void CApplicationPlayer::SeekTimeRelative | ( | int64_t | iTime = 0 | ) |
void CApplicationPlayer::SetAudioStream | ( | int | iStream | ) |
void CApplicationPlayer::SetAVDelay | ( | float | fValue = 0.0f | ) |
void CApplicationPlayer::SetDynamicRangeCompression | ( | long | drc | ) |
void CApplicationPlayer::SetMute | ( | bool | bOnOff | ) |
bool CApplicationPlayer::SetPlayerState | ( | const std::string & | state | ) |
void CApplicationPlayer::SetPlaySpeed | ( | float | speed | ) |
void CApplicationPlayer::SetProgram | ( | int | progId | ) |
void CApplicationPlayer::SetRenderViewMode | ( | int | mode, |
float | zoom, | ||
float | par, | ||
float | shift, | ||
bool | stretch | ||
) |
void CApplicationPlayer::SetSpeed | ( | float | speed | ) |
void CApplicationPlayer::SetSubtitle | ( | int | iStream | ) |
void CApplicationPlayer::SetSubTitleDelay | ( | float | fValue = 0.0f | ) |
void CApplicationPlayer::SetSubtitleVisible | ( | bool | bVisible | ) |
void CApplicationPlayer::SetTempo | ( | float | tempo | ) |
void CApplicationPlayer::SetTime | ( | int64_t | time | ) |
void CApplicationPlayer::SetTotalTime | ( | int64_t | time | ) |
void CApplicationPlayer::SetUpdateStreamDetails | ( | ) |
void CApplicationPlayer::SetVideoSettings | ( | CVideoSettings & | settings | ) |
void CApplicationPlayer::SetVideoStream | ( | int | iStream | ) |
void CApplicationPlayer::SetVolume | ( | float | volume | ) |
bool CApplicationPlayer::Supports | ( | EINTERLACEMETHOD | method | ) |
bool CApplicationPlayer::Supports | ( | ERENDERFEATURE | feature | ) |
bool CApplicationPlayer::Supports | ( | ESCALINGMETHOD | method | ) |
bool CApplicationPlayer::SupportsTempo | ( | ) |
void CApplicationPlayer::TriggerUpdateResolution | ( | ) |