|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <ApplicationPlayer.h>
Public Member Functions | |
| CApplicationPlayer ()=default | |
| void | ClosePlayer () |
| void | ResetPlayer () |
| std::string | GetCurrentPlayer () const |
| float | GetPlaySpeed () const |
| float | GetPlayTempo () const |
| 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 () const |
| bool | GetRects (CRect &source, CRect &dest, CRect &view) const |
| unsigned int | GetOrientation () const |
| void | TriggerUpdateResolution () |
| bool | IsRenderingVideo () const |
| bool | IsRenderingGuiLayer () const |
| bool | IsRenderingVideoLayer () const |
| bool | Supports (EINTERLACEMETHOD method) const |
| EINTERLACEMETHOD | GetDeinterlacingMethodDefault () const |
| bool | Supports (ESCALINGMETHOD method) const |
| bool | Supports (ERENDERFEATURE feature) const |
| 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 () const |
| bool | IsRemotePlaying () const |
| std::string | GetName () const |
| Get the name of the player in use. | |
| void | AddSubtitle (const std::string &strSubPath) |
| bool | CanPause () const |
| bool | CanSeek () const |
| int | GetAudioDelay () const |
| void | GetAudioCapabilities (std::vector< IPlayerAudioCaps > &caps) const |
| int | GetAudioStream () |
| int | GetAudioStreamCount () const |
| void | GetAudioStreamInfo (int index, AudioStreamInfo &info) const |
| std::vector< std::chrono::milliseconds > | GetBookmarks () const |
| int | GetCacheLevel () const |
| float | GetCachePercentage () const |
| int | GetChapterCount () const |
| int | GetChapter () const |
| void | GetChapterName (std::string &strChapterName, int chapterIdx=-1) const |
| int64_t | GetChapterPos (int chapterIdx=-1) const |
| float | GetPercentage () const |
| std::string | GetPlayerState () |
| KODI::PLAYLIST::Id | GetPreferredPlaylist () const |
| int | GetSubtitleDelay () const |
| int | GetSubtitle () |
| void | GetSubtitleCapabilities (std::vector< IPlayerSubtitleCaps > &caps) const |
| int | GetSubtitleCount () const |
| void | GetSubtitleStreamInfo (int index, SubtitleStreamInfo &info) const |
| bool | GetSubtitleVisible () const |
| bool | HasTeletextCache () const |
| std::shared_ptr< TextCacheStruct_t > | GetTeletextCache () |
| int64_t | GetTime () const |
| int64_t | GetMinTime () const |
| int64_t | GetMaxTime () const |
| time_t | GetStartTime () const |
| int64_t | GetTotalTime () const |
| int | GetVideoStream () |
| int | GetVideoStreamCount () const |
| void | GetVideoStreamInfo (int streamId, VideoStreamInfo &info) const |
| int | GetPrograms (std::vector< ProgramInfo > &programs) |
| void | SetProgram (int progId) |
| int | GetProgramsCount () const |
| bool | HasAudio () const |
| MenuType | GetSupportedMenuType () const |
| Get the supported menu type. | |
| bool | HasVideo () const |
| bool | HasGame () const |
| bool | HasRDS () const |
| bool | IsCaching () const |
| bool | IsInMenu () const |
| bool | IsPaused () const |
| bool | IsPausedPlayback () const |
| bool | IsPassthrough () const |
| bool | IsPlaying () const |
| bool | IsPlayingAudio () const |
| bool | IsPlayingVideo () const |
| bool | IsPlayingGame () const |
| bool | IsPlayingRDS () const |
| bool | IsLiveStream () 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 (Direction seekDirection) |
| void | SeekTime (int64_t iTime=0) |
| void | SeekTimeRelative (int64_t iTime=0) |
| void | SetAudioStream (int iStream) |
| void | SetAVDelay (float fValue=0.0f) |
| void | SetBookmarks (const std::vector< std::chrono::milliseconds > &bookmarks) |
| 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 | SetSubtitleVerticalPosition (const int value, bool save) |
| Set the subtitle vertical position, it depends on current screen resolution. | |
| void | SetTime (int64_t time) |
| void | SetTotalTime (int64_t time) |
| void | SetVideoStream (int iStream) |
| void | SetVolume (float volume) |
| void | SetSpeed (float speed) |
| bool | SupportsTempo () const |
| CVideoSettings | GetVideoSettings () const |
| void | SetVideoSettings (CVideoSettings &settings) |
| CSeekHandler & | GetSeekHandler () |
| const CSeekHandler & | GetSeekHandler () const |
| void | SetUpdateStreamDetails () |
| bool | HasGameAgent () const |
| Check if any players are playing a game. | |
| bool | SupportsDiscControl () const |
| Check if disc for the currently playing item can be ejected or swapped. | |
| bool | IsDiscEjected () const |
| Check if disc for the currently playing item is ejected. | |
| std::string | DiscLabel () const |
| Get the human-readable label of the currently playing disc, if the media is disc-based. | |
| bool | IsTrayEmpty () const |
| Check if the virtual disc tray for the currently playing item is empty. | |
Public Member Functions inherited from IApplicationComponent | |
| virtual | ~IApplicationComponent ()=default |
|
default |
| void CApplicationPlayer::AddSubtitle | ( | const std::string & | strSubPath | ) |
| bool CApplicationPlayer::CanPause | ( | ) | const |
| bool CApplicationPlayer::CanSeek | ( | ) | const |
| void CApplicationPlayer::ClosePlayer | ( | ) |
| std::string CApplicationPlayer::DiscLabel | ( | ) | const |
Get the human-readable label of the currently playing disc, if the media is disc-based.
| void CApplicationPlayer::FlushRenderer | ( | ) |
| void CApplicationPlayer::FrameMove | ( | ) |
| void CApplicationPlayer::GetAudioCapabilities | ( | std::vector< IPlayerAudioCaps > & | caps | ) | const |
| int CApplicationPlayer::GetAudioDelay | ( | ) | const |
| int CApplicationPlayer::GetAudioStream | ( | ) |
| int CApplicationPlayer::GetAudioStreamCount | ( | ) | const |
| void CApplicationPlayer::GetAudioStreamInfo | ( | int | index, |
| AudioStreamInfo & | info ) const |
| std::vector< std::chrono::milliseconds > CApplicationPlayer::GetBookmarks | ( | ) | const |
| int CApplicationPlayer::GetCacheLevel | ( | ) | const |
| float CApplicationPlayer::GetCachePercentage | ( | ) | const |
| int CApplicationPlayer::GetChapter | ( | ) | const |
| int CApplicationPlayer::GetChapterCount | ( | ) | const |
| std::string CApplicationPlayer::GetCurrentPlayer | ( | ) | const |
| EINTERLACEMETHOD CApplicationPlayer::GetDeinterlacingMethodDefault | ( | ) | const |
| int64_t CApplicationPlayer::GetMaxTime | ( | ) | const |
| int64_t CApplicationPlayer::GetMinTime | ( | ) | const |
| std::string CApplicationPlayer::GetName | ( | ) | const |
Get the name of the player in use.
| unsigned int CApplicationPlayer::GetOrientation | ( | ) | const |
| float CApplicationPlayer::GetPercentage | ( | ) | const |
| std::string CApplicationPlayer::GetPlayerState | ( | ) |
| float CApplicationPlayer::GetPlaySpeed | ( | ) | const |
| float CApplicationPlayer::GetPlayTempo | ( | ) | const |
| PLAYLIST::Id CApplicationPlayer::GetPreferredPlaylist | ( | ) | const |
| int CApplicationPlayer::GetPrograms | ( | std::vector< ProgramInfo > & | programs | ) |
| int CApplicationPlayer::GetProgramsCount | ( | ) | const |
| float CApplicationPlayer::GetRenderAspectRatio | ( | ) | const |
| CSeekHandler & CApplicationPlayer::GetSeekHandler | ( | ) |
| const CSeekHandler & CApplicationPlayer::GetSeekHandler | ( | ) | const |
| time_t CApplicationPlayer::GetStartTime | ( | ) | const |
| int CApplicationPlayer::GetSubtitle | ( | ) |
| void CApplicationPlayer::GetSubtitleCapabilities | ( | std::vector< IPlayerSubtitleCaps > & | caps | ) | const |
| int CApplicationPlayer::GetSubtitleCount | ( | ) | const |
| int CApplicationPlayer::GetSubtitleDelay | ( | ) | const |
| void CApplicationPlayer::GetSubtitleStreamInfo | ( | int | index, |
| SubtitleStreamInfo & | info ) const |
| bool CApplicationPlayer::GetSubtitleVisible | ( | ) | const |
| MenuType CApplicationPlayer::GetSupportedMenuType | ( | ) | const |
Get the supported menu type.
| std::shared_ptr< TextCacheStruct_t > CApplicationPlayer::GetTeletextCache | ( | ) |
| int64_t CApplicationPlayer::GetTime | ( | ) | const |
| int64_t CApplicationPlayer::GetTotalTime | ( | ) | const |
| CVideoSettings CApplicationPlayer::GetVideoSettings | ( | ) | const |
| int CApplicationPlayer::GetVideoStream | ( | ) |
| int CApplicationPlayer::GetVideoStreamCount | ( | ) | const |
| void CApplicationPlayer::GetVideoStreamInfo | ( | int | streamId, |
| VideoStreamInfo & | info ) const |
| bool CApplicationPlayer::HasAudio | ( | ) | const |
| bool CApplicationPlayer::HasGame | ( | ) | const |
| bool CApplicationPlayer::HasGameAgent | ( | ) | const |
Check if any players are playing a game.
| bool CApplicationPlayer::HasPlayer | ( | ) | const |
| bool CApplicationPlayer::HasRDS | ( | ) | const |
| bool CApplicationPlayer::HasTeletextCache | ( | ) | const |
| bool CApplicationPlayer::HasVideo | ( | ) | const |
| bool CApplicationPlayer::IsCaching | ( | ) | const |
| bool CApplicationPlayer::IsDiscEjected | ( | ) | const |
Check if disc for the currently playing item is ejected.
| bool CApplicationPlayer::IsExternalPlaying | ( | ) | const |
| bool CApplicationPlayer::IsInMenu | ( | ) | const |
| bool CApplicationPlayer::IsLiveStream | ( | ) | const |
| bool CApplicationPlayer::IsPassthrough | ( | ) | const |
| bool CApplicationPlayer::IsPaused | ( | ) | const |
| bool CApplicationPlayer::IsPausedPlayback | ( | ) | const |
| bool CApplicationPlayer::IsPlaying | ( | ) | const |
| bool CApplicationPlayer::IsPlayingAudio | ( | ) | const |
| bool CApplicationPlayer::IsPlayingGame | ( | ) | const |
| bool CApplicationPlayer::IsPlayingRDS | ( | ) | const |
| bool CApplicationPlayer::IsPlayingVideo | ( | ) | const |
| bool CApplicationPlayer::IsRemotePlaying | ( | ) | const |
| bool CApplicationPlayer::IsRenderingGuiLayer | ( | ) | const |
| bool CApplicationPlayer::IsRenderingVideo | ( | ) | const |
| bool CApplicationPlayer::IsRenderingVideoLayer | ( | ) | const |
| bool CApplicationPlayer::IsTrayEmpty | ( | ) | const |
Check if the virtual disc tray for the currently playing item is empty.
| 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 | ( | ) |
| 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::ResetPlayer | ( | ) |
| void CApplicationPlayer::Seek | ( | bool | bPlus = true, |
| bool | bLargeStep = false, | ||
| bool | bChapterOverride = false ) |
| void CApplicationPlayer::SeekPercentage | ( | float | fPercent = 0 | ) |
| void CApplicationPlayer::SetAVDelay | ( | float | fValue = 0.0f | ) |
| void CApplicationPlayer::SetBookmarks | ( | const std::vector< std::chrono::milliseconds > & | bookmarks | ) |
| void CApplicationPlayer::SetDynamicRangeCompression | ( | long | drc | ) |
| bool CApplicationPlayer::SetPlayerState | ( | const std::string & | state | ) |
| void CApplicationPlayer::SetPlaySpeed | ( | float | speed | ) |
| void CApplicationPlayer::SetRenderViewMode | ( | int | mode, |
| float | zoom, | ||
| float | par, | ||
| float | shift, | ||
| bool | stretch ) |
| void CApplicationPlayer::SetSpeed | ( | float | speed | ) |
| void CApplicationPlayer::SetSubTitleDelay | ( | float | fValue = 0.0f | ) |
Set the subtitle vertical position, it depends on current screen resolution.
| value | The subtitle position in pixels |
| save | If true, the value will be saved to resolution info |
| void CApplicationPlayer::SetTempo | ( | float | tempo | ) |
| void CApplicationPlayer::SetUpdateStreamDetails | ( | ) |
| void CApplicationPlayer::SetVideoSettings | ( | CVideoSettings & | settings | ) |
| void CApplicationPlayer::SetVolume | ( | float | volume | ) |
| bool CApplicationPlayer::Supports | ( | EINTERLACEMETHOD | method | ) | const |
| bool CApplicationPlayer::Supports | ( | ERENDERFEATURE | feature | ) | const |
| bool CApplicationPlayer::Supports | ( | ESCALINGMETHOD | method | ) | const |
| bool CApplicationPlayer::SupportsDiscControl | ( | ) | const |
Check if disc for the currently playing item can be ejected or swapped.
| bool CApplicationPlayer::SupportsTempo | ( | ) | const |
| void CApplicationPlayer::TriggerUpdateResolution | ( | ) |