MythTV  master
Classes | Public Slots | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Slots | Protected Member Functions | Static Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
TV Class Reference

Control TV playback. More...

#include <tv_play.h>

Inheritance diagram for TV:
Inheritance graph
[legend]
Collaboration diagram for TV:
Collaboration graph
[legend]

Classes

class  SleepTimerInfo
 Helper class for Sleep Timer code. More...
 

Public Slots

void HandleOSDClosed (int osdType)
 
void timerEvent (QTimerEvent *) override
 
void StopPlayback (void)
 

Public Member Functions

bool event (QEvent *e) override
 This handles all standard events. More...
 
bool eventFilter (QObject *o, QEvent *e) override
 This selectively blocks KeyPress and Resize events. More...
 
bool IsSameProgram (int player_idx, const ProgramInfo *rcinfo) const
 true iff program is the same as the one in the selected player More...
 
void FinishRecording (int player_ctx)
 Finishes player's recording. More...
 

Static Public Member Functions

static bool IsTVRunning (void)
 
static TVCurrentTVInstance (void)
 
static bool StartTV (ProgramInfo *tvrec, uint flags, const ChannelInfoList &selection=ChannelInfoList())
 returns true if the recording completed when exiting. More...
 
static bool IsPaused (void)
 Returns true if a TV playback is currently going; otherwise returns false. More...
 
static void InitKeys (void)
 
static void ReloadKeys (void)
 
static void SetFuncPtr (const char *, void *)
 Import pointers to functions used to embed the TV window into other containers e.g. More...
 
static int ConfiguredTunerCards (void)
 If any cards are configured, return the number. More...
 
static bool IsTunable (uint chanid)
 

Static Public Attributes

static const int kInitFFRWSpeed = 0
 1x, default to normal speed More...
 
static const uint kInputKeysMax = 6
 When to start discarding early keys. More...
 
static const uint kNextSource = 1
 
static const uint kPreviousSource = 2
 
static const uint kMaxPIPCount = 4
 
static const uint kMaxPBPCount = 2
 Timeout for entry modes in msec. More...
 
static const uint kInputModeTimeout = 5000
 
static const uint kLCDTimeout = 1000
 Timeout for updating LCD info in msec. More...
 
static const uint kBrowseTimeout = 30000
 Timeout for browse mode exit in msec. More...
 
static const uint kKeyRepeatTimeout = 300
 Seek key repeat timeout in msec. More...
 
static const uint kPrevChanTimeout = 750
 How long to wait before applying all previous channel keypresses in msec. More...
 
static const uint kSleepTimerDialogTimeout = 45000
 How long to display sleep timer dialog in msec. More...
 
static const uint kIdleTimerDialogTimeout = 45000
 How long to display idle timer dialog in seconds. More...
 
static const uint kVideoExitDialogTimeout = 120000
 How long to display idle timer dialog in msec. More...
 
static const uint kEndOfPlaybackCheckFrequency = 250
 
static const uint kEmbedCheckFrequency = 250
 
static const uint kSpeedChangeCheckFrequency = 250
 
static const uint kErrorRecoveryCheckFrequency = 250
 
static const uint kEndOfRecPromptCheckFrequency = 250
 
static const uint kEndOfPlaybackFirstCheckTimer = 5000
 
static const uint kSaveLastPlayPosTimeout = 30000
 

Protected Slots

void onApplicationStateChange (Qt::ApplicationState state)
 

Protected Member Functions

void customEvent (QEvent *e) override
 This handles all custom events. More...
 

Static Protected Attributes

static QStringList lastProgramStringList = QStringList()
 stores last program info. More...
 
static EMBEDRETURNVOID RunPlaybackBoxPtr = nullptr
 function pointer for RunPlaybackBox in playbackbox.cpp More...
 
static EMBEDRETURNVOID RunViewScheduledPtr = nullptr
 function pointer for RunViewScheduled in viewscheduled.cpp More...
 
static EMBEDRETURNVOIDEPG RunProgramGuidePtr = nullptr
 function pointer for RunProgramGuide in guidegrid.cpp More...
 
static EMBEDRETURNVOIDFINDER RunProgramFinderPtr = nullptr
 function pointer for RunProgramFinder in progfind.cpp More...
 
static EMBEDRETURNVOIDSCHEDIT RunScheduleEditorPtr = nullptr
 function pointer for RunScheduleEditor in scheduleeditor.cpp More...
 

Private Types

enum  BookmarkAction { kBookmarkAlways, kBookmarkNever, kBookmarkAuto }
 
enum  ArbSeekWhence { ARBSEEK_SET = 0, ARBSEEK_REWIND, ARBSEEK_FORWARD, ARBSEEK_END }
 
using TimerContextMap = QMap< int, PlayerContext * >
 
using TimerContextConstMap = QMap< int, const PlayerContext * >
 

Private Member Functions

 TV ()
 
 ~TV ()
 
bool Init (bool createWindow=true)
 Performs instance initialization, returns true on success. More...
 
void InitFromDB (void)
 
bool LiveTV (bool showDialogs, const ChannelInfoList &selection)
 Starts LiveTV. More...
 
int Playback (const ProgramInfo &rcinfo)
 
void PlaybackLoop (void)
 The main playback loop. More...
 
bool ProcessKeypressOrGesture (PlayerContext *, QEvent *e)
 
bool TranslateKeyPressOrGesture (const QString &context, QEvent *e, QStringList &actions, bool isLiveTV, bool allowJumps=true)
 
bool TranslateGesture (const QString &context, MythGestureEvent *e, QStringList &actions, bool isLiveTV)
 
void ProcessNetworkControlCommand (PlayerContext *, const QString &command)
 
bool HandleTrackAction (PlayerContext *, const QString &action)
 
bool ActiveHandleAction (PlayerContext *, const QStringList &actions, bool isDVD, bool isDVDStillFrame)
 
bool BrowseHandleAction (PlayerContext *, const QStringList &actions)
 
void OSDDialogEvent (int result, const QString &text, QString action)
 
bool PxPHandleAction (PlayerContext *, const QStringList &actions)
 
bool ToggleHandleAction (PlayerContext *, const QStringList &actions, bool isDVD)
 
bool FFRewHandleAction (PlayerContext *, const QStringList &actions)
 
bool ActivePostQHandleAction (PlayerContext *, const QStringList &actions)
 
bool HandleJumpToProgramAction (PlayerContext *ctx, const QStringList &actions)
 
bool SeekHandleAction (PlayerContext *actx, const QStringList &actions, const bool isDVD)
 
bool TimeStretchHandleAction (PlayerContext *, const QStringList &actions)
 
bool Handle3D (PlayerContext *ctx, const QString &action)
 
int StartTimer (int interval, int line)
 
void KillTimer (int id)
 
void SetSpeedChangeTimer (uint when, int line)
 
void HandleEndOfPlaybackTimerEvent (void)
 
void HandleIsNearEndWhenEmbeddingTimerEvent (void)
 
void HandleEndOfRecordingExitPromptTimerEvent (void)
 
void HandleVideoExitDialogTimerEvent (void)
 
void HandlePseudoLiveTVTimerEvent (void)
 
void HandleSpeedChangeTimerEvent (void)
 
void ToggleSleepTimer (const PlayerContext *)
 
void ToggleSleepTimer (const PlayerContext *, const QString &time)
 
bool HandlePxPTimerEvent (void)
 
bool HandleLCDTimerEvent (void)
 
void HandleLCDVolumeTimerEvent (void)
 
void HandleSaveLastPlayPosEvent ()
 
void EditSchedule (const PlayerContext *, int editType=kScheduleProgramGuide)
 
bool StartEmbedding (const QRect &)
 
void StopEmbedding (void)
 
void ChangeChannel (const PlayerContext *, const ChannelInfoList &options)
 
void DoEditSchedule (int editType=kScheduleProgramGuide)
 
QString GetRecordingGroup (int player_idx) const
 
void ChangeVolume (PlayerContext *, bool up, int newvolume=-1)
 
void ToggleMute (PlayerContext *, const bool muteIndividualChannels=false)
 
void UpdateChannelList (int groupID)
 update the channel list with channels from the selected channel group More...
 
OSDGetOSDL (const char *, int)
 
OSDGetOSDL (const PlayerContext *, const char *, int)
 
void ReturnOSDLock (const PlayerContext *, OSD *&)
 
PlayerContextGetPlayerWriteLock (int which, const char *file, int location)
 
PlayerContextGetPlayerReadLock (int which, const char *file, int location)
 
const PlayerContextGetPlayerReadLock (int which, const char *file, int location) const
 
PlayerContextGetPlayerHaveLock (PlayerContext *, int which, const char *file, int location)
 
const PlayerContextGetPlayerHaveLock (const PlayerContext *, int which, const char *file, int location) const
 
void ReturnPlayerLock (PlayerContext *&)
 
void ReturnPlayerLock (const PlayerContext *&) const
 
void ToggleAutoExpire (PlayerContext *)
 
void QuickRecord (PlayerContext *)
 
TVState GetState (int player_idx) const
 get tv state of active player context More...
 
void HandleStateChange (PlayerContext *mctx, PlayerContext *ctx)
 Changes the state to the state on the front of the state change queue. More...
 
void GetStatus (void)
 
void ForceNextStateNone (PlayerContext *)
 
void ScheduleStateChange (PlayerContext *)
 
void SetErrored (PlayerContext *)
 
void setInPlayList (bool setting)
 
void setUnderNetworkControl (bool setting)
 
void PrepToSwitchToRecordedProgram (PlayerContext *, const ProgramInfo &)
 
void PrepareToExitPlayer (PlayerContext *, int line, BookmarkAction bookmark=kBookmarkAuto)
 
void SetExitPlayer (bool set_it, bool wants_to)
 
bool RequestNextRecorder (PlayerContext *, bool, const ChannelInfoList &sel=ChannelInfoList())
 
void DeleteRecorder ()
 
bool StartRecorder (PlayerContext *ctx, int maxWait=-1)
 Starts recorder, must be called before StartPlayer(). More...
 
void StopStuff (PlayerContext *mctx, PlayerContext *ctx, bool stopRingBuffer, bool stopPlayer, bool stopRecorder)
 Can shut down the ringbuffers, the players, and in LiveTV it can shut down the recorders. More...
 
void TeardownPlayer (PlayerContext *mctx, PlayerContext *ctx)
 
bool StartPlayer (PlayerContext *mctx, PlayerContext *ctx, TVState desiredState)
 
vector< long long > TeardownAllPlayers (PlayerContext *)
 Teardown all Player's in preparation for PxP Swap or change from PIP -> PBP or PBP -> PIP. More...
 
void RestartAllPlayers (PlayerContext *lctx, const vector< long long > &pos, MuteState mctx_mute)
 Recreate Main and PIP windows. More...
 
void RestartMainPlayer (PlayerContext *mctx)
 
bool IsSwitchingCards (void) const
 Returns true if we are currently in the process of switching recorders. More...
 
bool getAllowRerecord (void) const
 Returns true if the user told Mythtv to allow re-recording of the show. More...
 
bool getEndOfRecording (void) const
 This is set to true if the player reaches the end of the recording without the user explicitly exiting the player. More...
 
bool getJumpToProgram (void) const
 This is set if the user asked MythTV to jump to the previous recording in the playlist. More...
 
void ChangeChannel (PlayerContext *, ChannelChangeDirection direction)
 
void ChangeChannel (PlayerContext *, uint chanid, const QString &channum)
 
void ShowPreviousChannel (PlayerContext *)
 
void PopPreviousChannel (PlayerContext *, bool immediate_change)
 
void AddKeyToInputQueue (PlayerContext *, char key)
 
void ClearInputQueues (const PlayerContext *, bool hideosd)
 Clear channel key buffer of input keys. More...
 
bool CommitQueuedInput (PlayerContext *)
 
bool ProcessSmartChannel (const PlayerContext *, QString &)
 
bool HasQueuedInput (void) const
 
bool HasQueuedChannel (void) const
 
QString GetQueuedInput (void) const
 
int GetQueuedInputAsInt (bool *ok=nullptr, int base=10) const
 
QString GetQueuedChanNum (void) const
 
uint GetQueuedChanID (void) const
 
void SwitchSource (PlayerContext *, uint source_direction)
 
void SwitchInputs (PlayerContext *, uint chanid=0, QString channum="", uint inputid=0)
 
void PauseLiveTV (PlayerContext *)
 Used in ChangeChannel() to temporarily stop video output. More...
 
void UnpauseLiveTV (PlayerContext *, bool bQuietly=false)
 Used in ChangeChannel() to restart video output. More...
 
void DoPlay (PlayerContext *)
 
float DoTogglePauseStart (PlayerContext *)
 
void DoTogglePauseFinish (PlayerContext *, float time, bool showOSD)
 
void DoTogglePause (PlayerContext *, bool showOSD)
 
vector< boolDoSetPauseState (PlayerContext *lctx, const vector< bool > &)
 
void SetLastProgram (const ProgramInfo *rcinfo)
 
ProgramInfoGetLastProgram (void) const
 
void DoSeek (PlayerContext *, float time, const QString &mesg, bool timeIsOffset, bool honorCutlist)
 
bool DoPlayerSeek (PlayerContext *, float time)
 
bool DoPlayerSeekToFrame (PlayerContext *ctx, uint64_t target)
 
void DoSeekAbsolute (PlayerContext *ctx, long long seconds, bool honorCutlist)
 
void DoArbSeek (PlayerContext *, ArbSeekWhence whence, bool honorCutlist)
 
void DoJumpFFWD (PlayerContext *ctx)
 
void DoJumpRWND (PlayerContext *ctx)
 
void DoSeekFFWD (PlayerContext *ctx)
 
void DoSeekRWND (PlayerContext *ctx)
 
void NormalSpeed (PlayerContext *)
 
void ChangeSpeed (PlayerContext *, int direction)
 
void ToggleTimeStretch (PlayerContext *)
 
void ChangeTimeStretch (PlayerContext *, int dir, bool allowEdit=true)
 
void DVDJumpBack (PlayerContext *)
 
void DVDJumpForward (PlayerContext *)
 
float StopFFRew (PlayerContext *)
 
void ChangeFFRew (PlayerContext *, int direction)
 
void SetFFRew (PlayerContext *, int index)
 
void EnableUpmix (PlayerContext *, bool enable, bool toggle=false)
 
void ChangeAudioSync (PlayerContext *, int dir, int newsync=-9999)
 
bool AudioSyncHandleAction (PlayerContext *, const QStringList &actions)
 
void DoSwitchTitle (PlayerContext *, int title)
 
void DoSwitchAngle (PlayerContext *, int angle)
 
void DoJumpChapter (PlayerContext *, int chapter)
 
void DoSkipCommercials (PlayerContext *, int direction)
 
void SetAutoCommercialSkip (const PlayerContext *, CommSkipMode skipMode=kCommSkipOff)
 
void DoQueueTranscode (PlayerContext *, const QString &profile)
 
void SetBookmark (PlayerContext *ctx, bool clear=false)
 
bool ClearOSD (const PlayerContext *)
 
void ToggleOSD (PlayerContext *, bool includeStatusOSD)
 Cycle through the available Info OSDs. More...
 
void ToggleOSDDebug (PlayerContext *)
 
void UpdateOSDDebug (const PlayerContext *ctx)
 
void UpdateOSDProgInfo (const PlayerContext *, const char *whichInfo)
 Update and display the passed OSD set with programinfo. More...
 
void UpdateOSDStatus (const PlayerContext *ctx, const QString &title, const QString &desc, const QString &value, int type, const QString &units, int position=0, enum OSDTimeout timeout=kOSDTimeout_Med)
 
void UpdateOSDStatus (const PlayerContext *ctx, osdInfo &info, int type, enum OSDTimeout timeout)
 
void UpdateOSDSeekMessage (const PlayerContext *, const QString &mesg, enum OSDTimeout timeout)
 
void UpdateOSDInput (const PlayerContext *)
 
void UpdateOSDSignal (PlayerContext *, const QStringList &strlist)
 Updates Signal portion of OSD... More...
 
void UpdateOSDTimeoutMessage (PlayerContext *)
 
void UpdateOSDAskAllowDialog (PlayerContext *)
 
void SetUpdateOSDPosition (bool set_it)
 
bool SubtitleZoomHandleAction (PlayerContext *ctx, const QStringList &actions)
 
void ChangeSubtitleZoom (PlayerContext *ctx, int dir)
 
bool SubtitleDelayHandleAction (PlayerContext *ctx, const QStringList &actions)
 
void ChangeSubtitleDelay (PlayerContext *ctx, int dir)
 
bool CreatePBP (PlayerContext *lctx, const ProgramInfo *info)
 Setup Picture by Picture. More...
 
bool CreatePIP (PlayerContext *lctx, const ProgramInfo *info)
 create PIP. More...
 
bool ResizePIPWindow (PlayerContext *)
 resize PIP Window. More...
 
bool IsPBPSupported (const PlayerContext *ctx=nullptr) const
 
bool IsPIPSupported (const PlayerContext *ctx=nullptr) const
 
void PxPToggleView (PlayerContext *actx, bool wantPBP)
 start/stop PIP/PBP More...
 
void PxPCreateView (PlayerContext *actx, bool wantPBP)
 start PIP/PBP More...
 
void PxPTeardownView (PlayerContext *actx)
 stop PIP/PBP More...
 
void PxPToggleType (PlayerContext *mctx, bool wantPBP)
 Change PIP View from PIP to PBP and visa versa. More...
 
void PxPSwap (PlayerContext *mctx, PlayerContext *pipctx)
 
bool PIPAddPlayer (PlayerContext *mctx, PlayerContext *ctx)
 Maps Player of software scaled PIP to the main player. More...
 
void PBPRestartMainPlayer (PlayerContext *mctx)
 tear down remaining PBP video and restore fullscreen display More...
 
void SetActive (PlayerContext *lctx, int index, bool osd_msg)
 
void ToggleMoveBottomLine (PlayerContext *ctx)
 
void SaveBottomLine (PlayerContext *ctx)
 
void ToggleAspectOverride (PlayerContext *, AspectOverrideMode aspectMode=kAspect_Toggle)
 
void ToggleAdjustFill (PlayerContext *, AdjustFillMode adjustfillMode=kAdjustFill_Toggle)
 
void DoTogglePictureAttribute (const PlayerContext *, PictureAdjustType type)
 
void DoChangePictureAttribute (PlayerContext *, PictureAdjustType type, PictureAttribute attr, bool up, int newvalue=-1)
 
bool PictureAttributeHandleAction (PlayerContext *, const QStringList &actions)
 
void EnableVisualisation (const PlayerContext *, bool enable, bool toggle=false, const QString &action=QString(""))
 
void SetManualZoom (const PlayerContext *, bool zoomON, const QString &desc)
 
bool ManualZoomHandleAction (PlayerContext *actx, const QStringList &actions)
 
void StartChannelEditMode (PlayerContext *)
 Starts channel editing mode. More...
 
bool HandleOSDChannelEdit (PlayerContext *, const QString &action)
 Processes channel editing key. More...
 
bool DialogIsVisible (PlayerContext *ctx, const QString &dialog)
 
void HandleOSDInfo (PlayerContext *ctx, const QString &action)
 
void ShowNoRecorderDialog (const PlayerContext *, NoRecorderMsg msgType=kNoRecorders)
 
void ShowOSDAskAllow (PlayerContext *ctx)
 
void HandleOSDAskAllow (PlayerContext *ctx, const QString &action)
 
void AskAllowRecording (PlayerContext *, const QStringList &, int, bool, bool)
 
void ShowOSDCutpoint (PlayerContext *ctx, const QString &type)
 
bool HandleOSDCutpoint (PlayerContext *ctx, const QString &action)
 
void StartProgramEditMode (PlayerContext *)
 Starts Program Cut Map Editing mode. More...
 
void ShowOSDAlreadyEditing (PlayerContext *ctx)
 
void HandleOSDAlreadyEditing (PlayerContext *ctx, const QString &action, bool was_paused)
 
void ShowOSDSleep (void)
 
void HandleOSDSleep (PlayerContext *ctx, const QString &action)
 
void SleepDialogTimeout (void)
 
void ShowOSDIdle (void)
 After idleTimer has expired, display a dialogue warning the user that we will exit LiveTV unless they take action. We change idleTimer, to 45 seconds and when it expires for a second time we quit the player. If the user so decides, they may hit ok and we reset the timer back to the default expiry period. More...
 
void HandleOSDIdle (PlayerContext *ctx, const QString &action)
 
void IdleDialogTimeout (void)
 
void ShowOSDStopWatchingRecording (PlayerContext *ctx)
 
void ShowOSDPromptDeleteRecording (PlayerContext *ctx, const QString &title, bool force=false)
 
bool HandleOSDVideoExit (PlayerContext *ctx, const QString &action)
 
void StartOsdNavigation (PlayerContext *ctx)
 
void UpdateNavDialog (PlayerContext *ctx)
 
void ShowOSDMenu (bool isCompact=false)
 
void FillOSDMenuJumpRec (PlayerContext *ctx, const QString &category="", int level=0, const QString &selected="")
 
void PlaybackMenuShow (const MenuBase &menu, const QDomNode &node, const QDomNode &selected)
 
void CutlistMenuShow (const MenuBase &menu, const QDomNode &node, const QDomNode &selected)
 
bool MenuItemDisplay (const MenuItemContext &c) override
 
bool MenuItemDisplayPlayback (const MenuItemContext &c)
 
bool MenuItemDisplayCutlist (const MenuItemContext &c)
 
void PlaybackMenuInit (const MenuBase &menu)
 
void PlaybackMenuDeinit (const MenuBase &menu)
 
void MenuLazyInit (void *field)
 
void UpdateLCD (void)
 
void ShowLCDChannelInfo (const PlayerContext *)
 
void ShowLCDDVDInfo (const PlayerContext *)
 
int GetLastRecorderNum (int player_idx) const
 
void RestoreScreenSaver (const PlayerContext *)
 
int find_player_index (const PlayerContext *) const
 

Static Private Member Functions

static TVGetTV (void)
 
static void ReleaseTV (TV *tv)
 
static QList< QKeyEvent > ConvertScreenPressKeyMap (const QString &keyList)
 
static bool DiscMenuHandleAction (PlayerContext *, const QStringList &actions)
 
static bool IsTunable (const PlayerContext *, uint chanid)
 
static QSet< uintIsTunableOn (const PlayerContext *, uint chanid)
 
static bool StateIsRecording (TVState state)
 
static bool StateIsPlaying (TVState state)
 
static bool StateIsLiveTV (TVState state)
 
static TVState GetState (const PlayerContext *)
 get tv state of active player context More...
 
static bool IsDeleteAllowed (const PlayerContext *)
 
static void ToggleChannelFavorite (PlayerContext *ctx)
 
static void ToggleChannelFavorite (PlayerContext *, const QString &)
 
static bool ContextIsPaused (PlayerContext *ctx, const char *file, int location)
 
static void PauseAudioUntilBuffered (PlayerContext *ctx)
 
static int GetNumChapters (const PlayerContext *)
 
static void GetChapterTimes (const PlayerContext *, QList< long long > &times)
 
static int GetCurrentChapter (const PlayerContext *)
 
static int GetNumTitles (const PlayerContext *ctx)
 
static int GetCurrentTitle (const PlayerContext *ctx)
 
static int GetTitleDuration (const PlayerContext *ctx, int title)
 
static QString GetTitleName (const PlayerContext *ctx, int title)
 
static int GetNumAngles (const PlayerContext *ctx)
 
static int GetCurrentAngle (const PlayerContext *ctx)
 
static QString GetAngleName (const PlayerContext *ctx, int angle)
 
static bool IsBookmarkAllowed (const PlayerContext *)
 
static bool PIPRemovePlayer (PlayerContext *mctx, PlayerContext *ctx)
 Unmaps Player of software scaled PIP from the main player. More...
 
static void DoToggleNightMode (const PlayerContext *)
 
static PictureAttribute NextPictureAdjustType (PictureAdjustType type, MythPlayer *mp, PictureAttribute attr)
 
static void HandleDeinterlacer (PlayerContext *ctx, const QString &action)
 
static void ITVRestart (PlayerContext *, bool isLive)
 Restart the MHEG/MHP engine. More...
 
static void ChannelEditAutoFill (const PlayerContext *, InfoMap &)
 Automatically fills in as much information as possible. More...
 
static void ChannelEditXDSFill (const PlayerContext *, InfoMap &)
 
static void MenuStrings (void)
 
static QStringList GetValidRecorderList (uint chanid)
 
static QStringList GetValidRecorderList (const QString &channum)
 
static QStringList GetValidRecorderList (uint, const QString &)
 
static TVState RemoveRecording (TVState state)
 
static QString GetLiveTVIndex (const PlayerContext *)
 

Private Attributes

QString m_baseFilters
 
QString m_dbChannelFormat {"<num> <sign>"}
 
uint m_dbIdleTimeout {0}
 
int m_dbPlaybackExitPrompt {0}
 
uint m_dbAutoexpireDefault {0}
 
bool m_dbAutoSetWatched {false}
 
bool m_dbEndOfRecExitPrompt {false}
 
bool m_dbJumpPreferOsd {true}
 
bool m_dbUseGuiSizeForTv {false}
 
bool m_dbUseVideoModes {false}
 
bool m_dbClearSavedPosition {false}
 
bool m_dbRunJobsOnRemote {false}
 
bool m_dbContinueEmbedded {false}
 
bool m_dbRunFrontendInWindow {false}
 
bool m_dbBrowseAlways {false}
 
bool m_dbBrowseAllTuners {false}
 
bool m_dbUseChannelGroups {false}
 
bool m_dbRememberLastChannelGroup {false}
 
ChannelGroupList m_dbChannelGroups
 
bool m_tryUnflaggedSkip {false}
 
bool m_smartForward {false}
 
float m_ffRewRepos {1.0F}
 
bool m_ffRewReverse {false}
 
vector< int > m_ffRewSpeeds
 
uint m_vbimode {VBIMode::None}
 
QTime m_ctorTime
 
uint m_switchToInputId {0}
 
QMutex m_initFromDBLock
 
bool m_initFromDBDone {false}
 
QWaitCondition m_initFromDBWait
 
bool m_wantsToQuit {true}
 True if the user told MythTV to stop plaback. More...
 
bool m_stretchAdjustment {false}
 True if time stretch is turned on. More...
 
bool m_audiosyncAdjustment {false}
 True if audiosync is turned on. More...
 
bool m_subtitleZoomAdjustment {false}
 True if subtitle zoom is turned on. More...
 
bool m_subtitleDelayAdjustment {false}
 True if subtitle delay is turned on. More...
 
bool m_editMode {false}
 Are we in video editing mode. More...
 
bool m_zoomMode {false}
 
bool m_sigMonMode {false}
 Are we in signal monitoring mode? More...
 
bool m_endOfRecording {false}
 !player->IsPlaying() && StateIsPlaying() More...
 
bool m_requestDelete {false}
 User wants last video deleted. More...
 
bool m_allowRerecord {false}
 User wants to rerecord the last video if deleted. More...
 
bool m_doSmartForward {false}
 
bool m_queuedTranscode {false}
 
PictureAdjustType m_adjustingPicture {kAdjustingPicture_None}
 Picture attribute type to modify. More...
 
PictureAttribute m_adjustingPictureAttribute {kPictureAttribute_None}
 Picture attribute to modify (on arrow left or right) More...
 
QMap< QString, AskProgramInfom_askAllowPrograms
 
QMutex m_askAllowLock {QMutex::Recursive}
 
MythDeque< QString > m_changePxP
 
QMutex m_progListsLock
 
QMap< QString, ProgramListm_progLists
 
QMutex m_chanEditMapLock {QMutex::Recursive}
 Lock for chanEditMap and ddMap. More...
 
InfoMap m_chanEditMap
 Channel Editing initial map. More...
 
vector< SleepTimerInfom_sleepTimes
 Vector or sleep timer sleep times in seconds, with the appropriate UI message. More...
 
uint m_sleepIndex {0}
 Index into sleep_times. More...
 
uint m_sleepTimerTimeout {0}
 Current sleep timeout in msec. More...
 
int m_sleepTimerId {0}
 Timer for turning off playback. More...
 
int m_sleepDialogTimerId {0}
 Timer for sleep dialog. More...
 
int m_idleTimerId {0}
 Timer for turning off playback after idle period. More...
 
int m_idleDialogTimerId {0}
 Timer for idle dialog. More...
 
MythTimer m_keyRepeatTimer
 Queue of unprocessed key presses. More...
 
bool m_ccInputMode {false}
 Are we in CC/Teletext page/stream selection mode? More...
 
bool m_asInputMode {false}
 Are we in Arbitrary seek input mode? More...
 
QString m_queuedInput
 Input key presses queued up so far... More...
 
QString m_queuedChanNum
 Input key presses queued up so far to form a valid ChanNum. More...
 
uint m_queuedChanID {0}
 Queued ChanID (from EPG channel selector) More...
 
uint m_initialChanID {0}
 Initial chanid override for Live TV. More...
 
QList< QKeyEvent > m_screenPressKeyMapPlayback
 
QList< QKeyEvent > m_screenPressKeyMapLiveTV
 
QTime m_lockTimer
 
bool m_lockTimerOn {false}
 
QDateTime m_lastLockSeenTime
 
TVBrowseHelperm_browseHelper {nullptr}
 
QMutex m_lastProgramLock
 
ProgramInfom_lastProgram {nullptr}
 last program played with this player More...
 
bool m_inPlaylist {false}
 show is part of a playlist More...
 
bool m_underNetworkControl {false}
 initial show started via by the network control interface More...
 
PIPState m_jumpToProgramPIPState {kPIPOff}
 
bool m_jumpToProgram {false}
 
vector< PlayerContext * > m_player
 
int m_playerActive {-1}
 Video Player to which events are sent to. More...
 
QReadWriteLock m_playerLock
 lock on player and playerActive changes More...
 
bool m_noHardwareDecoders {false}
 
RemoteEncoderm_switchToRec {nullptr}
 Main recorder to use after a successful SwitchCards() call. More...
 
QMap< OSD *, const PlayerContext * > m_osdLctx
 
QString m_lcdTitle
 
QString m_lcdSubtitle
 
QString m_lcdCallsign
 
TvPlayWindowm_myWindow {nullptr}
 Our screen, if it exists. More...
 
QRect m_playerBounds
 Prior GUI window bounds, for DoEditSchedule() and player exit(). More...
 
QRect m_savedGuiBounds
 
bool m_weDisabledGUI {false}
 true if this instance disabled MythUI drawing. More...
 
bool m_isEmbedded {false}
 are we currently embedded More...
 
bool m_ignoreKeyPresses {false}
 should we ignore keypresses More...
 
vector< boolm_savedPause
 saved pause state before embedding More...
 
bool m_suspended {false}
 are we currently suspended More...
 
vector< boolm_suspendedPause
 saved pause state before suspending More...
 
QMutex m_channelGroupLock
 Lock necessary when modifying channel group variables. More...
 
volatile int m_channelGroupId {-1}
 
ChannelInfoList m_channelGroupChannelList
 
MythDeque< QString > networkControlCommands
 
QMutex m_timerIdLock
 
volatile int m_lcdTimerId {0}
 
volatile int m_lcdVolumeTimerId {0}
 
volatile int m_networkControlTimerId {0}
 
volatile int m_jumpMenuTimerId {0}
 
volatile int m_pipChangeTimerId {0}
 
volatile int m_switchToInputTimerId {0}
 
volatile int m_ccInputTimerId {0}
 
volatile int m_asInputTimerId {0}
 
volatile int m_queueInputTimerId {0}
 
volatile int m_browseTimerId {0}
 
volatile int m_updateOSDPosTimerId {0}
 
volatile int m_updateOSDDebugTimerId {0}
 
volatile int m_endOfPlaybackTimerId {0}
 
volatile int m_embedCheckTimerId {0}
 
volatile int m_endOfRecPromptTimerId {0}
 
volatile int m_videoExitDialogTimerId {0}
 
volatile int m_pseudoChangeChanTimerId {0}
 
volatile int m_speedChangeTimerId {0}
 
volatile int m_errorRecoveryTimerId {0}
 
volatile int m_exitPlayerTimerId {0}
 
volatile int m_saveLastPlayPosTimerId {0}
 
TimerContextMap m_stateChangeTimerId
 
TimerContextMap m_signalMonitorTimerId
 
PlayerContextm_tvmCtx {nullptr}
 
OSDm_tvmOsd {nullptr}
 
QStringList m_tvmTracks [kTrackTypeCount]
 
int m_tvmCurtrack [kTrackTypeCount]
 
bool m_tvmAvsync {true}
 
bool m_tvmVisual {false}
 
QString m_tvmActive
 
bool m_tvmUpmixing {false}
 
bool m_tvmCanUpmix {false}
 
QStringList m_tvmVisualisers
 
AspectOverrideMode m_tvmAspectOverride {kAspect_Off}
 
AdjustFillMode m_tvmAdjustFill {kAdjustFill_Off}
 
bool m_tvmFillAutoDetect {false}
 
uint m_tvmSup {kPictureAttributeSupported_None}
 
bool m_tvmStereoAllowed {false}
 
StereoscopicMode m_tvmStereoMode {kStereoscopicModeNone}
 
FrameScanType m_tvmScanType {kScan_Ignore}
 
FrameScanType m_tvmScanTypeUnlocked {kScan_Ignore}
 
bool m_tvmScanTypeLocked {false}
 
QString m_tvmCurMode {}
 
QStringList m_tvmDeinterlacers {}
 
QString m_tvmCurrentDeinterlacer {}
 
bool m_tvmDoubleRate {false}
 
int m_tvmSpeedX100 {100}
 
TVState m_tvmState {kState_None}
 
bool m_tvmIsRecording {false}
 
bool m_tvmIsRecorded {false}
 
bool m_tvmIsVideo {false}
 
CommSkipMode m_tvmCurSkip {kCommSkipOff}
 
bool m_tvmIsPaused {false}
 
bool m_tvmAllowPIP {false}
 
bool m_tvmAllowPBP {false}
 
bool m_tvmHasPIP {false}
 
bool m_tvmHasPBP {false}
 
int m_tvmFreeRecorderCount {-1}
 
bool m_tvmIsDvd {false}
 
bool m_tvmIsBd {false}
 
bool m_tvmJump {false}
 
bool m_tvmIsLiveTv {false}
 
bool m_tvmPreviousChan {false}
 
int m_tvmNumChapters {0}
 
int m_tvmCurrentChapter {0}
 
QList< long long > m_tvmChapterTimes
 
int m_tvmNumAngles {0}
 
int m_tvmCurrentAngle {0}
 
int m_tvmNumTitles {0}
 
int m_tvmCurrentTitle {0}
 
uint m_tvmSubsCapMode {0}
 
bool m_tvmSubsHaveText {false}
 
bool m_tvmSubsForcedOn {true}
 
bool m_tvmSubsEnabled {false}
 
bool m_tvmSubsHaveSubs {false}
 
bool m_tvmIsOn {false}
 
bool m_tvmTranscoding {false}
 
QVariant m_tvmJumprecBackHack
 
MenuBase m_playbackMenu
 
MenuBase m_playbackCompactMenu
 
MenuBase m_cutlistMenu
 
MenuBase m_cutlistCompactMenu
 

Static Private Attributes

static QMutex * gTVLock = new QMutex()
 
static TVgTV = nullptr
 
static const int s_screenPressRegionCount = 12
 screen area to keypress translation region is now 0..11 0 1 2 3 4 5 6 7 8 9 10 11 More...
 

Friends

class PlaybackBox
 
class GuideGrid
 
class ProgFinder
 
class ViewScheduled
 
class ScheduleEditor
 
class TvPlayWindow
 
class TVBrowseHelper
 

Detailed Description

Control TV playback.

Signals Emitted:\n TVPlaybackAborted(void)
TV playback failed to start (typically, TV playback was started when another playback is currently going)
Signals Emitted:\n TVPlaybackStarted(void)
TV playback has started, video is now playing
Signals Emitted:\n TVPlaybackStopped(void)
TV playback has stopped and playback has exited
Signals Emitted:\n TVPlaybackUnpaused(void)
TV playback has resumed, following a Pause action
Signals Emitted:\n TVPlaybackPaused(void)
TV playback has been paused
Signals Emitted:\n TVPlaybackSought(qint position_seconds)
Absolute seek has completed to position_seconds

Definition at line 279 of file tv_play.h.

Member Typedef Documentation

◆ TimerContextMap

using TV::TimerContextMap = QMap<int,PlayerContext*>
private

Definition at line 947 of file tv_play.h.

◆ TimerContextConstMap

using TV::TimerContextConstMap = QMap<int,const PlayerContext*>
private

Definition at line 948 of file tv_play.h.

Member Enumeration Documentation

◆ BookmarkAction

enum TV::BookmarkAction
private
Enumerator
kBookmarkAlways 
kBookmarkNever 
kBookmarkAuto 

Definition at line 465 of file tv_play.h.

◆ ArbSeekWhence

enum TV::ArbSeekWhence
private
Enumerator
ARBSEEK_SET 
ARBSEEK_REWIND 
ARBSEEK_FORWARD 
ARBSEEK_END 

Definition at line 556 of file tv_play.h.

Constructor & Destructor Documentation

◆ TV()

TV::TV ( void  )
private
See also
Init(void)

Definition at line 1007 of file tv_play.cpp.

◆ ~TV()

TV::~TV ( void  )
private

Definition at line 1263 of file tv_play.cpp.

Member Function Documentation

◆ IsTVRunning()

bool TV::IsTVRunning ( void  )
static

◆ CurrentTVInstance()

static TV* TV::CurrentTVInstance ( void  )
inlinestatic

Definition at line 293 of file tv_play.h.

◆ StartTV()

bool TV::StartTV ( ProgramInfo tvrec,
uint  flags,
const ChannelInfoList selection = ChannelInfoList() 
)
static

returns true if the recording completed when exiting.

Definition at line 289 of file tv_play.cpp.

Referenced by GuideGrid::customEvent(), internal_play_media(), main(), PlaybackBox::Play(), and startTVNormal().

◆ IsPaused()

bool TV::IsPaused ( void  )
static

Returns true if a TV playback is currently going; otherwise returns false.

Definition at line 6361 of file tv_play.cpp.

Referenced by MythAirplayServer::PausePlayback().

◆ event()

bool TV::event ( QEvent *  e)
override

This handles all standard events.

Definition at line 3544 of file tv_play.cpp.

◆ eventFilter()

bool TV::eventFilter ( QObject *  o,
QEvent *  e 
)
override

This selectively blocks KeyPress and Resize events.

Definition at line 3497 of file tv_play.cpp.

◆ IsSameProgram()

bool TV::IsSameProgram ( int  player_idx,
const ProgramInfo rcinfo 
) const

true iff program is the same as the one in the selected player

Definition at line 13083 of file tv_play.cpp.

Referenced by extract_main_state(), PlaybackBox::PlayX(), and PlaybackBox::ShowActionPopup().

◆ FinishRecording()

void TV::FinishRecording ( int  player_ctx)

Finishes player's recording.

Definition at line 1710 of file tv_play.cpp.

◆ InitKeys()

void TV::InitKeys ( void  )
static

Definition at line 503 of file tv_play.cpp.

Referenced by main().

◆ ReloadKeys()

void TV::ReloadKeys ( void  )
static

Definition at line 994 of file tv_play.cpp.

Referenced by ReloadKeys().

◆ SetFuncPtr()

void TV::SetFuncPtr ( const char *  string,
void *  lptr 
)
static

Import pointers to functions used to embed the TV window into other containers e.g.

playbackbox

Definition at line 488 of file tv_play.cpp.

Referenced by SetFuncPtrs().

◆ ConfiguredTunerCards()

int TV::ConfiguredTunerCards ( void  )
static

If any cards are configured, return the number.

Definition at line 193 of file tv_play.cpp.

Referenced by isLiveTVAvailable().

◆ IsTunable() [1/2]

bool TV::IsTunable ( uint  chanid)
static

◆ HandleOSDClosed

void TV::HandleOSDClosed ( int  osdType)
slot

Definition at line 9852 of file tv_play.cpp.

◆ timerEvent

void TV::timerEvent ( QTimerEvent *  te)
overrideslot

Definition at line 2649 of file tv_play.cpp.

◆ StopPlayback

void TV::StopPlayback ( void  )
slot

Definition at line 272 of file tv_play.cpp.

◆ customEvent()

void TV::customEvent ( QEvent *  e)
overrideprotected

This handles all custom events.

Definition at line 9193 of file tv_play.cpp.

◆ onApplicationStateChange

void TV::onApplicationStateChange ( Qt::ApplicationState  state)
protectedslot

Definition at line 13282 of file tv_play.cpp.

◆ GetTV()

TV * TV::GetTV ( void  )
staticprivate

Definition at line 247 of file tv_play.cpp.

◆ ReleaseTV()

void TV::ReleaseTV ( TV tv)
staticprivate

Definition at line 259 of file tv_play.cpp.

◆ Init()

bool TV::Init ( bool  createWindow = true)
private

Performs instance initialization, returns true on success.

Parameters
createWindowIf true a MythDialog is created for display.
Returns
Returns true on success, false on failure.

Definition at line 1161 of file tv_play.cpp.

Referenced by StartTV().

◆ InitFromDB()

void TV::InitFromDB ( void  )
private

Definition at line 1036 of file tv_play.cpp.

◆ ConvertScreenPressKeyMap()

QList< QKeyEvent > TV::ConvertScreenPressKeyMap ( const QString &  keyList)
staticprivate

Definition at line 3744 of file tv_play.cpp.

◆ LiveTV()

bool TV::LiveTV ( bool  showDialogs,
const ChannelInfoList selection 
)
private

Starts LiveTV.

Parameters
showDialogsif true error dialogs are shown, if false they are not
selectionWhat channel to tune.

Definition at line 1616 of file tv_play.cpp.

Referenced by StartTV().

◆ Playback()

int TV::Playback ( const ProgramInfo rcinfo)
private

Definition at line 2040 of file tv_play.cpp.

Referenced by StartTV().

◆ PlaybackLoop()

void TV::PlaybackLoop ( void  )
private

The main playback loop.

Definition at line 1342 of file tv_play.cpp.

Referenced by StartTV().

◆ ProcessKeypressOrGesture()

bool TV::ProcessKeypressOrGesture ( PlayerContext actx,
QEvent *  e 
)
private

Definition at line 3826 of file tv_play.cpp.

◆ TranslateKeyPressOrGesture()

bool TV::TranslateKeyPressOrGesture ( const QString &  context,
QEvent *  e,
QStringList &  actions,
bool  isLiveTV,
bool  allowJumps = true 
)
private

Definition at line 3809 of file tv_play.cpp.

◆ TranslateGesture()

bool TV::TranslateGesture ( const QString &  context,
MythGestureEvent e,
QStringList &  actions,
bool  isLiveTV 
)
private

Definition at line 3774 of file tv_play.cpp.

◆ ProcessNetworkControlCommand()

void TV::ProcessNetworkControlCommand ( PlayerContext ctx,
const QString &  command 
)
private

Definition at line 4967 of file tv_play.cpp.

◆ HandleTrackAction()

bool TV::HandleTrackAction ( PlayerContext ctx,
const QString &  action 
)
private

Definition at line 3600 of file tv_play.cpp.

◆ ActiveHandleAction()

bool TV::ActiveHandleAction ( PlayerContext ctx,
const QStringList &  actions,
bool  isDVD,
bool  isDVDStillFrame 
)
private

Definition at line 4406 of file tv_play.cpp.

◆ BrowseHandleAction()

bool TV::BrowseHandleAction ( PlayerContext ctx,
const QStringList &  actions 
)
private

Definition at line 4083 of file tv_play.cpp.

◆ OSDDialogEvent()

void TV::OSDDialogEvent ( int  result,
const QString &  text,
QString  action 
)
private

Definition at line 10349 of file tv_play.cpp.

◆ PxPHandleAction()

bool TV::PxPHandleAction ( PlayerContext ctx,
const QStringList &  actions 
)
private

Definition at line 4800 of file tv_play.cpp.

◆ ToggleHandleAction()

bool TV::ToggleHandleAction ( PlayerContext ctx,
const QStringList &  actions,
bool  isDVD 
)
private

Definition at line 4712 of file tv_play.cpp.

◆ FFRewHandleAction()

bool TV::FFRewHandleAction ( PlayerContext ctx,
const QStringList &  actions 
)
private

Definition at line 4675 of file tv_play.cpp.

◆ ActivePostQHandleAction()

bool TV::ActivePostQHandleAction ( PlayerContext ctx,
const QStringList &  actions 
)
private

Definition at line 4861 of file tv_play.cpp.

◆ HandleJumpToProgramAction()

bool TV::HandleJumpToProgramAction ( PlayerContext ctx,
const QStringList &  actions 
)
private

Definition at line 12288 of file tv_play.cpp.

◆ SeekHandleAction()

bool TV::SeekHandleAction ( PlayerContext actx,
const QStringList &  actions,
const bool  isDVD 
)
private

Definition at line 6495 of file tv_play.cpp.

◆ TimeStretchHandleAction()

bool TV::TimeStretchHandleAction ( PlayerContext ctx,
const QStringList &  actions 
)
private

Definition at line 4267 of file tv_play.cpp.

◆ DiscMenuHandleAction()

bool TV::DiscMenuHandleAction ( PlayerContext ctx,
const QStringList &  actions 
)
staticprivate

Definition at line 4368 of file tv_play.cpp.

◆ Handle3D()

bool TV::Handle3D ( PlayerContext ctx,
const QString &  action 
)
private

Definition at line 4384 of file tv_play.cpp.

◆ StartTimer()

int TV::StartTimer ( int  interval,
int  line 
)
private

Definition at line 3153 of file tv_play.cpp.

Referenced by TVBrowseHelper::BrowseDispInfo().

◆ KillTimer()

void TV::KillTimer ( int  id)
private

Definition at line 3165 of file tv_play.cpp.

Referenced by TVBrowseHelper::BrowseDispInfo(), and TVBrowseHelper::BrowseEnd().

◆ SetSpeedChangeTimer()

void TV::SetSpeedChangeTimer ( uint  when,
int  line 
)
private

Definition at line 3456 of file tv_play.cpp.

◆ HandleEndOfPlaybackTimerEvent()

void TV::HandleEndOfPlaybackTimerEvent ( void  )
private

Definition at line 3288 of file tv_play.cpp.

◆ HandleIsNearEndWhenEmbeddingTimerEvent()

void TV::HandleIsNearEndWhenEmbeddingTimerEvent ( void  )
private

Definition at line 3335 of file tv_play.cpp.

◆ HandleEndOfRecordingExitPromptTimerEvent()

void TV::HandleEndOfRecordingExitPromptTimerEvent ( void  )
private

Definition at line 3350 of file tv_play.cpp.

◆ HandleVideoExitDialogTimerEvent()

void TV::HandleVideoExitDialogTimerEvent ( void  )
private

Definition at line 3382 of file tv_play.cpp.

◆ HandlePseudoLiveTVTimerEvent()

void TV::HandlePseudoLiveTVTimerEvent ( void  )
private

Definition at line 3412 of file tv_play.cpp.

◆ HandleSpeedChangeTimerEvent()

void TV::HandleSpeedChangeTimerEvent ( void  )
private

Definition at line 3464 of file tv_play.cpp.

◆ ToggleSleepTimer() [1/2]

void TV::ToggleSleepTimer ( const PlayerContext ctx)
private

Definition at line 8962 of file tv_play.cpp.

◆ ToggleSleepTimer() [2/2]

void TV::ToggleSleepTimer ( const PlayerContext ctx,
const QString &  time 
)
private

Definition at line 12409 of file tv_play.cpp.

◆ HandlePxPTimerEvent()

bool TV::HandlePxPTimerEvent ( void  )
private

Definition at line 3043 of file tv_play.cpp.

◆ HandleLCDTimerEvent()

bool TV::HandleLCDTimerEvent ( void  )
private

Definition at line 3095 of file tv_play.cpp.

◆ HandleLCDVolumeTimerEvent()

void TV::HandleLCDVolumeTimerEvent ( void  )
private

Definition at line 3137 of file tv_play.cpp.

◆ HandleSaveLastPlayPosEvent()

void TV::HandleSaveLastPlayPosEvent ( void  )
private

Definition at line 12997 of file tv_play.cpp.

◆ EditSchedule()

void TV::EditSchedule ( const PlayerContext ,
int  editType = kScheduleProgramGuide 
)
private

Definition at line 8682 of file tv_play.cpp.

◆ StartEmbedding()

bool TV::StartEmbedding ( const QRect &  embedRect)
private

◆ StopEmbedding()

void TV::StopEmbedding ( void  )
private

Definition at line 8488 of file tv_play.cpp.

◆ IsTunable() [2/2]

bool TV::IsTunable ( const PlayerContext ctx,
uint  chanid 
)
staticprivate

Definition at line 8375 of file tv_play.cpp.

◆ IsTunableOn()

QSet< uint > TV::IsTunableOn ( const PlayerContext ctx,
uint  chanid 
)
staticprivate

Definition at line 8397 of file tv_play.cpp.

◆ ChangeChannel() [1/3]

void TV::ChangeChannel ( const PlayerContext ctx,
const ChannelInfoList options 
)
private

Definition at line 7774 of file tv_play.cpp.

Referenced by TVBrowseHelper::BrowseEnd(), and GuideGrid::channelUpdate().

◆ DoEditSchedule()

void TV::DoEditSchedule ( int  editType = kScheduleProgramGuide)
private

Definition at line 8540 of file tv_play.cpp.

◆ GetRecordingGroup()

QString TV::GetRecordingGroup ( int  player_idx) const
private

Definition at line 13064 of file tv_play.cpp.

Referenced by PlaybackBox::PlaybackBox().

◆ ChangeVolume()

void TV::ChangeVolume ( PlayerContext ctx,
bool  up,
int  newvolume = -1 
)
private

Definition at line 8690 of file tv_play.cpp.

Referenced by GuideGrid::volumeUpdate().

◆ ToggleMute()

void TV::ToggleMute ( PlayerContext ctx,
const bool  muteIndividualChannels = false 
)
private

Definition at line 8925 of file tv_play.cpp.

Referenced by GuideGrid::toggleMute().

◆ UpdateChannelList()

void TV::UpdateChannelList ( int  groupID)
private

update the channel list with channels from the selected channel group

Definition at line 1391 of file tv_play.cpp.

Referenced by GuideGrid::~GuideGrid().

◆ GetOSDL() [1/2]

OSD * TV::GetOSDL ( const char *  file,
int  location 
)
private

Definition at line 13115 of file tv_play.cpp.

◆ GetOSDL() [2/2]

OSD * TV::GetOSDL ( const PlayerContext ctx,
const char *  file,
int  location 
)
private

Definition at line 13126 of file tv_play.cpp.

◆ ReturnOSDLock()

void TV::ReturnOSDLock ( const PlayerContext ctx,
OSD *&  osd 
)
private

Definition at line 13168 of file tv_play.cpp.

Referenced by TVBrowseHelper::BrowseEnd().

◆ GetPlayerWriteLock()

PlayerContext * TV::GetPlayerWriteLock ( int  which,
const char *  file,
int  location 
)
private

Definition at line 13179 of file tv_play.cpp.

◆ GetPlayerReadLock() [1/2]

PlayerContext * TV::GetPlayerReadLock ( int  which,
const char *  file,
int  location 
)
private

◆ GetPlayerReadLock() [2/2]

const PlayerContext * TV::GetPlayerReadLock ( int  which,
const char *  file,
int  location 
) const
private

Definition at line 13209 of file tv_play.cpp.

◆ GetPlayerHaveLock() [1/2]

PlayerContext * TV::GetPlayerHaveLock ( PlayerContext locked_context,
int  which,
const char *  file,
int  location 
)
private

Definition at line 13225 of file tv_play.cpp.

◆ GetPlayerHaveLock() [2/2]

const PlayerContext * TV::GetPlayerHaveLock ( const PlayerContext locked_context,
int  which,
const char *  file,
int  location 
) const
private

Definition at line 13241 of file tv_play.cpp.

◆ ReturnPlayerLock() [1/2]

void TV::ReturnPlayerLock ( PlayerContext *&  ctx)
private

◆ ReturnPlayerLock() [2/2]

void TV::ReturnPlayerLock ( const PlayerContext *&  ctx) const
private

Definition at line 13263 of file tv_play.cpp.

◆ ToggleAutoExpire()

void TV::ToggleAutoExpire ( PlayerContext ctx)
private

Definition at line 12234 of file tv_play.cpp.

◆ QuickRecord()

void TV::QuickRecord ( PlayerContext ctx)
private

Definition at line 9772 of file tv_play.cpp.

◆ StateIsRecording()

bool TV::StateIsRecording ( TVState  state)
staticprivate

Definition at line 2071 of file tv_play.cpp.

◆ StateIsPlaying()

bool TV::StateIsPlaying ( TVState  state)
staticprivate

Definition at line 2077 of file tv_play.cpp.

◆ StateIsLiveTV()

bool TV::StateIsLiveTV ( TVState  state)
staticprivate

Definition at line 2086 of file tv_play.cpp.

◆ GetState() [1/2]

TVState TV::GetState ( int  player_idx) const
private

get tv state of active player context

Definition at line 1418 of file tv_play.cpp.

Referenced by GuideGrid::gestureEvent(), GuideGrid::keyPressEvent(), and GuideGrid::ShowMenu().

◆ GetState() [2/2]

TVState TV::GetState ( const PlayerContext actx)
staticprivate

get tv state of active player context

Definition at line 1603 of file tv_play.cpp.

◆ HandleStateChange()

void TV::HandleStateChange ( PlayerContext mctx,
PlayerContext ctx 
)
private

Changes the state to the state on the front of the state change queue.

Note: There must exist a state transition from any state we can enter to the kState_None state, as this is used to shutdown TV in RunTV.

Definition at line 2124 of file tv_play.cpp.

◆ GetStatus()

void TV::GetStatus ( void  )
private

Definition at line 1427 of file tv_play.cpp.

◆ ForceNextStateNone()

void TV::ForceNextStateNone ( PlayerContext ctx)
private

Definition at line 3170 of file tv_play.cpp.

◆ ScheduleStateChange()

void TV::ScheduleStateChange ( PlayerContext ctx)
private

Definition at line 3176 of file tv_play.cpp.

◆ SetErrored()

void TV::SetErrored ( PlayerContext ctx)
private

Definition at line 3182 of file tv_play.cpp.

◆ setInPlayList()

void TV::setInPlayList ( bool  setting)
inlineprivate

Definition at line 461 of file tv_play.h.

Referenced by StartTV().

◆ setUnderNetworkControl()

void TV::setUnderNetworkControl ( bool  setting)
inlineprivate

Definition at line 462 of file tv_play.h.

Referenced by StartTV().

◆ PrepToSwitchToRecordedProgram()

void TV::PrepToSwitchToRecordedProgram ( PlayerContext ctx,
const ProgramInfo p 
)
private

Definition at line 3192 of file tv_play.cpp.

◆ PrepareToExitPlayer()

void TV::PrepareToExitPlayer ( PlayerContext ctx,
int  line,
BookmarkAction  bookmark = kBookmarkAuto 
)
private

Definition at line 3203 of file tv_play.cpp.

◆ SetExitPlayer()

void TV::SetExitPlayer ( bool  set_it,
bool  wants_to 
)
private

Definition at line 3254 of file tv_play.cpp.

Referenced by StartTV().

◆ RequestNextRecorder()

bool TV::RequestNextRecorder ( PlayerContext ctx,
bool  showDialogs,
const ChannelInfoList sel = ChannelInfoList() 
)
private

Definition at line 1653 of file tv_play.cpp.

◆ DeleteRecorder()

void TV::DeleteRecorder ( )
private

◆ StartRecorder()

bool TV::StartRecorder ( PlayerContext ctx,
int  maxWait = -1 
)
private

Starts recorder, must be called before StartPlayer().

Parameters
ctxThe player context requesting recording.
maxWaitHow long to wait for RecorderBase to start recording. If not provided, this defaults to 40 seconds.
Returns
true when successful, false otherwise.

Definition at line 2513 of file tv_play.cpp.

◆ StopStuff()

void TV::StopStuff ( PlayerContext mctx,
PlayerContext ctx,
bool  stopRingBuffer,
bool  stopPlayer,
bool  stopRecorder 
)
private

Can shut down the ringbuffers, the players, and in LiveTV it can shut down the recorders.

The player needs to be partially shutdown before the recorder, and partially shutdown after the recorder. Hence these are shutdown from within the same method. Also, shutting down things in the right order avoids spewing error messages...

Parameters
mctxMaster player context
ctxCurrent player context
stopRingBufferSet to true if ringbuffer must be shut down.
stopPlayerSet to true if player must be shut down.
stopRecorderSet to true if recorder must be shut down.

Definition at line 2567 of file tv_play.cpp.

◆ TeardownPlayer()

void TV::TeardownPlayer ( PlayerContext mctx,
PlayerContext ctx 
)
private

Definition at line 2615 of file tv_play.cpp.

◆ StartPlayer()

bool TV::StartPlayer ( PlayerContext mctx,
PlayerContext ctx,
TVState  desiredState 
)
private

Definition at line 5668 of file tv_play.cpp.

◆ TeardownAllPlayers()

vector< long long > TV::TeardownAllPlayers ( PlayerContext lctx)
private

Teardown all Player's in preparation for PxP Swap or change from PIP -> PBP or PBP -> PIP.

Definition at line 6043 of file tv_play.cpp.

◆ RestartAllPlayers()

void TV::RestartAllPlayers ( PlayerContext lctx,
const vector< long long > &  pos,
MuteState  mctx_mute 
)
private

Recreate Main and PIP windows.

Could be either PIP or PBP views.

Definition at line 6107 of file tv_play.cpp.

◆ RestartMainPlayer()

void TV::RestartMainPlayer ( PlayerContext mctx)
private

Definition at line 6228 of file tv_play.cpp.

◆ IsSwitchingCards()

bool TV::IsSwitchingCards ( void  ) const
inlineprivate

Returns true if we are currently in the process of switching recorders.

Definition at line 494 of file tv_play.h.

◆ getAllowRerecord()

bool TV::getAllowRerecord ( void  ) const
inlineprivate

Returns true if the user told Mythtv to allow re-recording of the show.

Definition at line 496 of file tv_play.h.

Referenced by StartTV().

◆ getEndOfRecording()

bool TV::getEndOfRecording ( void  ) const
inlineprivate

This is set to true if the player reaches the end of the recording without the user explicitly exiting the player.

Definition at line 499 of file tv_play.h.

Referenced by StartTV().

◆ getJumpToProgram()

bool TV::getJumpToProgram ( void  ) const
inlineprivate

This is set if the user asked MythTV to jump to the previous recording in the playlist.

Definition at line 502 of file tv_play.h.

Referenced by StartTV().

◆ IsDeleteAllowed()

bool TV::IsDeleteAllowed ( const PlayerContext ctx)
staticprivate

Definition at line 12760 of file tv_play.cpp.

◆ ToggleChannelFavorite() [1/2]

void TV::ToggleChannelFavorite ( PlayerContext ctx)
staticprivate

Definition at line 7290 of file tv_play.cpp.

◆ ToggleChannelFavorite() [2/2]

void TV::ToggleChannelFavorite ( PlayerContext ctx,
const QString &  changroup_name 
)
staticprivate

Definition at line 7298 of file tv_play.cpp.

◆ ChangeChannel() [2/3]

void TV::ChangeChannel ( PlayerContext ctx,
ChannelChangeDirection  direction 
)
private

Definition at line 7533 of file tv_play.cpp.

◆ ChangeChannel() [3/3]

void TV::ChangeChannel ( PlayerContext ctx,
uint  chanid,
const QString &  channum 
)
private

Definition at line 7626 of file tv_play.cpp.

◆ ShowPreviousChannel()

void TV::ShowPreviousChannel ( PlayerContext ctx)
private

Definition at line 7797 of file tv_play.cpp.

◆ PopPreviousChannel()

void TV::PopPreviousChannel ( PlayerContext ctx,
bool  immediate_change 
)
private

Definition at line 7810 of file tv_play.cpp.

◆ AddKeyToInputQueue()

void TV::AddKeyToInputQueue ( PlayerContext ctx,
char  key 
)
private

Definition at line 7359 of file tv_play.cpp.

◆ ClearInputQueues()

void TV::ClearInputQueues ( const PlayerContext ctx,
bool  hideosd 
)
private

Clear channel key buffer of input keys.

Parameters
ctxCurrent player context
hideosdif true, hides "channel_number" OSDSet.

Definition at line 7343 of file tv_play.cpp.

◆ CommitQueuedInput()

bool TV::CommitQueuedInput ( PlayerContext ctx)
private

Definition at line 7477 of file tv_play.cpp.

◆ ProcessSmartChannel()

bool TV::ProcessSmartChannel ( const PlayerContext ctx,
QString &  inputStr 
)
private

Definition at line 7406 of file tv_play.cpp.

◆ HasQueuedInput()

bool TV::HasQueuedInput ( void  ) const
inlineprivate

Definition at line 521 of file tv_play.h.

◆ HasQueuedChannel()

bool TV::HasQueuedChannel ( void  ) const
inlineprivate

Definition at line 523 of file tv_play.h.

◆ GetQueuedInput()

QString TV::GetQueuedInput ( void  ) const
private

Definition at line 7304 of file tv_play.cpp.

◆ GetQueuedInputAsInt()

int TV::GetQueuedInputAsInt ( bool ok = nullptr,
int  base = 10 
) const
private

Definition at line 7310 of file tv_play.cpp.

◆ GetQueuedChanNum()

QString TV::GetQueuedChanNum ( void  ) const
private

Definition at line 7316 of file tv_play.cpp.

◆ GetQueuedChanID()

uint TV::GetQueuedChanID ( void  ) const
inlineprivate

Definition at line 530 of file tv_play.h.

◆ SwitchSource()

void TV::SwitchSource ( PlayerContext ctx,
uint  source_direction 
)
private

Definition at line 7058 of file tv_play.cpp.

◆ SwitchInputs()

void TV::SwitchInputs ( PlayerContext ctx,
uint  chanid = 0,
QString  channum = "",
uint  inputid = 0 
)
private

Definition at line 7122 of file tv_play.cpp.

◆ PauseLiveTV()

void TV::PauseLiveTV ( PlayerContext ctx)
private

Used in ChangeChannel() to temporarily stop video output.

Definition at line 12515 of file tv_play.cpp.

◆ UnpauseLiveTV()

void TV::UnpauseLiveTV ( PlayerContext ctx,
bool  bQuietly = false 
)
private

Used in ChangeChannel() to restart video output.

Definition at line 12555 of file tv_play.cpp.

◆ DoPlay()

void TV::DoPlay ( PlayerContext ctx)
private

Definition at line 6258 of file tv_play.cpp.

◆ DoTogglePauseStart()

float TV::DoTogglePauseStart ( PlayerContext ctx)
private

Definition at line 6293 of file tv_play.cpp.

◆ DoTogglePauseFinish()

void TV::DoTogglePauseFinish ( PlayerContext ctx,
float  time,
bool  showOSD 
)
private

Definition at line 6324 of file tv_play.cpp.

◆ DoTogglePause()

void TV::DoTogglePause ( PlayerContext ctx,
bool  showOSD 
)
private

Definition at line 6385 of file tv_play.cpp.

◆ DoSetPauseState()

vector< bool > TV::DoSetPauseState ( PlayerContext lctx,
const vector< bool > &  pause 
)
private

Definition at line 8516 of file tv_play.cpp.

◆ ContextIsPaused()

bool TV::ContextIsPaused ( PlayerContext ctx,
const char *  file,
int  location 
)
staticprivate

Definition at line 13103 of file tv_play.cpp.

◆ SetLastProgram()

void TV::SetLastProgram ( const ProgramInfo rcinfo)
private

Definition at line 13044 of file tv_play.cpp.

Referenced by StartTV().

◆ GetLastProgram()

ProgramInfo * TV::GetLastProgram ( void  ) const
private

Definition at line 13056 of file tv_play.cpp.

Referenced by StartTV().

◆ DoSeek()

void TV::DoSeek ( PlayerContext ctx,
float  time,
const QString &  mesg,
bool  timeIsOffset,
bool  honorCutlist 
)
private

Definition at line 6585 of file tv_play.cpp.

◆ DoPlayerSeek()

bool TV::DoPlayerSeek ( PlayerContext ctx,
float  time 
)
private

Definition at line 6428 of file tv_play.cpp.

◆ DoPlayerSeekToFrame()

bool TV::DoPlayerSeekToFrame ( PlayerContext ctx,
uint64_t  target 
)
private

Definition at line 6465 of file tv_play.cpp.

◆ DoSeekAbsolute()

void TV::DoSeekAbsolute ( PlayerContext ctx,
long long  seconds,
bool  honorCutlist 
)
private

Definition at line 6621 of file tv_play.cpp.

◆ DoArbSeek()

void TV::DoArbSeek ( PlayerContext ctx,
ArbSeekWhence  whence,
bool  honorCutlist 
)
private

Definition at line 6638 of file tv_play.cpp.

◆ DoJumpFFWD()

void TV::DoJumpFFWD ( PlayerContext ctx)
private

Definition at line 12609 of file tv_play.cpp.

◆ DoJumpRWND()

void TV::DoJumpRWND ( PlayerContext ctx)
private

Definition at line 12628 of file tv_play.cpp.

◆ DoSeekFFWD()

void TV::DoSeekFFWD ( PlayerContext ctx)
private

Definition at line 12621 of file tv_play.cpp.

◆ DoSeekRWND()

void TV::DoSeekRWND ( PlayerContext ctx)
private

Definition at line 12640 of file tv_play.cpp.

◆ NormalSpeed()

void TV::NormalSpeed ( PlayerContext ctx)
private

Definition at line 6673 of file tv_play.cpp.

◆ ChangeSpeed()

void TV::ChangeSpeed ( PlayerContext ctx,
int  direction 
)
private

Definition at line 6688 of file tv_play.cpp.

◆ ToggleTimeStretch()

void TV::ToggleTimeStretch ( PlayerContext ctx)
private

Definition at line 8740 of file tv_play.cpp.

◆ ChangeTimeStretch()

void TV::ChangeTimeStretch ( PlayerContext ctx,
int  dir,
bool  allowEdit = true 
)
private

Definition at line 8754 of file tv_play.cpp.

◆ DVDJumpBack()

void TV::DVDJumpBack ( PlayerContext ctx)
private

Definition at line 12650 of file tv_play.cpp.

◆ DVDJumpForward()

void TV::DVDJumpForward ( PlayerContext ctx)
private

Definition at line 12689 of file tv_play.cpp.

◆ StopFFRew()

float TV::StopFFRew ( PlayerContext ctx)
private

Definition at line 6734 of file tv_play.cpp.

◆ ChangeFFRew()

void TV::ChangeFFRew ( PlayerContext ctx,
int  direction 
)
private

Definition at line 6759 of file tv_play.cpp.

◆ SetFFRew()

void TV::SetFFRew ( PlayerContext ctx,
int  index 
)
private

Definition at line 6792 of file tv_play.cpp.

◆ EnableUpmix()

void TV::EnableUpmix ( PlayerContext ctx,
bool  enable,
bool  toggle = false 
)
private

Definition at line 8806 of file tv_play.cpp.

◆ ChangeAudioSync()

void TV::ChangeAudioSync ( PlayerContext ctx,
int  dir,
int  newsync = -9999 
)
private

Definition at line 8899 of file tv_play.cpp.

◆ AudioSyncHandleAction()

bool TV::AudioSyncHandleAction ( PlayerContext ctx,
const QStringList &  actions 
)
private

Definition at line 4293 of file tv_play.cpp.

◆ PauseAudioUntilBuffered()

void TV::PauseAudioUntilBuffered ( PlayerContext ctx)
staticprivate

Definition at line 9181 of file tv_play.cpp.

◆ GetNumChapters()

int TV::GetNumChapters ( const PlayerContext ctx)
staticprivate

Definition at line 6888 of file tv_play.cpp.

◆ GetChapterTimes()

void TV::GetChapterTimes ( const PlayerContext ctx,
QList< long long > &  times 
)
staticprivate

Definition at line 6898 of file tv_play.cpp.

◆ GetCurrentChapter()

int TV::GetCurrentChapter ( const PlayerContext ctx)
staticprivate

Definition at line 6906 of file tv_play.cpp.

◆ GetNumTitles()

int TV::GetNumTitles ( const PlayerContext ctx)
staticprivate

Definition at line 6932 of file tv_play.cpp.

◆ GetCurrentTitle()

int TV::GetCurrentTitle ( const PlayerContext ctx)
staticprivate

Definition at line 6942 of file tv_play.cpp.

◆ GetTitleDuration()

int TV::GetTitleDuration ( const PlayerContext ctx,
int  title 
)
staticprivate

Definition at line 6982 of file tv_play.cpp.

◆ GetTitleName()

QString TV::GetTitleName ( const PlayerContext ctx,
int  title 
)
staticprivate

Definition at line 6993 of file tv_play.cpp.

◆ DoSwitchTitle()

void TV::DoSwitchTitle ( PlayerContext ctx,
int  title 
)
private

Definition at line 7003 of file tv_play.cpp.

◆ GetNumAngles()

int TV::GetNumAngles ( const PlayerContext ctx)
staticprivate

Definition at line 6952 of file tv_play.cpp.

◆ GetCurrentAngle()

int TV::GetCurrentAngle ( const PlayerContext ctx)
staticprivate

Definition at line 6962 of file tv_play.cpp.

◆ GetAngleName()

QString TV::GetAngleName ( const PlayerContext ctx,
int  angle 
)
staticprivate

Definition at line 6972 of file tv_play.cpp.

◆ DoSwitchAngle()

void TV::DoSwitchAngle ( PlayerContext ctx,
int  angle 
)
private

Definition at line 7019 of file tv_play.cpp.

◆ DoJumpChapter()

void TV::DoJumpChapter ( PlayerContext ctx,
int  chapter 
)
private

Definition at line 6916 of file tv_play.cpp.

◆ DoSkipCommercials()

void TV::DoSkipCommercials ( PlayerContext ctx,
int  direction 
)
private

Definition at line 7035 of file tv_play.cpp.

◆ SetAutoCommercialSkip()

void TV::SetAutoCommercialSkip ( const PlayerContext ctx,
CommSkipMode  skipMode = kCommSkipOff 
)
private

Definition at line 12257 of file tv_play.cpp.

◆ DoQueueTranscode()

void TV::DoQueueTranscode ( PlayerContext ctx,
const QString &  profile 
)
private

Definition at line 6839 of file tv_play.cpp.

◆ IsBookmarkAllowed()

bool TV::IsBookmarkAllowed ( const PlayerContext ctx)
staticprivate

Definition at line 12734 of file tv_play.cpp.

◆ SetBookmark()

void TV::SetBookmark ( PlayerContext ctx,
bool  clear = false 
)
private

Definition at line 4837 of file tv_play.cpp.

◆ ClearOSD()

bool TV::ClearOSD ( const PlayerContext ctx)
private

Definition at line 7842 of file tv_play.cpp.

Referenced by TVBrowseHelper::BrowseStart().

◆ ToggleOSD()

void TV::ToggleOSD ( PlayerContext ctx,
bool  includeStatusOSD 
)
private

Cycle through the available Info OSDs.

Definition at line 7870 of file tv_play.cpp.

◆ ToggleOSDDebug()

void TV::ToggleOSDDebug ( PlayerContext ctx)
private

Definition at line 7938 of file tv_play.cpp.

◆ UpdateOSDDebug()

void TV::UpdateOSDDebug ( const PlayerContext ctx)
private

Definition at line 7966 of file tv_play.cpp.

◆ UpdateOSDProgInfo()

void TV::UpdateOSDProgInfo ( const PlayerContext ctx,
const char *  whichInfo 
)
private

Update and display the passed OSD set with programinfo.

Definition at line 7982 of file tv_play.cpp.

◆ UpdateOSDStatus() [1/2]

void TV::UpdateOSDStatus ( const PlayerContext ctx,
const QString &  title,
const QString &  desc,
const QString &  value,
int  type,
const QString &  units,
int  position = 0,
enum OSDTimeout  timeout = kOSDTimeout_Med 
)
private

Definition at line 8019 of file tv_play.cpp.

◆ UpdateOSDStatus() [2/2]

void TV::UpdateOSDStatus ( const PlayerContext ctx,
osdInfo info,
int  type,
enum OSDTimeout  timeout 
)
private

Definition at line 8001 of file tv_play.cpp.

◆ UpdateOSDSeekMessage()

void TV::UpdateOSDSeekMessage ( const PlayerContext ctx,
const QString &  mesg,
enum OSDTimeout  timeout 
)
private

Definition at line 8033 of file tv_play.cpp.

◆ UpdateOSDInput()

void TV::UpdateOSDInput ( const PlayerContext ctx)
private

Definition at line 8050 of file tv_play.cpp.

◆ UpdateOSDSignal()

void TV::UpdateOSDSignal ( PlayerContext ctx,
const QStringList &  strlist 
)
private

Updates Signal portion of OSD...

Definition at line 8065 of file tv_play.cpp.

◆ UpdateOSDTimeoutMessage()

void TV::UpdateOSDTimeoutMessage ( PlayerContext ctx)
private

Definition at line 8220 of file tv_play.cpp.

◆ UpdateOSDAskAllowDialog()

void TV::UpdateOSDAskAllowDialog ( PlayerContext )
private

◆ SetUpdateOSDPosition()

void TV::SetUpdateOSDPosition ( bool  set_it)
private

Definition at line 3272 of file tv_play.cpp.

◆ SubtitleZoomHandleAction()

bool TV::SubtitleZoomHandleAction ( PlayerContext ctx,
const QStringList &  actions 
)
private

Definition at line 4318 of file tv_play.cpp.

◆ ChangeSubtitleZoom()

void TV::ChangeSubtitleZoom ( PlayerContext ctx,
int  dir 
)
private

Definition at line 8827 of file tv_play.cpp.

◆ SubtitleDelayHandleAction()

bool TV::SubtitleDelayHandleAction ( PlayerContext ctx,
const QStringList &  actions 
)
private

Definition at line 4343 of file tv_play.cpp.

◆ ChangeSubtitleDelay()

void TV::ChangeSubtitleDelay ( PlayerContext ctx,
int  dir 
)
private

Definition at line 8861 of file tv_play.cpp.

◆ CreatePBP()

bool TV::CreatePBP ( PlayerContext ctx,
const ProgramInfo info 
)
private

Setup Picture by Picture.

right side will be the current video.

Parameters
ctxCurrent player context
infoprograminfo for PBP to use for left Picture. is nullptr for Live TV

Definition at line 5516 of file tv_play.cpp.

◆ CreatePIP()

bool TV::CreatePIP ( PlayerContext ctx,
const ProgramInfo info 
)
private

create PIP.

Parameters
ctxCurrent player context
infoprograminfo for PIP to create. is nullptr for LiveTV PIP

Definition at line 5606 of file tv_play.cpp.

◆ ResizePIPWindow()

bool TV::ResizePIPWindow ( PlayerContext ctx)
private

resize PIP Window.

done when changing channels or swapping PIP

Definition at line 5974 of file tv_play.cpp.

◆ IsPBPSupported()

bool TV::IsPBPSupported ( const PlayerContext ctx = nullptr) const
private

Definition at line 6008 of file tv_play.cpp.

◆ IsPIPSupported()

bool TV::IsPIPSupported ( const PlayerContext ctx = nullptr) const
private

Definition at line 6024 of file tv_play.cpp.

◆ PxPToggleView()

void TV::PxPToggleView ( PlayerContext actx,
bool  wantPBP 
)
private

start/stop PIP/PBP

Definition at line 5791 of file tv_play.cpp.

◆ PxPCreateView()

void TV::PxPCreateView ( PlayerContext actx,
bool  wantPBP 
)
private

start PIP/PBP

Definition at line 5807 of file tv_play.cpp.

◆ PxPTeardownView()

void TV::PxPTeardownView ( PlayerContext actx)
private

stop PIP/PBP

Definition at line 5851 of file tv_play.cpp.

◆ PxPToggleType()

void TV::PxPToggleType ( PlayerContext mctx,
bool  wantPBP 
)
private

Change PIP View from PIP to PBP and visa versa.

Definition at line 5887 of file tv_play.cpp.

◆ PxPSwap()

void TV::PxPSwap ( PlayerContext mctx,
PlayerContext pipctx 
)
private

Definition at line 6177 of file tv_play.cpp.

◆ PIPAddPlayer()

bool TV::PIPAddPlayer ( PlayerContext mctx,
PlayerContext ctx 
)
private

Maps Player of software scaled PIP to the main player.

Definition at line 5727 of file tv_play.cpp.

◆ PIPRemovePlayer()

bool TV::PIPRemovePlayer ( PlayerContext mctx,
PlayerContext ctx 
)
staticprivate

Unmaps Player of software scaled PIP from the main player.

Definition at line 5773 of file tv_play.cpp.

◆ PBPRestartMainPlayer()

void TV::PBPRestartMainPlayer ( PlayerContext mctx)
private

tear down remaining PBP video and restore fullscreen display

Definition at line 6067 of file tv_play.cpp.

◆ SetActive()

void TV::SetActive ( PlayerContext lctx,
int  index,
bool  osd_msg 
)
private

Definition at line 10019 of file tv_play.cpp.

◆ ToggleMoveBottomLine()

void TV::ToggleMoveBottomLine ( PlayerContext ctx)
private

Definition at line 9115 of file tv_play.cpp.

◆ SaveBottomLine()

void TV::SaveBottomLine ( PlayerContext ctx)
private

Definition at line 9132 of file tv_play.cpp.

◆ ToggleAspectOverride()

void TV::ToggleAspectOverride ( PlayerContext ctx,
AspectOverrideMode  aspectMode = kAspect_Toggle 
)
private

Definition at line 9148 of file tv_play.cpp.

◆ ToggleAdjustFill()

void TV::ToggleAdjustFill ( PlayerContext ctx,
AdjustFillMode  adjustfillMode = kAdjustFill_Toggle 
)
private

Definition at line 9163 of file tv_play.cpp.

◆ DoToggleNightMode()

void TV::DoToggleNightMode ( const PlayerContext ctx)
staticprivate

Definition at line 9916 of file tv_play.cpp.

◆ DoTogglePictureAttribute()

void TV::DoTogglePictureAttribute ( const PlayerContext ctx,
PictureAdjustType  type 
)
private

Definition at line 9923 of file tv_play.cpp.

◆ DoChangePictureAttribute()

void TV::DoChangePictureAttribute ( PlayerContext ctx,
PictureAdjustType  type,
PictureAttribute  attr,
bool  up,
int  newvalue = -1 
)
private

Definition at line 9973 of file tv_play.cpp.

◆ PictureAttributeHandleAction()

bool TV::PictureAttributeHandleAction ( PlayerContext ctx,
const QStringList &  actions 
)
private

Definition at line 4244 of file tv_play.cpp.

◆ NextPictureAdjustType()

PictureAttribute TV::NextPictureAdjustType ( PictureAdjustType  type,
MythPlayer mp,
PictureAttribute  attr 
)
staticprivate

Definition at line 9891 of file tv_play.cpp.

◆ HandleDeinterlacer()

void TV::HandleDeinterlacer ( PlayerContext ctx,
const QString &  action 
)
staticprivate

Definition at line 12222 of file tv_play.cpp.

◆ ITVRestart()

void TV::ITVRestart ( PlayerContext ctx,
bool  isLive 
)
staticprivate

Restart the MHEG/MHP engine.

Definition at line 12587 of file tv_play.cpp.

◆ EnableVisualisation()

void TV::EnableVisualisation ( const PlayerContext ctx,
bool  enable,
bool  toggle = false,
const QString &  action = QString("") 
)
private

Definition at line 4780 of file tv_play.cpp.

◆ SetManualZoom()

void TV::SetManualZoom ( const PlayerContext ctx,
bool  zoomON,
const QString &  desc 
)
private

Definition at line 12274 of file tv_play.cpp.

◆ ManualZoomHandleAction()

bool TV::ManualZoomHandleAction ( PlayerContext actx,
const QStringList &  actions 
)
private

Definition at line 4146 of file tv_play.cpp.

◆ StartChannelEditMode()

void TV::StartChannelEditMode ( PlayerContext ctx)
private

Starts channel editing mode.

Definition at line 10220 of file tv_play.cpp.

◆ HandleOSDChannelEdit()

bool TV::HandleOSDChannelEdit ( PlayerContext ctx,
const QString &  action 
)
private

Processes channel editing key.

Definition at line 10267 of file tv_play.cpp.

◆ ChannelEditAutoFill()

void TV::ChannelEditAutoFill ( const PlayerContext ctx,
InfoMap infoMap 
)
staticprivate

Automatically fills in as much information as possible.

Definition at line 10303 of file tv_play.cpp.

◆ ChannelEditXDSFill()

void TV::ChannelEditXDSFill ( const PlayerContext ctx,
InfoMap infoMap 
)
staticprivate

Definition at line 10313 of file tv_play.cpp.

◆ DialogIsVisible()

bool TV::DialogIsVisible ( PlayerContext ctx,
const QString &  dialog 
)
private

Definition at line 10725 of file tv_play.cpp.

◆ HandleOSDInfo()

void TV::HandleOSDInfo ( PlayerContext ctx,
const QString &  action 
)
private

Definition at line 10735 of file tv_play.cpp.

◆ ShowNoRecorderDialog()

void TV::ShowNoRecorderDialog ( const PlayerContext ctx,
NoRecorderMsg  msgType = kNoRecorders 
)
private

Definition at line 12474 of file tv_play.cpp.

◆ ShowOSDAskAllow()

void TV::ShowOSDAskAllow ( PlayerContext ctx)
private

Definition at line 1764 of file tv_play.cpp.

◆ HandleOSDAskAllow()

void TV::HandleOSDAskAllow ( PlayerContext ctx,
const QString &  action 
)
private

Definition at line 2000 of file tv_play.cpp.

◆ AskAllowRecording()

void TV::AskAllowRecording ( PlayerContext ctx,
const QStringList &  msg,
int  timeuntil,
bool  hasrec,
bool  haslater 
)
private

Definition at line 1718 of file tv_play.cpp.

◆ ShowOSDCutpoint()

void TV::ShowOSDCutpoint ( PlayerContext ctx,
const QString &  type 
)
private

Definition at line 10056 of file tv_play.cpp.

◆ HandleOSDCutpoint()

bool TV::HandleOSDCutpoint ( PlayerContext ctx,
const QString &  action 
)
private

Definition at line 10114 of file tv_play.cpp.

◆ StartProgramEditMode()

void TV::StartProgramEditMode ( PlayerContext ctx)
private

Starts Program Cut Map Editing mode.

Definition at line 10139 of file tv_play.cpp.

◆ ShowOSDAlreadyEditing()

void TV::ShowOSDAlreadyEditing ( PlayerContext ctx)
private

Definition at line 10157 of file tv_play.cpp.

◆ HandleOSDAlreadyEditing()

void TV::HandleOSDAlreadyEditing ( PlayerContext ctx,
const QString &  action,
bool  was_paused 
)
private

Definition at line 10178 of file tv_play.cpp.

◆ ShowOSDSleep()

void TV::ShowOSDSleep ( void  )
private

Definition at line 8990 of file tv_play.cpp.

◆ HandleOSDSleep()

void TV::HandleOSDSleep ( PlayerContext ctx,
const QString &  action 
)
private

Definition at line 9015 of file tv_play.cpp.

◆ SleepDialogTimeout()

void TV::SleepDialogTimeout ( void  )
private

Definition at line 9036 of file tv_play.cpp.

◆ ShowOSDIdle()

void TV::ShowOSDIdle ( void  )
private

After idleTimer has expired, display a dialogue warning the user that we will exit LiveTV unless they take action. We change idleTimer, to 45 seconds and when it expires for a second time we quit the player. If the user so decides, they may hit ok and we reset the timer back to the default expiry period.

Definition at line 9054 of file tv_play.cpp.

◆ HandleOSDIdle()

void TV::HandleOSDIdle ( PlayerContext ctx,
const QString &  action 
)
private

Definition at line 9078 of file tv_play.cpp.

◆ IdleDialogTimeout()

void TV::IdleDialogTimeout ( void  )
private

Definition at line 9101 of file tv_play.cpp.

◆ ShowOSDStopWatchingRecording()

void TV::ShowOSDStopWatchingRecording ( PlayerContext ctx)
private

Definition at line 12775 of file tv_play.cpp.

◆ ShowOSDPromptDeleteRecording()

void TV::ShowOSDPromptDeleteRecording ( PlayerContext ctx,
const QString &  title,
bool  force = false 
)
private

Definition at line 12834 of file tv_play.cpp.

◆ HandleOSDVideoExit()

bool TV::HandleOSDVideoExit ( PlayerContext ctx,
const QString &  action 
)
private

Definition at line 12954 of file tv_play.cpp.

◆ StartOsdNavigation()

void TV::StartOsdNavigation ( PlayerContext ctx)
private

Definition at line 10250 of file tv_play.cpp.

◆ UpdateNavDialog()

void TV::UpdateNavDialog ( PlayerContext ctx)
private

Definition at line 6409 of file tv_play.cpp.

◆ ShowOSDMenu()

void TV::ShowOSDMenu ( bool  isCompact = false)
private

Definition at line 12081 of file tv_play.cpp.

◆ FillOSDMenuJumpRec()

void TV::FillOSDMenuJumpRec ( PlayerContext ctx,
const QString &  category = "",
int  level = 0,
const QString &  selected = "" 
)
private

Definition at line 12104 of file tv_play.cpp.

◆ PlaybackMenuShow()

void TV::PlaybackMenuShow ( const MenuBase menu,
const QDomNode &  node,
const QDomNode &  selected 
)
private

Definition at line 11999 of file tv_play.cpp.

◆ CutlistMenuShow()

void TV::CutlistMenuShow ( const MenuBase menu,
const QDomNode &  node,
const QDomNode &  selected 
)
private

◆ MenuItemDisplay()

bool TV::MenuItemDisplay ( const MenuItemContext c)
overrideprivatevirtual

Implements MenuItemDisplayer.

Definition at line 11008 of file tv_play.cpp.

◆ MenuItemDisplayPlayback()

bool TV::MenuItemDisplayPlayback ( const MenuItemContext c)
private

Definition at line 11173 of file tv_play.cpp.

◆ MenuItemDisplayCutlist()

bool TV::MenuItemDisplayCutlist ( const MenuItemContext c)
private

Definition at line 11023 of file tv_play.cpp.

◆ PlaybackMenuInit()

void TV::PlaybackMenuInit ( const MenuBase menu)
private

Definition at line 11841 of file tv_play.cpp.

◆ PlaybackMenuDeinit()

void TV::PlaybackMenuDeinit ( const MenuBase menu)
private

Definition at line 11991 of file tv_play.cpp.

◆ MenuStrings()

void TV::MenuStrings ( void  )
staticprivate

Definition at line 12035 of file tv_play.cpp.

◆ MenuLazyInit()

void TV::MenuLazyInit ( void *  field)
private

Definition at line 11832 of file tv_play.cpp.

◆ UpdateLCD()

void TV::UpdateLCD ( void  )
private

Definition at line 8280 of file tv_play.cpp.

◆ ShowLCDChannelInfo()

void TV::ShowLCDChannelInfo ( const PlayerContext ctx)
private

Definition at line 8289 of file tv_play.cpp.

◆ ShowLCDDVDInfo()

void TV::ShowLCDDVDInfo ( const PlayerContext ctx)
private

Definition at line 8326 of file tv_play.cpp.

◆ GetLastRecorderNum()

int TV::GetLastRecorderNum ( int  player_idx) const
private

Definition at line 1645 of file tv_play.cpp.

◆ GetValidRecorderList() [1/3]

static QStringList TV::GetValidRecorderList ( uint  chanid)
staticprivate

◆ GetValidRecorderList() [2/3]

static QStringList TV::GetValidRecorderList ( const QString &  channum)
staticprivate

◆ GetValidRecorderList() [3/3]

static QStringList TV::GetValidRecorderList ( uint  ,
const QString &   
)
staticprivate

◆ RemoveRecording()

TVState TV::RemoveRecording ( TVState  state)
staticprivate

Definition at line 2091 of file tv_play.cpp.

◆ RestoreScreenSaver()

void TV::RestoreScreenSaver ( const PlayerContext ctx)
private

Definition at line 13097 of file tv_play.cpp.

◆ find_player_index()

int TV::find_player_index ( const PlayerContext ctx) const
private

Definition at line 5660 of file tv_play.cpp.

◆ GetLiveTVIndex()

QString TV::GetLiveTVIndex ( const PlayerContext ctx)
staticprivate

Definition at line 13269 of file tv_play.cpp.

Friends And Related Function Documentation

◆ PlaybackBox

friend class PlaybackBox
friend

Definition at line 281 of file tv_play.h.

◆ GuideGrid

friend class GuideGrid
friend

Definition at line 282 of file tv_play.h.

◆ ProgFinder

friend class ProgFinder
friend

Definition at line 283 of file tv_play.h.

◆ ViewScheduled

friend class ViewScheduled
friend

Definition at line 284 of file tv_play.h.

◆ ScheduleEditor

friend class ScheduleEditor
friend

Definition at line 285 of file tv_play.h.

◆ TvPlayWindow

friend class TvPlayWindow
friend

Definition at line 286 of file tv_play.h.

◆ TVBrowseHelper

friend class TVBrowseHelper
friend

Definition at line 287 of file tv_play.h.

Member Data Documentation

◆ lastProgramStringList

QStringList TV::lastProgramStringList = QStringList()
staticprotected

stores last program info.

maintains info so long as mythfrontend is active

Definition at line 337 of file tv_play.h.

◆ RunPlaybackBoxPtr

EMBEDRETURNVOID TV::RunPlaybackBoxPtr = nullptr
staticprotected

function pointer for RunPlaybackBox in playbackbox.cpp

Definition at line 338 of file tv_play.h.

◆ RunViewScheduledPtr

EMBEDRETURNVOID TV::RunViewScheduledPtr = nullptr
staticprotected

function pointer for RunViewScheduled in viewscheduled.cpp

Definition at line 339 of file tv_play.h.

◆ RunProgramGuidePtr

EMBEDRETURNVOIDEPG TV::RunProgramGuidePtr = nullptr
staticprotected

function pointer for RunProgramGuide in guidegrid.cpp

Definition at line 340 of file tv_play.h.

◆ RunProgramFinderPtr

EMBEDRETURNVOIDFINDER TV::RunProgramFinderPtr = nullptr
staticprotected

function pointer for RunProgramFinder in progfind.cpp

Definition at line 341 of file tv_play.h.

◆ RunScheduleEditorPtr

EMBEDRETURNVOIDSCHEDIT TV::RunScheduleEditorPtr = nullptr
staticprotected

function pointer for RunScheduleEditor in scheduleeditor.cpp

Definition at line 342 of file tv_play.h.

◆ gTVLock

QMutex * TV::gTVLock = new QMutex()
staticprivate

Definition at line 352 of file tv_play.h.

◆ gTV

TV * TV::gTV = nullptr
staticprivate

Definition at line 353 of file tv_play.h.

◆ m_baseFilters

QString TV::m_baseFilters
private

Definition at line 771 of file tv_play.h.

◆ m_dbChannelFormat

QString TV::m_dbChannelFormat {"<num> <sign>"}
private

Definition at line 772 of file tv_play.h.

◆ m_dbIdleTimeout

uint TV::m_dbIdleTimeout {0}
private

Definition at line 773 of file tv_play.h.

◆ m_dbPlaybackExitPrompt

int TV::m_dbPlaybackExitPrompt {0}
private

Definition at line 774 of file tv_play.h.

◆ m_dbAutoexpireDefault

uint TV::m_dbAutoexpireDefault {0}
private

Definition at line 775 of file tv_play.h.

◆ m_dbAutoSetWatched

bool TV::m_dbAutoSetWatched {false}
private

Definition at line 776 of file tv_play.h.

◆ m_dbEndOfRecExitPrompt

bool TV::m_dbEndOfRecExitPrompt {false}
private

Definition at line 777 of file tv_play.h.

◆ m_dbJumpPreferOsd

bool TV::m_dbJumpPreferOsd {true}
private

Definition at line 778 of file tv_play.h.

◆ m_dbUseGuiSizeForTv

bool TV::m_dbUseGuiSizeForTv {false}
private

Definition at line 779 of file tv_play.h.

◆ m_dbUseVideoModes

bool TV::m_dbUseVideoModes {false}
private

Definition at line 780 of file tv_play.h.

◆ m_dbClearSavedPosition

bool TV::m_dbClearSavedPosition {false}
private

Definition at line 781 of file tv_play.h.

◆ m_dbRunJobsOnRemote

bool TV::m_dbRunJobsOnRemote {false}
private

Definition at line 782 of file tv_play.h.

◆ m_dbContinueEmbedded

bool TV::m_dbContinueEmbedded {false}
private

Definition at line 783 of file tv_play.h.

◆ m_dbRunFrontendInWindow

bool TV::m_dbRunFrontendInWindow {false}
private

Definition at line 784 of file tv_play.h.

◆ m_dbBrowseAlways

bool TV::m_dbBrowseAlways {false}
private

Definition at line 785 of file tv_play.h.

◆ m_dbBrowseAllTuners

bool TV::m_dbBrowseAllTuners {false}
private

Definition at line 786 of file tv_play.h.

◆ m_dbUseChannelGroups

bool TV::m_dbUseChannelGroups {false}
private

Definition at line 787 of file tv_play.h.

◆ m_dbRememberLastChannelGroup

bool TV::m_dbRememberLastChannelGroup {false}
private

Definition at line 788 of file tv_play.h.

◆ m_dbChannelGroups

ChannelGroupList TV::m_dbChannelGroups
private

Definition at line 789 of file tv_play.h.

◆ m_tryUnflaggedSkip

bool TV::m_tryUnflaggedSkip {false}
private

Definition at line 791 of file tv_play.h.

◆ m_smartForward

bool TV::m_smartForward {false}
private

Definition at line 793 of file tv_play.h.

◆ m_ffRewRepos

float TV::m_ffRewRepos {1.0F}
private

Definition at line 794 of file tv_play.h.

◆ m_ffRewReverse

bool TV::m_ffRewReverse {false}
private

Definition at line 795 of file tv_play.h.

◆ m_ffRewSpeeds

vector<int> TV::m_ffRewSpeeds
private

Definition at line 796 of file tv_play.h.

◆ m_vbimode

uint TV::m_vbimode {VBIMode::None}
private

Definition at line 798 of file tv_play.h.

◆ m_ctorTime

QTime TV::m_ctorTime
private

Definition at line 800 of file tv_play.h.

◆ m_switchToInputId

uint TV::m_switchToInputId {0}
private

Definition at line 801 of file tv_play.h.

◆ m_initFromDBLock

QMutex TV::m_initFromDBLock
private

Definition at line 803 of file tv_play.h.

◆ m_initFromDBDone

bool TV::m_initFromDBDone {false}
private

Definition at line 804 of file tv_play.h.

◆ m_initFromDBWait

QWaitCondition TV::m_initFromDBWait
private

Definition at line 805 of file tv_play.h.

◆ m_wantsToQuit

bool TV::m_wantsToQuit {true}
mutableprivate

True if the user told MythTV to stop plaback.

If this is false when we exit the player, we display an error screen.

Definition at line 809 of file tv_play.h.

Referenced by StartTV().

◆ m_stretchAdjustment

bool TV::m_stretchAdjustment {false}
private

True if time stretch is turned on.

Definition at line 810 of file tv_play.h.

◆ m_audiosyncAdjustment

bool TV::m_audiosyncAdjustment {false}
private

True if audiosync is turned on.

Definition at line 811 of file tv_play.h.

◆ m_subtitleZoomAdjustment

bool TV::m_subtitleZoomAdjustment {false}
private

True if subtitle zoom is turned on.

Definition at line 812 of file tv_play.h.

◆ m_subtitleDelayAdjustment

bool TV::m_subtitleDelayAdjustment {false}
private

True if subtitle delay is turned on.

Definition at line 813 of file tv_play.h.

◆ m_editMode

bool TV::m_editMode {false}
private

Are we in video editing mode.

Definition at line 814 of file tv_play.h.

◆ m_zoomMode

bool TV::m_zoomMode {false}
private

Definition at line 815 of file tv_play.h.

◆ m_sigMonMode

bool TV::m_sigMonMode {false}
private

Are we in signal monitoring mode?

Definition at line 816 of file tv_play.h.

◆ m_endOfRecording

bool TV::m_endOfRecording {false}
private

!player->IsPlaying() && StateIsPlaying()

Definition at line 817 of file tv_play.h.

◆ m_requestDelete

bool TV::m_requestDelete {false}
private

User wants last video deleted.

Definition at line 818 of file tv_play.h.

Referenced by StartTV().

◆ m_allowRerecord

bool TV::m_allowRerecord {false}
private

User wants to rerecord the last video if deleted.

Definition at line 819 of file tv_play.h.

◆ m_doSmartForward

bool TV::m_doSmartForward {false}
private

Definition at line 820 of file tv_play.h.

◆ m_queuedTranscode

bool TV::m_queuedTranscode {false}
private

Definition at line 821 of file tv_play.h.

◆ m_adjustingPicture

PictureAdjustType TV::m_adjustingPicture {kAdjustingPicture_None}
private

Picture attribute type to modify.

Definition at line 823 of file tv_play.h.

◆ m_adjustingPictureAttribute

PictureAttribute TV::m_adjustingPictureAttribute {kPictureAttribute_None}
private

Picture attribute to modify (on arrow left or right)

Definition at line 825 of file tv_play.h.

◆ m_askAllowPrograms

QMap<QString,AskProgramInfo> TV::m_askAllowPrograms
private

Definition at line 828 of file tv_play.h.

◆ m_askAllowLock

QMutex TV::m_askAllowLock {QMutex::Recursive}
private

Definition at line 829 of file tv_play.h.

◆ m_changePxP

MythDeque<QString> TV::m_changePxP
private

Definition at line 831 of file tv_play.h.

◆ m_progListsLock

QMutex TV::m_progListsLock
private

Definition at line 832 of file tv_play.h.

◆ m_progLists

QMap<QString,ProgramList> TV::m_progLists
private

Definition at line 833 of file tv_play.h.

◆ m_chanEditMapLock

QMutex TV::m_chanEditMapLock {QMutex::Recursive}
mutableprivate

Lock for chanEditMap and ddMap.

Definition at line 835 of file tv_play.h.

◆ m_chanEditMap

InfoMap TV::m_chanEditMap
private

Channel Editing initial map.

Definition at line 836 of file tv_play.h.

◆ m_sleepTimes

vector<SleepTimerInfo> TV::m_sleepTimes
private

Vector or sleep timer sleep times in seconds, with the appropriate UI message.

Definition at line 840 of file tv_play.h.

◆ m_sleepIndex

uint TV::m_sleepIndex {0}
private

Index into sleep_times.

Definition at line 841 of file tv_play.h.

◆ m_sleepTimerTimeout

uint TV::m_sleepTimerTimeout {0}
private

Current sleep timeout in msec.

Definition at line 842 of file tv_play.h.

◆ m_sleepTimerId

int TV::m_sleepTimerId {0}
private

Timer for turning off playback.

Definition at line 843 of file tv_play.h.

◆ m_sleepDialogTimerId

int TV::m_sleepDialogTimerId {0}
private

Timer for sleep dialog.

Definition at line 844 of file tv_play.h.

◆ m_idleTimerId

int TV::m_idleTimerId {0}
private

Timer for turning off playback after idle period.

Definition at line 846 of file tv_play.h.

◆ m_idleDialogTimerId

int TV::m_idleDialogTimerId {0}
private

Timer for idle dialog.

Definition at line 847 of file tv_play.h.

◆ m_keyRepeatTimer

MythTimer TV::m_keyRepeatTimer
private

Queue of unprocessed key presses.

Timeout timer for repeat key filtering

Definition at line 850 of file tv_play.h.

◆ m_ccInputMode

bool TV::m_ccInputMode {false}
private

Are we in CC/Teletext page/stream selection mode?

Definition at line 854 of file tv_play.h.

◆ m_asInputMode

bool TV::m_asInputMode {false}
private

Are we in Arbitrary seek input mode?

Definition at line 858 of file tv_play.h.

◆ m_queuedInput

QString TV::m_queuedInput
private

Input key presses queued up so far...

Definition at line 862 of file tv_play.h.

◆ m_queuedChanNum

QString TV::m_queuedChanNum
mutableprivate

Input key presses queued up so far to form a valid ChanNum.

Definition at line 864 of file tv_play.h.

◆ m_queuedChanID

uint TV::m_queuedChanID {0}
private

Queued ChanID (from EPG channel selector)

Definition at line 866 of file tv_play.h.

◆ m_initialChanID

uint TV::m_initialChanID {0}
private

Initial chanid override for Live TV.

Definition at line 868 of file tv_play.h.

◆ s_screenPressRegionCount

const int TV::s_screenPressRegionCount = 12
staticprivate

screen area to keypress translation region is now 0..11 0 1 2 3 4 5 6 7 8 9 10 11

Definition at line 875 of file tv_play.h.

◆ m_screenPressKeyMapPlayback

QList<QKeyEvent> TV::m_screenPressKeyMapPlayback
private

Definition at line 876 of file tv_play.h.

◆ m_screenPressKeyMapLiveTV

QList<QKeyEvent> TV::m_screenPressKeyMapLiveTV
private

Definition at line 877 of file tv_play.h.

◆ m_lockTimer

QTime TV::m_lockTimer
private

Definition at line 880 of file tv_play.h.

◆ m_lockTimerOn

bool TV::m_lockTimerOn {false}
private

Definition at line 881 of file tv_play.h.

◆ m_lastLockSeenTime

QDateTime TV::m_lastLockSeenTime
private

Definition at line 882 of file tv_play.h.

◆ m_browseHelper

TVBrowseHelper* TV::m_browseHelper {nullptr}
private

Definition at line 885 of file tv_play.h.

◆ m_lastProgramLock

QMutex TV::m_lastProgramLock
mutableprivate

Definition at line 889 of file tv_play.h.

◆ m_lastProgram

ProgramInfo* TV::m_lastProgram {nullptr}
private

last program played with this player

Definition at line 890 of file tv_play.h.

◆ m_inPlaylist

bool TV::m_inPlaylist {false}
private

show is part of a playlist

Definition at line 891 of file tv_play.h.

◆ m_underNetworkControl

bool TV::m_underNetworkControl {false}
private

initial show started via by the network control interface

Definition at line 892 of file tv_play.h.

◆ m_jumpToProgramPIPState

PIPState TV::m_jumpToProgramPIPState {kPIPOff}
private

Definition at line 895 of file tv_play.h.

◆ m_jumpToProgram

bool TV::m_jumpToProgram {false}
private

Definition at line 896 of file tv_play.h.

◆ m_player

vector<PlayerContext*> TV::m_player
private

Definition at line 899 of file tv_play.h.

Referenced by TVBrowseHelper::run().

◆ m_playerActive

int TV::m_playerActive {-1}
private

Video Player to which events are sent to.

Definition at line 901 of file tv_play.h.

◆ m_playerLock

QReadWriteLock TV::m_playerLock
mutableprivate

lock on player and playerActive changes

Definition at line 903 of file tv_play.h.

◆ m_noHardwareDecoders

bool TV::m_noHardwareDecoders {false}
private

Definition at line 905 of file tv_play.h.

◆ m_switchToRec

RemoteEncoder* TV::m_switchToRec {nullptr}
private

Main recorder to use after a successful SwitchCards() call.

Definition at line 909 of file tv_play.h.

◆ m_osdLctx

QMap<OSD*,const PlayerContext*> TV::m_osdLctx
private

Definition at line 912 of file tv_play.h.

◆ m_lcdTitle

QString TV::m_lcdTitle
private

Definition at line 915 of file tv_play.h.

◆ m_lcdSubtitle

QString TV::m_lcdSubtitle
private

Definition at line 916 of file tv_play.h.

◆ m_lcdCallsign

QString TV::m_lcdCallsign
private

Definition at line 917 of file tv_play.h.

◆ m_myWindow

TvPlayWindow* TV::m_myWindow {nullptr}
private

Our screen, if it exists.

player bounds, for after DoEditSchedule() returns to normal playing.

Definition at line 920 of file tv_play.h.

◆ m_playerBounds

QRect TV::m_playerBounds
private

Prior GUI window bounds, for DoEditSchedule() and player exit().

Definition at line 922 of file tv_play.h.

◆ m_savedGuiBounds

QRect TV::m_savedGuiBounds
private

Definition at line 924 of file tv_play.h.

◆ m_weDisabledGUI

bool TV::m_weDisabledGUI {false}
private

true if this instance disabled MythUI drawing.

Definition at line 926 of file tv_play.h.

◆ m_isEmbedded

bool TV::m_isEmbedded {false}
private

are we currently embedded

Definition at line 929 of file tv_play.h.

Referenced by StartTV().

◆ m_ignoreKeyPresses

bool TV::m_ignoreKeyPresses {false}
private

should we ignore keypresses

Definition at line 930 of file tv_play.h.

◆ m_savedPause

vector<bool> TV::m_savedPause
private

saved pause state before embedding

Definition at line 931 of file tv_play.h.

◆ m_suspended

bool TV::m_suspended {false}
private

are we currently suspended

Definition at line 932 of file tv_play.h.

◆ m_suspendedPause

vector<bool> TV::m_suspendedPause
private

saved pause state before suspending

Definition at line 933 of file tv_play.h.

◆ m_channelGroupLock

QMutex TV::m_channelGroupLock
mutableprivate

Lock necessary when modifying channel group variables.

These are only modified in UI thread, so no lock is needed to read this value in the UI thread.

Definition at line 939 of file tv_play.h.

Referenced by TVBrowseHelper::run().

◆ m_channelGroupId

volatile int TV::m_channelGroupId {-1}
private

Definition at line 940 of file tv_play.h.

Referenced by TVBrowseHelper::run().

◆ m_channelGroupChannelList

ChannelInfoList TV::m_channelGroupChannelList
private

Definition at line 941 of file tv_play.h.

Referenced by TVBrowseHelper::run().

◆ networkControlCommands

MythDeque<QString> TV::networkControlCommands
private

Definition at line 944 of file tv_play.h.

◆ m_timerIdLock

QMutex TV::m_timerIdLock
mutableprivate

Definition at line 949 of file tv_play.h.

Referenced by TVBrowseHelper::BrowseDispInfo(), and TVBrowseHelper::BrowseEnd().

◆ m_lcdTimerId

volatile int TV::m_lcdTimerId {0}
private

Definition at line 950 of file tv_play.h.

◆ m_lcdVolumeTimerId

volatile int TV::m_lcdVolumeTimerId {0}
private

Definition at line 951 of file tv_play.h.

◆ m_networkControlTimerId

volatile int TV::m_networkControlTimerId {0}
private

Definition at line 952 of file tv_play.h.

◆ m_jumpMenuTimerId

volatile int TV::m_jumpMenuTimerId {0}
private

Definition at line 953 of file tv_play.h.

◆ m_pipChangeTimerId

volatile int TV::m_pipChangeTimerId {0}
private

Definition at line 954 of file tv_play.h.

◆ m_switchToInputTimerId

volatile int TV::m_switchToInputTimerId {0}
private

Definition at line 955 of file tv_play.h.

◆ m_ccInputTimerId

volatile int TV::m_ccInputTimerId {0}
private

Definition at line 956 of file tv_play.h.

◆ m_asInputTimerId

volatile int TV::m_asInputTimerId {0}
private

Definition at line 957 of file tv_play.h.

◆ m_queueInputTimerId

volatile int TV::m_queueInputTimerId {0}
private

Definition at line 958 of file tv_play.h.

◆ m_browseTimerId

volatile int TV::m_browseTimerId {0}
private

Definition at line 959 of file tv_play.h.

Referenced by TVBrowseHelper::BrowseDispInfo(), and TVBrowseHelper::BrowseEnd().

◆ m_updateOSDPosTimerId

volatile int TV::m_updateOSDPosTimerId {0}
private

Definition at line 960 of file tv_play.h.

◆ m_updateOSDDebugTimerId

volatile int TV::m_updateOSDDebugTimerId {0}
private

Definition at line 961 of file tv_play.h.

◆ m_endOfPlaybackTimerId

volatile int TV::m_endOfPlaybackTimerId {0}
private

Definition at line 962 of file tv_play.h.

◆ m_embedCheckTimerId

volatile int TV::m_embedCheckTimerId {0}
private

Definition at line 963 of file tv_play.h.

◆ m_endOfRecPromptTimerId

volatile int TV::m_endOfRecPromptTimerId {0}
private

Definition at line 964 of file tv_play.h.

◆ m_videoExitDialogTimerId

volatile int TV::m_videoExitDialogTimerId {0}
private

Definition at line 965 of file tv_play.h.

◆ m_pseudoChangeChanTimerId

volatile int TV::m_pseudoChangeChanTimerId {0}
private

Definition at line 966 of file tv_play.h.

◆ m_speedChangeTimerId

volatile int TV::m_speedChangeTimerId {0}
private

Definition at line 967 of file tv_play.h.

◆ m_errorRecoveryTimerId

volatile int TV::m_errorRecoveryTimerId {0}
private

Definition at line 968 of file tv_play.h.

◆ m_exitPlayerTimerId

volatile int TV::m_exitPlayerTimerId {0}
mutableprivate

Definition at line 969 of file tv_play.h.

◆ m_saveLastPlayPosTimerId

volatile int TV::m_saveLastPlayPosTimerId {0}
private

Definition at line 970 of file tv_play.h.

◆ m_stateChangeTimerId

TimerContextMap TV::m_stateChangeTimerId
private

Definition at line 971 of file tv_play.h.

◆ m_signalMonitorTimerId

TimerContextMap TV::m_signalMonitorTimerId
private

Definition at line 972 of file tv_play.h.

◆ m_tvmCtx

PlayerContext* TV::m_tvmCtx {nullptr}
private

Definition at line 975 of file tv_play.h.

◆ m_tvmOsd

OSD* TV::m_tvmOsd {nullptr}
private

Definition at line 976 of file tv_play.h.

◆ m_tvmTracks

QStringList TV::m_tvmTracks[kTrackTypeCount]
private

Definition at line 982 of file tv_play.h.

◆ m_tvmCurtrack

int TV::m_tvmCurtrack[kTrackTypeCount]
private

Definition at line 983 of file tv_play.h.

◆ m_tvmAvsync

bool TV::m_tvmAvsync {true}
private

Definition at line 986 of file tv_play.h.

◆ m_tvmVisual

bool TV::m_tvmVisual {false}
private

Definition at line 987 of file tv_play.h.

◆ m_tvmActive

QString TV::m_tvmActive
private

Definition at line 988 of file tv_play.h.

◆ m_tvmUpmixing

bool TV::m_tvmUpmixing {false}
private

Definition at line 989 of file tv_play.h.

◆ m_tvmCanUpmix

bool TV::m_tvmCanUpmix {false}
private

Definition at line 990 of file tv_play.h.

◆ m_tvmVisualisers

QStringList TV::m_tvmVisualisers
private

Definition at line 991 of file tv_play.h.

◆ m_tvmAspectOverride

AspectOverrideMode TV::m_tvmAspectOverride {kAspect_Off}
private

Definition at line 994 of file tv_play.h.

◆ m_tvmAdjustFill

AdjustFillMode TV::m_tvmAdjustFill {kAdjustFill_Off}
private

Definition at line 995 of file tv_play.h.

◆ m_tvmFillAutoDetect

bool TV::m_tvmFillAutoDetect {false}
private

Definition at line 996 of file tv_play.h.

◆ m_tvmSup

uint TV::m_tvmSup {kPictureAttributeSupported_None}
private

Definition at line 997 of file tv_play.h.

◆ m_tvmStereoAllowed

bool TV::m_tvmStereoAllowed {false}
private

Definition at line 998 of file tv_play.h.

◆ m_tvmStereoMode

StereoscopicMode TV::m_tvmStereoMode {kStereoscopicModeNone}
private

Definition at line 999 of file tv_play.h.

◆ m_tvmScanType

FrameScanType TV::m_tvmScanType {kScan_Ignore}
private

Definition at line 1000 of file tv_play.h.

◆ m_tvmScanTypeUnlocked

FrameScanType TV::m_tvmScanTypeUnlocked {kScan_Ignore}
private

Definition at line 1001 of file tv_play.h.

◆ m_tvmScanTypeLocked

bool TV::m_tvmScanTypeLocked {false}
private

Definition at line 1002 of file tv_play.h.

◆ m_tvmCurMode

QString TV::m_tvmCurMode {}
private

Definition at line 1003 of file tv_play.h.

◆ m_tvmDeinterlacers

QStringList TV::m_tvmDeinterlacers {}
private

Definition at line 1004 of file tv_play.h.

◆ m_tvmCurrentDeinterlacer

QString TV::m_tvmCurrentDeinterlacer {}
private

Definition at line 1005 of file tv_play.h.

◆ m_tvmDoubleRate

bool TV::m_tvmDoubleRate {false}
private

Definition at line 1006 of file tv_play.h.

◆ m_tvmSpeedX100

int TV::m_tvmSpeedX100 {100}
private

Definition at line 1009 of file tv_play.h.

◆ m_tvmState

TVState TV::m_tvmState {kState_None}
private

Definition at line 1010 of file tv_play.h.

◆ m_tvmIsRecording

bool TV::m_tvmIsRecording {false}
private

Definition at line 1011 of file tv_play.h.

◆ m_tvmIsRecorded

bool TV::m_tvmIsRecorded {false}
private

Definition at line 1012 of file tv_play.h.

◆ m_tvmIsVideo

bool TV::m_tvmIsVideo {false}
private

Definition at line 1013 of file tv_play.h.

◆ m_tvmCurSkip

CommSkipMode TV::m_tvmCurSkip {kCommSkipOff}
private

Definition at line 1014 of file tv_play.h.

◆ m_tvmIsPaused

bool TV::m_tvmIsPaused {false}
private

Definition at line 1015 of file tv_play.h.

◆ m_tvmAllowPIP

bool TV::m_tvmAllowPIP {false}
private

Definition at line 1016 of file tv_play.h.

◆ m_tvmAllowPBP

bool TV::m_tvmAllowPBP {false}
private

Definition at line 1017 of file tv_play.h.

◆ m_tvmHasPIP

bool TV::m_tvmHasPIP {false}
private

Definition at line 1018 of file tv_play.h.

◆ m_tvmHasPBP

bool TV::m_tvmHasPBP {false}
private

Definition at line 1019 of file tv_play.h.

◆ m_tvmFreeRecorderCount

int TV::m_tvmFreeRecorderCount {-1}
private

Definition at line 1020 of file tv_play.h.

◆ m_tvmIsDvd

bool TV::m_tvmIsDvd {false}
private

Definition at line 1021 of file tv_play.h.

◆ m_tvmIsBd

bool TV::m_tvmIsBd {false}
private

Definition at line 1022 of file tv_play.h.

◆ m_tvmJump

bool TV::m_tvmJump {false}
private

Definition at line 1023 of file tv_play.h.

◆ m_tvmIsLiveTv

bool TV::m_tvmIsLiveTv {false}
private

Definition at line 1024 of file tv_play.h.

◆ m_tvmPreviousChan

bool TV::m_tvmPreviousChan {false}
private

Definition at line 1025 of file tv_play.h.

◆ m_tvmNumChapters

int TV::m_tvmNumChapters {0}
private

Definition at line 1028 of file tv_play.h.

◆ m_tvmCurrentChapter

int TV::m_tvmCurrentChapter {0}
private

Definition at line 1029 of file tv_play.h.

◆ m_tvmChapterTimes

QList<long long> TV::m_tvmChapterTimes
private

Definition at line 1030 of file tv_play.h.

◆ m_tvmNumAngles

int TV::m_tvmNumAngles {0}
private

Definition at line 1031 of file tv_play.h.

◆ m_tvmCurrentAngle

int TV::m_tvmCurrentAngle {0}
private

Definition at line 1032 of file tv_play.h.

◆ m_tvmNumTitles

int TV::m_tvmNumTitles {0}
private

Definition at line 1033 of file tv_play.h.

◆ m_tvmCurrentTitle

int TV::m_tvmCurrentTitle {0}
private

Definition at line 1034 of file tv_play.h.

◆ m_tvmSubsCapMode

uint TV::m_tvmSubsCapMode {0}
private

Definition at line 1036 of file tv_play.h.

◆ m_tvmSubsHaveText

bool TV::m_tvmSubsHaveText {false}
private

Definition at line 1037 of file tv_play.h.

◆ m_tvmSubsForcedOn

bool TV::m_tvmSubsForcedOn {true}
private

Definition at line 1038 of file tv_play.h.

◆ m_tvmSubsEnabled

bool TV::m_tvmSubsEnabled {false}
private

Definition at line 1039 of file tv_play.h.

◆ m_tvmSubsHaveSubs

bool TV::m_tvmSubsHaveSubs {false}
private

Definition at line 1040 of file tv_play.h.

◆ m_tvmIsOn

bool TV::m_tvmIsOn {false}
private

Definition at line 1042 of file tv_play.h.

◆ m_tvmTranscoding

bool TV::m_tvmTranscoding {false}
private

Definition at line 1043 of file tv_play.h.

◆ m_tvmJumprecBackHack

QVariant TV::m_tvmJumprecBackHack
private

Definition at line 1045 of file tv_play.h.

◆ m_playbackMenu

MenuBase TV::m_playbackMenu
private

Definition at line 1048 of file tv_play.h.

◆ m_playbackCompactMenu

MenuBase TV::m_playbackCompactMenu
private

Definition at line 1049 of file tv_play.h.

◆ m_cutlistMenu

MenuBase TV::m_cutlistMenu
private

Definition at line 1050 of file tv_play.h.

◆ m_cutlistCompactMenu

MenuBase TV::m_cutlistCompactMenu
private

Definition at line 1051 of file tv_play.h.

◆ kInitFFRWSpeed

const int TV::kInitFFRWSpeed = 0
static

1x, default to normal speed

Definition at line 1055 of file tv_play.h.

Referenced by PlayerContext::HandlePlayerSpeedChangeFFRew().

◆ kInputKeysMax

const uint TV::kInputKeysMax = 6
static

When to start discarding early keys.

Definition at line 1056 of file tv_play.h.

◆ kNextSource

const uint TV::kNextSource = 1
static

Definition at line 1057 of file tv_play.h.

◆ kPreviousSource

const uint TV::kPreviousSource = 2
static

Definition at line 1058 of file tv_play.h.

◆ kMaxPIPCount

const uint TV::kMaxPIPCount = 4
static

Definition at line 1059 of file tv_play.h.

◆ kMaxPBPCount

const uint TV::kMaxPBPCount = 2
static

Timeout for entry modes in msec.

Definition at line 1060 of file tv_play.h.

◆ kInputModeTimeout

const uint TV::kInputModeTimeout = 5000
static

Definition at line 1063 of file tv_play.h.

◆ kLCDTimeout

const uint TV::kLCDTimeout = 1000
static

Timeout for updating LCD info in msec.

Definition at line 1065 of file tv_play.h.

◆ kBrowseTimeout

const uint TV::kBrowseTimeout = 30000
static

Timeout for browse mode exit in msec.

Definition at line 1067 of file tv_play.h.

Referenced by TVBrowseHelper::BrowseDispInfo().

◆ kKeyRepeatTimeout

const uint TV::kKeyRepeatTimeout = 300
static

Seek key repeat timeout in msec.

Definition at line 1069 of file tv_play.h.

◆ kPrevChanTimeout

const uint TV::kPrevChanTimeout = 750
static

How long to wait before applying all previous channel keypresses in msec.

Definition at line 1071 of file tv_play.h.

◆ kSleepTimerDialogTimeout

const uint TV::kSleepTimerDialogTimeout = 45000
static

How long to display sleep timer dialog in msec.

Definition at line 1073 of file tv_play.h.

◆ kIdleTimerDialogTimeout

const uint TV::kIdleTimerDialogTimeout = 45000
static

How long to display idle timer dialog in seconds.

Definition at line 1075 of file tv_play.h.

◆ kVideoExitDialogTimeout

const uint TV::kVideoExitDialogTimeout = 120000
static

How long to display idle timer dialog in msec.

Definition at line 1077 of file tv_play.h.

◆ kEndOfPlaybackCheckFrequency

const uint TV::kEndOfPlaybackCheckFrequency = 250
static

Definition at line 1079 of file tv_play.h.

◆ kEmbedCheckFrequency

const uint TV::kEmbedCheckFrequency = 250
static

Definition at line 1080 of file tv_play.h.

◆ kSpeedChangeCheckFrequency

const uint TV::kSpeedChangeCheckFrequency = 250
static

Definition at line 1081 of file tv_play.h.

◆ kErrorRecoveryCheckFrequency

const uint TV::kErrorRecoveryCheckFrequency = 250
static

Definition at line 1082 of file tv_play.h.

◆ kEndOfRecPromptCheckFrequency

const uint TV::kEndOfRecPromptCheckFrequency = 250
static

Definition at line 1083 of file tv_play.h.

◆ kEndOfPlaybackFirstCheckTimer

const uint TV::kEndOfPlaybackFirstCheckTimer = 5000
static

Definition at line 1084 of file tv_play.h.

◆ kSaveLastPlayPosTimeout

const uint TV::kSaveLastPlayPosTimeout = 30000
static

Definition at line 1085 of file tv_play.h.


The documentation for this class was generated from the following files: