11 #include "SeekHandler.h" 12 #include "application/IApplicationComponent.h" 13 #include "cores/IPlayer.h" 14 #include "cores/MenuType.h" 15 #include "playlists/PlayListTypes.h" 16 #include "threads/CriticalSection.h" 17 #include "threads/SystemClock.h" 41 std::string GetCurrentPlayer()
const;
42 float GetPlaySpeed()
const;
43 float GetPlayTempo()
const;
44 bool HasPlayer()
const;
49 void SetPlaySpeed(
float speed);
50 void SetTempo(
float tempo);
51 void FrameAdvance(
int frames);
54 void Render(
bool clear, uint32_t alpha = 255,
bool gui =
true);
56 void SetRenderViewMode(
int mode,
float zoom,
float par,
float shift,
bool stretch);
57 float GetRenderAspectRatio()
const;
59 unsigned int GetOrientation()
const;
60 void TriggerUpdateResolution();
61 bool IsRenderingVideo()
const;
62 bool IsRenderingGuiLayer()
const;
63 bool IsRenderingVideoLayer()
const;
64 bool Supports(EINTERLACEMETHOD method)
const;
65 EINTERLACEMETHOD GetDeinterlacingMethodDefault()
const;
66 bool Supports(ESCALINGMETHOD method)
const;
67 bool Supports(ERENDERFEATURE feature)
const;
68 unsigned int RenderCaptureAlloc();
69 void RenderCapture(
unsigned int captureId,
unsigned int width,
unsigned int height,
int flags = 0);
70 void RenderCaptureRelease(
unsigned int captureId);
71 bool RenderCaptureGetPixels(
unsigned int captureId,
unsigned int millis, uint8_t *buffer,
unsigned int size);
72 bool IsExternalPlaying()
const;
73 bool IsRemotePlaying()
const;
82 void AddSubtitle(
const std::string& strSubPath);
83 bool CanPause()
const;
85 int GetAudioDelay()
const;
86 void GetAudioCapabilities(std::vector<int>& audioCaps)
const;
88 int GetAudioStreamCount()
const;
90 int GetCacheLevel()
const;
91 float GetCachePercentage()
const;
92 int GetChapterCount()
const;
93 int GetChapter()
const;
94 void GetChapterName(std::string& strChapterName,
int chapterIdx = -1)
const;
95 int64_t GetChapterPos(
int chapterIdx = -1)
const;
96 float GetPercentage()
const;
97 std::string GetPlayerState();
98 PLAYLIST::Id GetPreferredPlaylist()
const;
99 int GetSubtitleDelay()
const;
101 void GetSubtitleCapabilities(std::vector<int>& subCaps)
const;
102 int GetSubtitleCount()
const;
104 bool GetSubtitleVisible()
const;
105 bool HasTeletextCache()
const;
106 std::shared_ptr<TextCacheStruct_t> GetTeletextCache();
107 int64_t GetTime()
const;
108 int64_t GetMinTime()
const;
109 int64_t GetMaxTime()
const;
110 time_t GetStartTime()
const;
111 int64_t GetTotalTime()
const;
112 int GetVideoStream();
113 int GetVideoStreamCount()
const;
115 int GetPrograms(std::vector<ProgramInfo>& programs);
116 void SetProgram(
int progId);
117 int GetProgramsCount()
const;
118 bool HasAudio()
const;
126 bool HasVideo()
const;
127 bool HasGame()
const;
129 bool IsCaching()
const;
130 bool IsInMenu()
const;
131 bool IsPaused()
const;
132 bool IsPausedPlayback()
const;
133 bool IsPassthrough()
const;
134 bool IsPlaying()
const;
135 bool IsPlayingAudio()
const;
136 bool IsPlayingVideo()
const;
137 bool IsPlayingGame()
const;
138 bool IsPlayingRDS()
const;
139 void LoadPage(
int p,
int sp,
unsigned char* buffer);
140 bool OnAction(
const CAction &action);
141 void OnNothingToQueueNotify();
143 bool QueueNextFile(
const CFileItem &file);
144 void Seek(
bool bPlus =
true,
bool bLargeStep =
false,
bool bChapterOverride =
false);
145 int SeekChapter(
int iChapter);
146 void SeekPercentage(
float fPercent = 0);
147 bool SeekScene(
bool bPlus =
true);
148 void SeekTime(int64_t iTime = 0);
149 void SeekTimeRelative(int64_t iTime = 0);
150 void SetAudioStream(
int iStream);
151 void SetAVDelay(
float fValue = 0.0f);
152 void SetDynamicRangeCompression(
long drc);
153 void SetMute(
bool bOnOff);
154 bool SetPlayerState(
const std::string& state);
155 void SetSubtitle(
int iStream);
156 void SetSubTitleDelay(
float fValue = 0.0f);
157 void SetSubtitleVisible(
bool bVisible);
167 void SetTime(int64_t time);
168 void SetTotalTime(int64_t time);
169 void SetVideoStream(
int iStream);
170 void SetVolume(
float volume);
171 void SetSpeed(
float speed);
172 bool SupportsTempo()
const;
180 void SetUpdateStreamDetails();
188 std::shared_ptr<const IPlayer> GetInternal()
const;
189 std::shared_ptr<IPlayer> GetInternal();
191 void CloseFile(
bool reopen =
false);
193 std::shared_ptr<IPlayer> m_pPlayer;
194 mutable CCriticalSection m_playerLock;
203 int m_iSubtitleStream;
207 std::shared_ptr<CFileItem> pItem;
209 std::string playerName;
Definition: ApplicationPlayer.h:33
Definition: StreamInfo.h:65
MenuType GetSupportedMenuType() const
Get the supported menu type.
Definition: ApplicationPlayer.cpp:417
std::string GetName() const
Get the name of the player in use.
Definition: ApplicationPlayer.cpp:1015
Definition: SystemClock.h:31
Definition: PlayerCoreFactory.h:30
Definition: StreamInfo.h:55
Definition: StreamDetails.h:92
Definition: StreamInfo.h:62
Class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:21
Definition: IPlayerCallback.h:18
Base class for application components.
Definition: IApplicationComponent.h:12
Definition: SeekHandler.h:28
Definition: TeletextDefines.h:393
Definition: settings.py:1
bool HasGameAgent() const
Check if any players are playing a game.
Definition: ApplicationPlayer.cpp:1062
void SetSubtitleVerticalPosition(const int value, bool save)
Set the subtitle vertical position, it depends on current screen resolution.
Definition: ApplicationPlayer.cpp:694
Definition: VideoSettings.h:194
Represents a file on a share.
Definition: FileItem.h:102