1 #ifndef MYTHPLAYERCAPTIONSUI_H
2 #define MYTHPLAYERCAPTIONSUI_H
14 void ResizeForInteractiveTV(
const QRect& Rect);
15 void SetInteractiveStream(
const QString& Stream);
16 void SetInteractiveStreamPos(std::chrono::milliseconds Position);
17 void PlayInteractiveStream(
bool Play);
18 void EnableSubtitles(
bool Enable);
25 QStringList GetTracks(
uint Type);
27 int GetTrack(
uint Type);
29 bool SetAudioByComponentTag(
int Tag);
30 bool SetVideoByComponentTag(
int Tag);
31 std::chrono::milliseconds GetStreamPos();
32 std::chrono::milliseconds GetStreamMaxPos();
39 void SetAllowForcedSubtitles(
bool Allow);
40 void ToggleCaptions();
41 void ToggleCaptionsByType(
uint Type);
42 void SetCaptionsEnabled(
bool Enable,
bool UpdateOSD =
true);
43 virtual void DisableCaptions(
uint Mode,
bool UpdateOSD =
true);
44 virtual void EnableCaptions(
uint Mode,
bool UpdateOSD =
true);
45 virtual void SetTrack(
uint Type,
uint TrackNo);
46 void ChangeCaptionTrack(
int Direction);
47 void ChangeTrack(
uint Type,
int Direction);
49 void EnableTeletext(
int Page = 0x100);
51 void SetTeletextPage(
uint Page);
52 void HandleTeletextAction(
const QString &
Action,
bool& Handled);
53 void ITVHandleAction(
const QString&
Action,
bool& Handled);
54 void ITVRestart(
uint Chanid,
uint Cardid,
bool IsLiveTV);
55 void AdjustSubtitleZoom(
int Delta);
56 void AdjustSubtitleDelay(std::chrono::milliseconds Delta);
59 void ExternalSubtitlesUpdated();
60 void SetStream(
const QString& Stream);
61 void SetStreamPos(std::chrono::milliseconds Position);
62 void StreamPlay(
bool Playing =
true);
66 void DoDisableForcedSubtitles();
67 void DoEnableForcedSubtitles();
68 void LoadExternalSubtitles();
72 bool m_textDesired {
false };
77 bool m_itvEnabled {
false };
78 bool m_itvVisible {
false };
82 void DisableTeletext();