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();
38 void SetAllowForcedSubtitles(
bool Allow);
39 void ToggleCaptions();
40 void ToggleCaptionsByType(
uint Type);
41 void SetCaptionsEnabled(
bool Enable,
bool UpdateOSD =
true);
42 virtual void DisableCaptions(
uint Mode,
bool UpdateOSD =
true);
43 virtual void EnableCaptions(
uint Mode,
bool UpdateOSD =
true);
44 virtual void SetTrack(
uint Type,
uint TrackNo);
45 void ChangeCaptionTrack(
int Direction);
46 void ChangeTrack(
uint Type,
int Direction);
48 void EnableTeletext(
int Page = 0x100);
50 void SetTeletextPage(
uint Page);
51 void HandleTeletextAction(
const QString &
Action,
bool& Handled);
52 void ITVHandleAction(
const QString&
Action,
bool& Handled);
53 void ITVRestart(
uint Chanid,
uint Cardid,
bool IsLiveTV);
54 void AdjustSubtitleZoom(
int Delta);
55 void AdjustSubtitleDelay(std::chrono::milliseconds Delta);
58 void ExternalSubtitlesUpdated();
59 void SetStream(
const QString& Stream);
60 void SetStreamPos(std::chrono::milliseconds Position);
61 void StreamPlay(
bool Playing =
true);
65 void DoDisableForcedSubtitles();
66 void DoEnableForcedSubtitles();
67 void LoadExternalSubtitles();
71 bool m_textDesired {
false };
76 bool m_itvEnabled {
false };
77 bool m_itvVisible {
false };
78 QString m_newStream { };
81 void DisableTeletext();