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 }
 
typedef QMap< int, PlayerContext * > TimerContextMap
 
typedef QMap< int, const PlayerContext * > TimerContextConstMap
 

Private Member Functions

 TV ()
 
 ~TV ()
 
bool Init (bool createWindow=true)
 Performs instance initialization, returns true on success. More...
 
void InitFromDB (void)
 
QList< QKeyEvent > ConvertScreenPressKeyMap (const QString &keyList)
 
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 DiscMenuHandleAction (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)
 
bool IsTunable (const PlayerContext *, uint chanid)
 
void ChangeChannel (const PlayerContext *, const ChannelInfoList &options)
 
void DrawUnusedRects (void)
 
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...
 
TVState GetState (const PlayerContext *) 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...
 
bool IsDeleteAllowed (const PlayerContext *) const
 
void ToggleChannelFavorite (PlayerContext *ctx)
 
void ToggleChannelFavorite (PlayerContext *, QString)
 
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 > &)
 
bool ContextIsPaused (PlayerContext *ctx, const char *file, int location)
 
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 PauseAudioUntilBuffered (PlayerContext *ctx)
 
int GetNumChapters (const PlayerContext *) const
 
void GetChapterTimes (const PlayerContext *, QList< long long > &times) const
 
int GetCurrentChapter (const PlayerContext *) const
 
int GetNumTitles (const PlayerContext *ctx) const
 
int GetCurrentTitle (const PlayerContext *ctx) const
 
int GetTitleDuration (const PlayerContext *ctx, int title) const
 
QString GetTitleName (const PlayerContext *ctx, int title) const
 
void DoSwitchTitle (PlayerContext *, int title)
 
int GetNumAngles (const PlayerContext *ctx) const
 
int GetCurrentAngle (const PlayerContext *ctx) const
 
QString GetAngleName (const PlayerContext *ctx, int angle) const
 
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)
 
bool IsBookmarkAllowed (const PlayerContext *) const
 
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 *, QString inputname=QString())
 
void UpdateOSDSignal (const 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...
 
bool PIPRemovePlayer (PlayerContext *mctx, PlayerContext *ctx)
 Unmaps Player of software scaled PIP from 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 DoToggleStudioLevels (const PlayerContext *ctx)
 
void DoToggleNightMode (const PlayerContext *)
 
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 HandleDeinterlacer (PlayerContext *ctx, const QString &action)
 
void ITVRestart (PlayerContext *, bool isLive)
 Restart the MHEG/MHP engine. More...
 
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...
 
void ChannelEditAutoFill (const PlayerContext *, InfoMap &) const
 Automatically fills in as much information as possible. More...
 
void ChannelEditXDSFill (const PlayerContext *, InfoMap &) const
 
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 MenuStrings (void) const
 
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
 
QString GetLiveTVIndex (const PlayerContext *) const
 

Static Private Member Functions

static TVGetTV (void)
 
static void ReleaseTV (TV *tv)
 
static QSet< uintIsTunableOn (const PlayerContext *, uint chanid)
 
static bool StateIsRecording (TVState state)
 
static bool StateIsPlaying (TVState state)
 
static bool StateIsLiveTV (TVState state)
 
static PictureAttribute NextPictureAdjustType (PictureAdjustType type, MythPlayer *mp, PictureAttribute attr)
 
static QStringList GetValidRecorderList (uint chanid)
 
static QStringList GetValidRecorderList (const QString &channum)
 
static QStringList GetValidRecorderList (uint, const QString &)
 
static TVState RemoveRecording (TVState state)
 

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_dbClearSavedPosition {false}
 
bool m_dbRunJobsOnRemote {false}
 
bool m_dbContinueEmbedded {false}
 
bool m_dbUseFixedSize {true}
 
bool m_dbBrowseAlways {false}
 
bool m_dbBrowseAllTuners {false}
 
bool m_dbUseChannelGroups {false}
 
bool m_dbRememberLastChannelGroup {false}
 
ChannelGroupList m_dbChannelGroups
 
CommSkipMode m_autoCommercialSkip
 
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
 
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
 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
 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_disableDrawUnusedRects {false}
 true if video chromakey and frame should not be drawn 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
 
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
 
bool m_tvmVisual
 
QString m_tvmActive
 
bool m_tvmUpmixing
 
bool m_tvmCanUpmix
 
QStringList m_tvmVisualisers
 
AspectOverrideMode m_tvmAspectOverride
 
AdjustFillMode m_tvmAdjustFill
 
bool m_tvmFillAutoDetect
 
uint m_tvmSup
 
bool m_tvmStudioLevels
 
bool m_tvmStereoAllowed
 
StereoscopicMode m_tvmStereoMode
 
FrameScanType m_tvmScanType
 
FrameScanType m_tvmScanTypeUnlocked
 
bool m_tvmScanTypeLocked
 
QString m_tvmCurMode
 
QStringList m_tvmDeinterlacers
 
QString m_tvmCurrentDeinterlacer
 
bool m_tvmDoubleRate
 
int m_tvmSpeedX100
 
TVState m_tvmState
 
bool m_tvmIsRecording
 
bool m_tvmIsRecorded
 
bool m_tvmIsVideo
 
CommSkipMode m_tvmCurSkip
 
bool m_tvmIsPaused
 
bool m_tvmAllowPIP
 
bool m_tvmAllowPBP
 
bool m_tvmHasPIP
 
bool m_tvmHasPBP
 
int m_tvmFreeRecorderCount
 
bool m_tvmIsDvd
 
bool m_tvmIsBd
 
bool m_tvmJump
 
bool m_tvmIsLiveTv
 
bool m_tvmPreviousChan
 
int m_tvmNumChapters
 
int m_tvmCurrentChapter
 
QList< long long > m_tvmChapterTimes
 
int m_tvmNumAngles
 
int m_tvmCurrentAngle
 
int m_tvmNumTitles
 
int m_tvmCurrentTitle
 
uint m_tvmSubsCapMode
 
bool m_tvmSubsHaveText
 
bool m_tvmSubsForcedOn
 
bool m_tvmSubsEnabled
 
bool m_tvmSubsHaveSubs
 
bool m_tvmIsOn
 
bool m_tvmTranscoding
 
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 284 of file tv_play.h.

Member Typedef Documentation

◆ TimerContextMap

typedef QMap<int,PlayerContext*> TV::TimerContextMap
private

Definition at line 957 of file tv_play.h.

◆ TimerContextConstMap

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

Definition at line 958 of file tv_play.h.

Member Enumeration Documentation

◆ BookmarkAction

enum TV::BookmarkAction
private
Enumerator
kBookmarkAlways 
kBookmarkNever 
kBookmarkAuto 

Definition at line 471 of file tv_play.h.

◆ ArbSeekWhence

enum TV::ArbSeekWhence
private
Enumerator
ARBSEEK_SET 
ARBSEEK_REWIND 
ARBSEEK_FORWARD 
ARBSEEK_END 

Definition at line 562 of file tv_play.h.

Constructor & Destructor Documentation

◆ TV()

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

Definition at line 1012 of file tv_play.cpp.

◆ ~TV()

TV::~TV ( void  )
private

Definition at line 1291 of file tv_play.cpp.

Member Function Documentation

◆ IsTVRunning()

bool TV::IsTVRunning ( void  )
static

◆ CurrentTVInstance()

static TV* TV::CurrentTVInstance ( void  )
inlinestatic

Definition at line 298 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 290 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 6443 of file tv_play.cpp.

Referenced by MythAirplayServer::PausePlayback().

◆ event()

bool TV::event ( QEvent *  e)
override

This handles all standard events.

Definition at line 3607 of file tv_play.cpp.

◆ eventFilter()

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

This selectively blocks KeyPress and Resize events.

Definition at line 3560 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 13249 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 1733 of file tv_play.cpp.

◆ InitKeys()

void TV::InitKeys ( void  )
static

Definition at line 505 of file tv_play.cpp.

Referenced by main().

◆ ReloadKeys()

void TV::ReloadKeys ( void  )
static

Definition at line 999 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 490 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 194 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 9968 of file tv_play.cpp.

◆ timerEvent

void TV::timerEvent ( QTimerEvent *  te)
overrideslot

Definition at line 2695 of file tv_play.cpp.

◆ StopPlayback

void TV::StopPlayback ( void  )
slot

Definition at line 273 of file tv_play.cpp.

◆ customEvent()

void TV::customEvent ( QEvent *  e)
overrideprotected

This handles all custom events.

Definition at line 9295 of file tv_play.cpp.

◆ onApplicationStateChange

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

Definition at line 13448 of file tv_play.cpp.

◆ GetTV()

TV * TV::GetTV ( void  )
staticprivate

Definition at line 248 of file tv_play.cpp.

◆ ReleaseTV()

void TV::ReleaseTV ( TV tv)
staticprivate

Definition at line 260 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 1163 of file tv_play.cpp.

Referenced by StartTV().

◆ InitFromDB()

void TV::InitFromDB ( void  )
private

Definition at line 1041 of file tv_play.cpp.

◆ ConvertScreenPressKeyMap()

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

Definition at line 3807 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 1639 of file tv_play.cpp.

Referenced by StartTV().

◆ Playback()

int TV::Playback ( const ProgramInfo rcinfo)
private

Definition at line 2063 of file tv_play.cpp.

Referenced by StartTV().

◆ PlaybackLoop()

void TV::PlaybackLoop ( void  )
private

The main playback loop.

Definition at line 1360 of file tv_play.cpp.

Referenced by StartTV().

◆ ProcessKeypressOrGesture()

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

Definition at line 3889 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 3872 of file tv_play.cpp.

◆ TranslateGesture()

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

Definition at line 3837 of file tv_play.cpp.

◆ ProcessNetworkControlCommand()

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

Definition at line 5055 of file tv_play.cpp.

◆ HandleTrackAction()

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

Definition at line 3663 of file tv_play.cpp.

◆ ActiveHandleAction()

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

Definition at line 4483 of file tv_play.cpp.

◆ BrowseHandleAction()

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

Definition at line 4141 of file tv_play.cpp.

◆ OSDDialogEvent()

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

Definition at line 10478 of file tv_play.cpp.

◆ PxPHandleAction()

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

Definition at line 4888 of file tv_play.cpp.

◆ ToggleHandleAction()

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

Definition at line 4798 of file tv_play.cpp.

◆ FFRewHandleAction()

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

Definition at line 4761 of file tv_play.cpp.

◆ ActivePostQHandleAction()

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

Definition at line 4949 of file tv_play.cpp.

◆ HandleJumpToProgramAction()

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

Definition at line 12454 of file tv_play.cpp.

◆ SeekHandleAction()

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

Definition at line 6577 of file tv_play.cpp.

◆ TimeStretchHandleAction()

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

Definition at line 4341 of file tv_play.cpp.

◆ DiscMenuHandleAction()

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

Definition at line 4445 of file tv_play.cpp.

◆ Handle3D()

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

Definition at line 4461 of file tv_play.cpp.

◆ StartTimer()

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

Definition at line 3216 of file tv_play.cpp.

Referenced by TVBrowseHelper::BrowseDispInfo().

◆ KillTimer()

void TV::KillTimer ( int  id)
private

Definition at line 3228 of file tv_play.cpp.

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

◆ SetSpeedChangeTimer()

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

Definition at line 3519 of file tv_play.cpp.

◆ HandleEndOfPlaybackTimerEvent()

void TV::HandleEndOfPlaybackTimerEvent ( void  )
private

Definition at line 3351 of file tv_play.cpp.

◆ HandleIsNearEndWhenEmbeddingTimerEvent()

void TV::HandleIsNearEndWhenEmbeddingTimerEvent ( void  )
private

Definition at line 3398 of file tv_play.cpp.

◆ HandleEndOfRecordingExitPromptTimerEvent()

void TV::HandleEndOfRecordingExitPromptTimerEvent ( void  )
private

Definition at line 3413 of file tv_play.cpp.

◆ HandleVideoExitDialogTimerEvent()

void TV::HandleVideoExitDialogTimerEvent ( void  )
private

Definition at line 3445 of file tv_play.cpp.

◆ HandlePseudoLiveTVTimerEvent()

void TV::HandlePseudoLiveTVTimerEvent ( void  )
private

Definition at line 3475 of file tv_play.cpp.

◆ HandleSpeedChangeTimerEvent()

void TV::HandleSpeedChangeTimerEvent ( void  )
private

Definition at line 3527 of file tv_play.cpp.

◆ ToggleSleepTimer() [1/2]

void TV::ToggleSleepTimer ( const PlayerContext ctx)
private

Definition at line 9064 of file tv_play.cpp.

◆ ToggleSleepTimer() [2/2]

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

Definition at line 12575 of file tv_play.cpp.

◆ HandlePxPTimerEvent()

bool TV::HandlePxPTimerEvent ( void  )
private

Definition at line 3106 of file tv_play.cpp.

◆ HandleLCDTimerEvent()

bool TV::HandleLCDTimerEvent ( void  )
private

Definition at line 3158 of file tv_play.cpp.

◆ HandleLCDVolumeTimerEvent()

void TV::HandleLCDVolumeTimerEvent ( void  )
private

Definition at line 3200 of file tv_play.cpp.

◆ HandleSaveLastPlayPosEvent()

void TV::HandleSaveLastPlayPosEvent ( void  )
private

Definition at line 13163 of file tv_play.cpp.

◆ EditSchedule()

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

Definition at line 8785 of file tv_play.cpp.

◆ StartEmbedding()

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

◆ StopEmbedding()

void TV::StopEmbedding ( void  )
private

Definition at line 8571 of file tv_play.cpp.

◆ IsTunable() [2/2]

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

Definition at line 8458 of file tv_play.cpp.

◆ IsTunableOn()

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

Definition at line 8480 of file tv_play.cpp.

◆ ChangeChannel() [1/3]

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

Definition at line 7850 of file tv_play.cpp.

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

◆ DrawUnusedRects()

void TV::DrawUnusedRects ( void  )
private

Definition at line 8599 of file tv_play.cpp.

Referenced by GuideGrid::EmbedTVWindow().

◆ DoEditSchedule()

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

Definition at line 8644 of file tv_play.cpp.

◆ GetRecordingGroup()

QString TV::GetRecordingGroup ( int  player_idx) const
private

Definition at line 13230 of file tv_play.cpp.

Referenced by PlaybackBox::PlaybackBox().

◆ ChangeVolume()

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

Definition at line 8793 of file tv_play.cpp.

Referenced by GuideGrid::volumeUpdate().

◆ ToggleMute()

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

Definition at line 9027 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 1409 of file tv_play.cpp.

Referenced by GuideGrid::~GuideGrid().

◆ GetOSDL() [1/2]

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

Definition at line 13281 of file tv_play.cpp.

◆ GetOSDL() [2/2]

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

Definition at line 13292 of file tv_play.cpp.

◆ ReturnOSDLock()

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

Definition at line 13334 of file tv_play.cpp.

Referenced by TVBrowseHelper::BrowseEnd().

◆ GetPlayerWriteLock()

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

Definition at line 13345 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 13375 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 13391 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 13407 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 13429 of file tv_play.cpp.

◆ ToggleAutoExpire()

void TV::ToggleAutoExpire ( PlayerContext ctx)
private

Definition at line 12400 of file tv_play.cpp.

◆ QuickRecord()

void TV::QuickRecord ( PlayerContext ctx)
private

Definition at line 9888 of file tv_play.cpp.

◆ StateIsRecording()

bool TV::StateIsRecording ( TVState  state)
staticprivate

Definition at line 2094 of file tv_play.cpp.

◆ StateIsPlaying()

bool TV::StateIsPlaying ( TVState  state)
staticprivate

Definition at line 2100 of file tv_play.cpp.

◆ StateIsLiveTV()

bool TV::StateIsLiveTV ( TVState  state)
staticprivate

Definition at line 2109 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 1436 of file tv_play.cpp.

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

◆ GetState() [2/2]

TVState TV::GetState ( const PlayerContext actx) const
private

get tv state of active player context

Definition at line 1626 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 2147 of file tv_play.cpp.

◆ GetStatus()

void TV::GetStatus ( void  )
private

Definition at line 1445 of file tv_play.cpp.

◆ ForceNextStateNone()

void TV::ForceNextStateNone ( PlayerContext ctx)
private

Definition at line 3233 of file tv_play.cpp.

◆ ScheduleStateChange()

void TV::ScheduleStateChange ( PlayerContext ctx)
private

Definition at line 3239 of file tv_play.cpp.

◆ SetErrored()

void TV::SetErrored ( PlayerContext ctx)
private

Definition at line 3245 of file tv_play.cpp.

◆ setInPlayList()

void TV::setInPlayList ( bool  setting)
inlineprivate

Definition at line 467 of file tv_play.h.

Referenced by StartTV().

◆ setUnderNetworkControl()

void TV::setUnderNetworkControl ( bool  setting)
inlineprivate

Definition at line 468 of file tv_play.h.

Referenced by StartTV().

◆ PrepToSwitchToRecordedProgram()

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

Definition at line 3255 of file tv_play.cpp.

◆ PrepareToExitPlayer()

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

Definition at line 3266 of file tv_play.cpp.

◆ SetExitPlayer()

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

Definition at line 3317 of file tv_play.cpp.

Referenced by StartTV().

◆ RequestNextRecorder()

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

Definition at line 1676 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 2559 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 2613 of file tv_play.cpp.

◆ TeardownPlayer()

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

Definition at line 2661 of file tv_play.cpp.

◆ StartPlayer()

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

Definition at line 5750 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 6125 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 6189 of file tv_play.cpp.

◆ RestartMainPlayer()

void TV::RestartMainPlayer ( PlayerContext mctx)
private

Definition at line 6310 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 500 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 502 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 505 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 508 of file tv_play.h.

Referenced by StartTV().

◆ IsDeleteAllowed()

bool TV::IsDeleteAllowed ( const PlayerContext ctx) const
private

Definition at line 12926 of file tv_play.cpp.

◆ ToggleChannelFavorite() [1/2]

void TV::ToggleChannelFavorite ( PlayerContext ctx)
private

Definition at line 7366 of file tv_play.cpp.

◆ ToggleChannelFavorite() [2/2]

void TV::ToggleChannelFavorite ( PlayerContext ctx,
QString  changroup_name 
)
private

Definition at line 7374 of file tv_play.cpp.

◆ ChangeChannel() [2/3]

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

Definition at line 7609 of file tv_play.cpp.

◆ ChangeChannel() [3/3]

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

Definition at line 7702 of file tv_play.cpp.

◆ ShowPreviousChannel()

void TV::ShowPreviousChannel ( PlayerContext ctx)
private

Definition at line 7873 of file tv_play.cpp.

◆ PopPreviousChannel()

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

Definition at line 7886 of file tv_play.cpp.

◆ AddKeyToInputQueue()

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

Definition at line 7435 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 7419 of file tv_play.cpp.

◆ CommitQueuedInput()

bool TV::CommitQueuedInput ( PlayerContext ctx)
private

Definition at line 7553 of file tv_play.cpp.

◆ ProcessSmartChannel()

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

Definition at line 7482 of file tv_play.cpp.

◆ HasQueuedInput()

bool TV::HasQueuedInput ( void  ) const
inlineprivate

Definition at line 527 of file tv_play.h.

◆ HasQueuedChannel()

bool TV::HasQueuedChannel ( void  ) const
inlineprivate

Definition at line 529 of file tv_play.h.

◆ GetQueuedInput()

QString TV::GetQueuedInput ( void  ) const
private

Definition at line 7380 of file tv_play.cpp.

◆ GetQueuedInputAsInt()

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

Definition at line 7386 of file tv_play.cpp.

◆ GetQueuedChanNum()

QString TV::GetQueuedChanNum ( void  ) const
private

Definition at line 7392 of file tv_play.cpp.

◆ GetQueuedChanID()

uint TV::GetQueuedChanID ( void  ) const
inlineprivate

Definition at line 536 of file tv_play.h.

◆ SwitchSource()

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

Definition at line 7141 of file tv_play.cpp.

◆ SwitchInputs()

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

Definition at line 7205 of file tv_play.cpp.

◆ PauseLiveTV()

void TV::PauseLiveTV ( PlayerContext ctx)
private

Used in ChangeChannel() to temporarily stop video output.

Definition at line 12681 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 12721 of file tv_play.cpp.

◆ DoPlay()

void TV::DoPlay ( PlayerContext ctx)
private

Definition at line 6340 of file tv_play.cpp.

◆ DoTogglePauseStart()

float TV::DoTogglePauseStart ( PlayerContext ctx)
private

Definition at line 6375 of file tv_play.cpp.

◆ DoTogglePauseFinish()

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

Definition at line 6406 of file tv_play.cpp.

◆ DoTogglePause()

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

Definition at line 6467 of file tv_play.cpp.

◆ DoSetPauseState()

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

Definition at line 8620 of file tv_play.cpp.

◆ ContextIsPaused()

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

Definition at line 13269 of file tv_play.cpp.

◆ SetLastProgram()

void TV::SetLastProgram ( const ProgramInfo rcinfo)
private

Definition at line 13210 of file tv_play.cpp.

Referenced by StartTV().

◆ GetLastProgram()

ProgramInfo * TV::GetLastProgram ( void  ) const
private

Definition at line 13222 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 6667 of file tv_play.cpp.

◆ DoPlayerSeek()

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

Definition at line 6510 of file tv_play.cpp.

◆ DoPlayerSeekToFrame()

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

Definition at line 6547 of file tv_play.cpp.

◆ DoSeekAbsolute()

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

Definition at line 6703 of file tv_play.cpp.

◆ DoArbSeek()

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

Definition at line 6720 of file tv_play.cpp.

◆ DoJumpFFWD()

void TV::DoJumpFFWD ( PlayerContext ctx)
private

Definition at line 12775 of file tv_play.cpp.

◆ DoJumpRWND()

void TV::DoJumpRWND ( PlayerContext ctx)
private

Definition at line 12794 of file tv_play.cpp.

◆ DoSeekFFWD()

void TV::DoSeekFFWD ( PlayerContext ctx)
private

Definition at line 12787 of file tv_play.cpp.

◆ DoSeekRWND()

void TV::DoSeekRWND ( PlayerContext ctx)
private

Definition at line 12806 of file tv_play.cpp.

◆ NormalSpeed()

void TV::NormalSpeed ( PlayerContext ctx)
private

Definition at line 6755 of file tv_play.cpp.

◆ ChangeSpeed()

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

Definition at line 6770 of file tv_play.cpp.

◆ ToggleTimeStretch()

void TV::ToggleTimeStretch ( PlayerContext ctx)
private

Definition at line 8843 of file tv_play.cpp.

◆ ChangeTimeStretch()

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

Definition at line 8857 of file tv_play.cpp.

◆ DVDJumpBack()

void TV::DVDJumpBack ( PlayerContext ctx)
private

Definition at line 12816 of file tv_play.cpp.

◆ DVDJumpForward()

void TV::DVDJumpForward ( PlayerContext ctx)
private

Definition at line 12855 of file tv_play.cpp.

◆ StopFFRew()

float TV::StopFFRew ( PlayerContext ctx)
private

Definition at line 6816 of file tv_play.cpp.

◆ ChangeFFRew()

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

Definition at line 6841 of file tv_play.cpp.

◆ SetFFRew()

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

Definition at line 6874 of file tv_play.cpp.

◆ EnableUpmix()

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

Definition at line 8908 of file tv_play.cpp.

◆ ChangeAudioSync()

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

Definition at line 9001 of file tv_play.cpp.

◆ AudioSyncHandleAction()

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

Definition at line 4367 of file tv_play.cpp.

◆ PauseAudioUntilBuffered()

void TV::PauseAudioUntilBuffered ( PlayerContext ctx)
private

Definition at line 9283 of file tv_play.cpp.

◆ GetNumChapters()

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

Definition at line 6971 of file tv_play.cpp.

◆ GetChapterTimes()

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

Definition at line 6981 of file tv_play.cpp.

◆ GetCurrentChapter()

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

Definition at line 6989 of file tv_play.cpp.

◆ GetNumTitles()

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

Definition at line 7015 of file tv_play.cpp.

◆ GetCurrentTitle()

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

Definition at line 7025 of file tv_play.cpp.

◆ GetTitleDuration()

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

Definition at line 7065 of file tv_play.cpp.

◆ GetTitleName()

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

Definition at line 7076 of file tv_play.cpp.

◆ DoSwitchTitle()

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

Definition at line 7086 of file tv_play.cpp.

◆ GetNumAngles()

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

Definition at line 7035 of file tv_play.cpp.

◆ GetCurrentAngle()

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

Definition at line 7045 of file tv_play.cpp.

◆ GetAngleName()

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

Definition at line 7055 of file tv_play.cpp.

◆ DoSwitchAngle()

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

Definition at line 7102 of file tv_play.cpp.

◆ DoJumpChapter()

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

Definition at line 6999 of file tv_play.cpp.

◆ DoSkipCommercials()

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

Definition at line 7118 of file tv_play.cpp.

◆ SetAutoCommercialSkip()

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

Definition at line 12423 of file tv_play.cpp.

◆ DoQueueTranscode()

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

Definition at line 6921 of file tv_play.cpp.

◆ IsBookmarkAllowed()

bool TV::IsBookmarkAllowed ( const PlayerContext ctx) const
private

Definition at line 12900 of file tv_play.cpp.

◆ SetBookmark()

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

Definition at line 4925 of file tv_play.cpp.

◆ ClearOSD()

bool TV::ClearOSD ( const PlayerContext ctx)
private

Definition at line 7918 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 7946 of file tv_play.cpp.

◆ ToggleOSDDebug()

void TV::ToggleOSDDebug ( PlayerContext ctx)
private

Definition at line 8014 of file tv_play.cpp.

◆ UpdateOSDDebug()

void TV::UpdateOSDDebug ( const PlayerContext ctx)
private

Definition at line 8042 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 8058 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 8095 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 8077 of file tv_play.cpp.

◆ UpdateOSDSeekMessage()

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

Definition at line 8109 of file tv_play.cpp.

◆ UpdateOSDInput()

void TV::UpdateOSDInput ( const PlayerContext ctx,
QString  inputname = QString() 
)
private

Definition at line 8126 of file tv_play.cpp.

◆ UpdateOSDSignal()

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

Updates Signal portion of OSD...

Definition at line 8147 of file tv_play.cpp.

◆ UpdateOSDTimeoutMessage()

void TV::UpdateOSDTimeoutMessage ( PlayerContext ctx)
private

Definition at line 8303 of file tv_play.cpp.

◆ UpdateOSDAskAllowDialog()

void TV::UpdateOSDAskAllowDialog ( PlayerContext )
private

◆ SetUpdateOSDPosition()

void TV::SetUpdateOSDPosition ( bool  set_it)
private

Definition at line 3335 of file tv_play.cpp.

◆ SubtitleZoomHandleAction()

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

Definition at line 4393 of file tv_play.cpp.

◆ ChangeSubtitleZoom()

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

Definition at line 8929 of file tv_play.cpp.

◆ SubtitleDelayHandleAction()

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

Definition at line 4419 of file tv_play.cpp.

◆ ChangeSubtitleDelay()

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

Definition at line 8963 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 5604 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 5693 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 6056 of file tv_play.cpp.

◆ IsPBPSupported()

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

Definition at line 6090 of file tv_play.cpp.

◆ IsPIPSupported()

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

Definition at line 6106 of file tv_play.cpp.

◆ PxPToggleView()

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

start/stop PIP/PBP

Definition at line 5873 of file tv_play.cpp.

◆ PxPCreateView()

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

start PIP/PBP

Definition at line 5889 of file tv_play.cpp.

◆ PxPTeardownView()

void TV::PxPTeardownView ( PlayerContext actx)
private

stop PIP/PBP

Definition at line 5933 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 5969 of file tv_play.cpp.

◆ PxPSwap()

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

Definition at line 6259 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 5809 of file tv_play.cpp.

◆ PIPRemovePlayer()

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

Unmaps Player of software scaled PIP from the main player.

Definition at line 5855 of file tv_play.cpp.

◆ PBPRestartMainPlayer()

void TV::PBPRestartMainPlayer ( PlayerContext mctx)
private

tear down remaining PBP video and restore fullscreen display

Definition at line 6149 of file tv_play.cpp.

◆ SetActive()

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

Definition at line 10148 of file tv_play.cpp.

◆ ToggleMoveBottomLine()

void TV::ToggleMoveBottomLine ( PlayerContext ctx)
private

Definition at line 9217 of file tv_play.cpp.

◆ SaveBottomLine()

void TV::SaveBottomLine ( PlayerContext ctx)
private

Definition at line 9234 of file tv_play.cpp.

◆ ToggleAspectOverride()

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

Definition at line 9250 of file tv_play.cpp.

◆ ToggleAdjustFill()

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

Definition at line 9265 of file tv_play.cpp.

◆ DoToggleStudioLevels()

void TV::DoToggleStudioLevels ( const PlayerContext ctx)
private

Definition at line 10038 of file tv_play.cpp.

◆ DoToggleNightMode()

void TV::DoToggleNightMode ( const PlayerContext ctx)
private

Definition at line 10045 of file tv_play.cpp.

◆ DoTogglePictureAttribute()

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

Definition at line 10052 of file tv_play.cpp.

◆ DoChangePictureAttribute()

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

Definition at line 10102 of file tv_play.cpp.

◆ PictureAttributeHandleAction()

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

Definition at line 4318 of file tv_play.cpp.

◆ NextPictureAdjustType()

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

Definition at line 10007 of file tv_play.cpp.

◆ HandleDeinterlacer()

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

Definition at line 12388 of file tv_play.cpp.

◆ ITVRestart()

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

Restart the MHEG/MHP engine.

Definition at line 12753 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 4868 of file tv_play.cpp.

◆ SetManualZoom()

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

Definition at line 12440 of file tv_play.cpp.

◆ ManualZoomHandleAction()

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

Definition at line 4204 of file tv_play.cpp.

◆ StartChannelEditMode()

void TV::StartChannelEditMode ( PlayerContext ctx)
private

Starts channel editing mode.

Definition at line 10349 of file tv_play.cpp.

◆ HandleOSDChannelEdit()

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

Processes channel editing key.

Definition at line 10396 of file tv_play.cpp.

◆ ChannelEditAutoFill()

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

Automatically fills in as much information as possible.

Definition at line 10432 of file tv_play.cpp.

◆ ChannelEditXDSFill()

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

Definition at line 10442 of file tv_play.cpp.

◆ DialogIsVisible()

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

Definition at line 10860 of file tv_play.cpp.

◆ HandleOSDInfo()

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

Definition at line 10870 of file tv_play.cpp.

◆ ShowNoRecorderDialog()

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

Definition at line 12640 of file tv_play.cpp.

◆ ShowOSDAskAllow()

void TV::ShowOSDAskAllow ( PlayerContext ctx)
private

Definition at line 1787 of file tv_play.cpp.

◆ HandleOSDAskAllow()

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

Definition at line 2023 of file tv_play.cpp.

◆ AskAllowRecording()

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

Definition at line 1741 of file tv_play.cpp.

◆ ShowOSDCutpoint()

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

Definition at line 10185 of file tv_play.cpp.

◆ HandleOSDCutpoint()

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

Definition at line 10243 of file tv_play.cpp.

◆ StartProgramEditMode()

void TV::StartProgramEditMode ( PlayerContext ctx)
private

Starts Program Cut Map Editing mode.

Definition at line 10268 of file tv_play.cpp.

◆ ShowOSDAlreadyEditing()

void TV::ShowOSDAlreadyEditing ( PlayerContext ctx)
private

Definition at line 10286 of file tv_play.cpp.

◆ HandleOSDAlreadyEditing()

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

Definition at line 10307 of file tv_play.cpp.

◆ ShowOSDSleep()

void TV::ShowOSDSleep ( void  )
private

Definition at line 9092 of file tv_play.cpp.

◆ HandleOSDSleep()

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

Definition at line 9117 of file tv_play.cpp.

◆ SleepDialogTimeout()

void TV::SleepDialogTimeout ( void  )
private

Definition at line 9138 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 9156 of file tv_play.cpp.

◆ HandleOSDIdle()

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

Definition at line 9180 of file tv_play.cpp.

◆ IdleDialogTimeout()

void TV::IdleDialogTimeout ( void  )
private

Definition at line 9203 of file tv_play.cpp.

◆ ShowOSDStopWatchingRecording()

void TV::ShowOSDStopWatchingRecording ( PlayerContext ctx)
private

Definition at line 12941 of file tv_play.cpp.

◆ ShowOSDPromptDeleteRecording()

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

Definition at line 13000 of file tv_play.cpp.

◆ HandleOSDVideoExit()

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

Definition at line 13120 of file tv_play.cpp.

◆ StartOsdNavigation()

void TV::StartOsdNavigation ( PlayerContext ctx)
private

Definition at line 10379 of file tv_play.cpp.

◆ UpdateNavDialog()

void TV::UpdateNavDialog ( PlayerContext ctx)
private

Definition at line 6491 of file tv_play.cpp.

◆ ShowOSDMenu()

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

Definition at line 12247 of file tv_play.cpp.

◆ FillOSDMenuJumpRec()

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

Definition at line 12270 of file tv_play.cpp.

◆ PlaybackMenuShow()

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

Definition at line 12165 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 11143 of file tv_play.cpp.

◆ MenuItemDisplayPlayback()

bool TV::MenuItemDisplayPlayback ( const MenuItemContext c)
private

Definition at line 11308 of file tv_play.cpp.

◆ MenuItemDisplayCutlist()

bool TV::MenuItemDisplayCutlist ( const MenuItemContext c)
private

Definition at line 11158 of file tv_play.cpp.

◆ PlaybackMenuInit()

void TV::PlaybackMenuInit ( const MenuBase menu)
private

Definition at line 12001 of file tv_play.cpp.

◆ PlaybackMenuDeinit()

void TV::PlaybackMenuDeinit ( const MenuBase menu)
private

Definition at line 12157 of file tv_play.cpp.

◆ MenuStrings()

void TV::MenuStrings ( void  ) const
private

Definition at line 12201 of file tv_play.cpp.

◆ MenuLazyInit()

void TV::MenuLazyInit ( void *  field)
private

Definition at line 11992 of file tv_play.cpp.

◆ UpdateLCD()

void TV::UpdateLCD ( void  )
private

Definition at line 8363 of file tv_play.cpp.

◆ ShowLCDChannelInfo()

void TV::ShowLCDChannelInfo ( const PlayerContext ctx)
private

Definition at line 8372 of file tv_play.cpp.

◆ ShowLCDDVDInfo()

void TV::ShowLCDDVDInfo ( const PlayerContext ctx)
private

Definition at line 8409 of file tv_play.cpp.

◆ GetLastRecorderNum()

int TV::GetLastRecorderNum ( int  player_idx) const
private

Definition at line 1668 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 2114 of file tv_play.cpp.

◆ RestoreScreenSaver()

void TV::RestoreScreenSaver ( const PlayerContext ctx)
private

Definition at line 13263 of file tv_play.cpp.

◆ find_player_index()

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

Definition at line 5742 of file tv_play.cpp.

◆ GetLiveTVIndex()

QString TV::GetLiveTVIndex ( const PlayerContext ctx) const
private

Definition at line 13435 of file tv_play.cpp.

Friends And Related Function Documentation

◆ PlaybackBox

friend class PlaybackBox
friend

Definition at line 286 of file tv_play.h.

◆ GuideGrid

friend class GuideGrid
friend

Definition at line 287 of file tv_play.h.

◆ ProgFinder

friend class ProgFinder
friend

Definition at line 288 of file tv_play.h.

◆ ViewScheduled

friend class ViewScheduled
friend

Definition at line 289 of file tv_play.h.

◆ ScheduleEditor

friend class ScheduleEditor
friend

Definition at line 290 of file tv_play.h.

◆ TvPlayWindow

friend class TvPlayWindow
friend

Definition at line 291 of file tv_play.h.

◆ TVBrowseHelper

friend class TVBrowseHelper
friend

Definition at line 292 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 342 of file tv_play.h.

◆ RunPlaybackBoxPtr

EMBEDRETURNVOID TV::RunPlaybackBoxPtr = nullptr
staticprotected

function pointer for RunPlaybackBox in playbackbox.cpp

Definition at line 343 of file tv_play.h.

◆ RunViewScheduledPtr

EMBEDRETURNVOID TV::RunViewScheduledPtr = nullptr
staticprotected

function pointer for RunViewScheduled in viewscheduled.cpp

Definition at line 344 of file tv_play.h.

◆ RunProgramGuidePtr

EMBEDRETURNVOIDEPG TV::RunProgramGuidePtr = nullptr
staticprotected

function pointer for RunProgramGuide in guidegrid.cpp

Definition at line 345 of file tv_play.h.

◆ RunProgramFinderPtr

EMBEDRETURNVOIDFINDER TV::RunProgramFinderPtr = nullptr
staticprotected

function pointer for RunProgramFinder in progfind.cpp

Definition at line 346 of file tv_play.h.

◆ RunScheduleEditorPtr

EMBEDRETURNVOIDSCHEDIT TV::RunScheduleEditorPtr = nullptr
staticprotected

function pointer for RunScheduleEditor in scheduleeditor.cpp

Definition at line 347 of file tv_play.h.

◆ gTVLock

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

Definition at line 357 of file tv_play.h.

◆ gTV

TV * TV::gTV = nullptr
staticprivate

Definition at line 358 of file tv_play.h.

◆ m_baseFilters

QString TV::m_baseFilters
private

Definition at line 779 of file tv_play.h.

◆ m_dbChannelFormat

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

Definition at line 780 of file tv_play.h.

◆ m_dbIdleTimeout

uint TV::m_dbIdleTimeout {0}
private

Definition at line 781 of file tv_play.h.

◆ m_dbPlaybackExitPrompt

int TV::m_dbPlaybackExitPrompt {0}
private

Definition at line 782 of file tv_play.h.

◆ m_dbAutoexpireDefault

uint TV::m_dbAutoexpireDefault {0}
private

Definition at line 783 of file tv_play.h.

◆ m_dbAutoSetWatched

bool TV::m_dbAutoSetWatched {false}
private

Definition at line 784 of file tv_play.h.

◆ m_dbEndOfRecExitPrompt

bool TV::m_dbEndOfRecExitPrompt {false}
private

Definition at line 785 of file tv_play.h.

◆ m_dbJumpPreferOsd

bool TV::m_dbJumpPreferOsd {true}
private

Definition at line 786 of file tv_play.h.

◆ m_dbUseGuiSizeForTv

bool TV::m_dbUseGuiSizeForTv {false}
private

Definition at line 787 of file tv_play.h.

◆ m_dbClearSavedPosition

bool TV::m_dbClearSavedPosition {false}
private

Definition at line 788 of file tv_play.h.

◆ m_dbRunJobsOnRemote

bool TV::m_dbRunJobsOnRemote {false}
private

Definition at line 789 of file tv_play.h.

◆ m_dbContinueEmbedded

bool TV::m_dbContinueEmbedded {false}
private

Definition at line 790 of file tv_play.h.

◆ m_dbUseFixedSize

bool TV::m_dbUseFixedSize {true}
private

Definition at line 791 of file tv_play.h.

◆ m_dbBrowseAlways

bool TV::m_dbBrowseAlways {false}
private

Definition at line 792 of file tv_play.h.

◆ m_dbBrowseAllTuners

bool TV::m_dbBrowseAllTuners {false}
private

Definition at line 793 of file tv_play.h.

◆ m_dbUseChannelGroups

bool TV::m_dbUseChannelGroups {false}
private

Definition at line 794 of file tv_play.h.

◆ m_dbRememberLastChannelGroup

bool TV::m_dbRememberLastChannelGroup {false}
private

Definition at line 795 of file tv_play.h.

◆ m_dbChannelGroups

ChannelGroupList TV::m_dbChannelGroups
private

Definition at line 796 of file tv_play.h.

◆ m_autoCommercialSkip

CommSkipMode TV::m_autoCommercialSkip
private

Definition at line 798 of file tv_play.h.

◆ m_tryUnflaggedSkip

bool TV::m_tryUnflaggedSkip {false}
private

Definition at line 799 of file tv_play.h.

◆ m_smartForward

bool TV::m_smartForward {false}
private

Definition at line 801 of file tv_play.h.

◆ m_ffRewRepos

float TV::m_ffRewRepos {1.0F}
private

Definition at line 802 of file tv_play.h.

◆ m_ffRewReverse

bool TV::m_ffRewReverse {false}
private

Definition at line 803 of file tv_play.h.

◆ m_ffRewSpeeds

vector<int> TV::m_ffRewSpeeds
private

Definition at line 804 of file tv_play.h.

◆ m_vbimode

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

Definition at line 806 of file tv_play.h.

◆ m_ctorTime

QTime TV::m_ctorTime
private

Definition at line 808 of file tv_play.h.

◆ m_switchToInputId

uint TV::m_switchToInputId {0}
private

Definition at line 809 of file tv_play.h.

◆ m_initFromDBLock

QMutex TV::m_initFromDBLock
private

Definition at line 811 of file tv_play.h.

◆ m_initFromDBDone

bool TV::m_initFromDBDone
private

Definition at line 812 of file tv_play.h.

◆ m_initFromDBWait

QWaitCondition TV::m_initFromDBWait
private

Definition at line 813 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 817 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 818 of file tv_play.h.

◆ m_audiosyncAdjustment

bool TV::m_audiosyncAdjustment {false}
private

True if audiosync is turned on.

Definition at line 819 of file tv_play.h.

◆ m_subtitleZoomAdjustment

bool TV::m_subtitleZoomAdjustment {false}
private

True if subtitle zoom is turned on.

Definition at line 820 of file tv_play.h.

◆ m_subtitleDelayAdjustment

bool TV::m_subtitleDelayAdjustment {false}
private

True if subtitle delay is turned on.

Definition at line 821 of file tv_play.h.

◆ m_editMode

bool TV::m_editMode {false}
private

Are we in video editing mode.

Definition at line 822 of file tv_play.h.

◆ m_zoomMode

bool TV::m_zoomMode {false}
private

Definition at line 823 of file tv_play.h.

◆ m_sigMonMode

bool TV::m_sigMonMode {false}
private

Are we in signal monitoring mode?

Definition at line 824 of file tv_play.h.

◆ m_endOfRecording

bool TV::m_endOfRecording {false}
private

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

Definition at line 825 of file tv_play.h.

◆ m_requestDelete

bool TV::m_requestDelete {false}
private

User wants last video deleted.

Definition at line 826 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 827 of file tv_play.h.

◆ m_doSmartForward

bool TV::m_doSmartForward {false}
private

Definition at line 828 of file tv_play.h.

◆ m_queuedTranscode

bool TV::m_queuedTranscode {false}
private

Definition at line 829 of file tv_play.h.

◆ m_adjustingPicture

PictureAdjustType TV::m_adjustingPicture {kAdjustingPicture_None}
private

Picture attribute type to modify.

Definition at line 831 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 833 of file tv_play.h.

◆ m_askAllowPrograms

QMap<QString,AskProgramInfo> TV::m_askAllowPrograms
private

Definition at line 836 of file tv_play.h.

◆ m_askAllowLock

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

Definition at line 837 of file tv_play.h.

◆ m_changePxP

MythDeque<QString> TV::m_changePxP
private

Definition at line 839 of file tv_play.h.

◆ m_progListsLock

QMutex TV::m_progListsLock
private

Definition at line 840 of file tv_play.h.

◆ m_progLists

QMap<QString,ProgramList> TV::m_progLists
private

Definition at line 841 of file tv_play.h.

◆ m_chanEditMapLock

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

Lock for chanEditMap and ddMap.

Definition at line 843 of file tv_play.h.

◆ m_chanEditMap

InfoMap TV::m_chanEditMap
private

Channel Editing initial map.

Definition at line 844 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 848 of file tv_play.h.

◆ m_sleepIndex

uint TV::m_sleepIndex {0}
private

Index into sleep_times.

Definition at line 849 of file tv_play.h.

◆ m_sleepTimerTimeout

uint TV::m_sleepTimerTimeout
private

Current sleep timeout in msec.

Definition at line 850 of file tv_play.h.

◆ m_sleepTimerId

int TV::m_sleepTimerId {0}
private

Timer for turning off playback.

Definition at line 851 of file tv_play.h.

◆ m_sleepDialogTimerId

int TV::m_sleepDialogTimerId {0}
private

Timer for sleep dialog.

Definition at line 852 of file tv_play.h.

◆ m_idleTimerId

int TV::m_idleTimerId {0}
private

Timer for turning off playback after idle period.

Definition at line 854 of file tv_play.h.

◆ m_idleDialogTimerId

int TV::m_idleDialogTimerId {0}
private

Timer for idle dialog.

Definition at line 855 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 858 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 862 of file tv_play.h.

◆ m_asInputMode

bool TV::m_asInputMode {false}
private

Are we in Arbitrary seek input mode?

Definition at line 866 of file tv_play.h.

◆ m_queuedInput

QString TV::m_queuedInput
private

Input key presses queued up so far...

Definition at line 870 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 872 of file tv_play.h.

◆ m_queuedChanID

uint TV::m_queuedChanID
private

Queued ChanID (from EPG channel selector)

Definition at line 874 of file tv_play.h.

◆ m_initialChanID

uint TV::m_initialChanID {0}
private

Initial chanid override for Live TV.

Definition at line 876 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 883 of file tv_play.h.

◆ m_screenPressKeyMapPlayback

QList<QKeyEvent> TV::m_screenPressKeyMapPlayback
private

Definition at line 884 of file tv_play.h.

◆ m_screenPressKeyMapLiveTV

QList<QKeyEvent> TV::m_screenPressKeyMapLiveTV
private

Definition at line 885 of file tv_play.h.

◆ m_lockTimer

QTime TV::m_lockTimer
private

Definition at line 888 of file tv_play.h.

◆ m_lockTimerOn

bool TV::m_lockTimerOn {false}
private

Definition at line 889 of file tv_play.h.

◆ m_lastLockSeenTime

QDateTime TV::m_lastLockSeenTime
private

Definition at line 890 of file tv_play.h.

◆ m_browseHelper

TVBrowseHelper* TV::m_browseHelper {nullptr}
private

Definition at line 893 of file tv_play.h.

◆ m_lastProgramLock

QMutex TV::m_lastProgramLock
mutableprivate

Definition at line 897 of file tv_play.h.

◆ m_lastProgram

ProgramInfo* TV::m_lastProgram {nullptr}
private

last program played with this player

Definition at line 898 of file tv_play.h.

◆ m_inPlaylist

bool TV::m_inPlaylist {false}
private

show is part of a playlist

Definition at line 899 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 900 of file tv_play.h.

◆ m_jumpToProgramPIPState

PIPState TV::m_jumpToProgramPIPState {kPIPOff}
private

Definition at line 903 of file tv_play.h.

◆ m_jumpToProgram

bool TV::m_jumpToProgram {false}
private

Definition at line 904 of file tv_play.h.

◆ m_player

vector<PlayerContext*> TV::m_player
private

Definition at line 907 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 909 of file tv_play.h.

◆ m_playerLock

QReadWriteLock TV::m_playerLock
mutableprivate

lock on player and playerActive changes

Definition at line 911 of file tv_play.h.

◆ m_noHardwareDecoders

bool TV::m_noHardwareDecoders {false}
private

Definition at line 913 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 917 of file tv_play.h.

◆ m_osdLctx

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

Definition at line 920 of file tv_play.h.

◆ m_lcdTitle

QString TV::m_lcdTitle
private

Definition at line 923 of file tv_play.h.

◆ m_lcdSubtitle

QString TV::m_lcdSubtitle
private

Definition at line 924 of file tv_play.h.

◆ m_lcdCallsign

QString TV::m_lcdCallsign
private

Definition at line 925 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 928 of file tv_play.h.

◆ m_playerBounds

QRect TV::m_playerBounds
private

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

Definition at line 930 of file tv_play.h.

◆ m_savedGuiBounds

QRect TV::m_savedGuiBounds
private

Definition at line 932 of file tv_play.h.

◆ m_weDisabledGUI

bool TV::m_weDisabledGUI {false}
private

true if this instance disabled MythUI drawing.

Definition at line 934 of file tv_play.h.

◆ m_disableDrawUnusedRects

bool TV::m_disableDrawUnusedRects {false}
private

true if video chromakey and frame should not be drawn

Definition at line 936 of file tv_play.h.

◆ m_isEmbedded

bool TV::m_isEmbedded {false}
private

are we currently embedded

Definition at line 939 of file tv_play.h.

Referenced by StartTV().

◆ m_ignoreKeyPresses

bool TV::m_ignoreKeyPresses {false}
private

should we ignore keypresses

Definition at line 940 of file tv_play.h.

◆ m_savedPause

vector<bool> TV::m_savedPause
private

saved pause state before embedding

Definition at line 941 of file tv_play.h.

◆ m_suspended

bool TV::m_suspended {false}
private

are we currently suspended

Definition at line 942 of file tv_play.h.

◆ m_suspendedPause

vector<bool> TV::m_suspendedPause
private

saved pause state before suspending

Definition at line 943 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 949 of file tv_play.h.

Referenced by TVBrowseHelper::run().

◆ m_channelGroupId

volatile int TV::m_channelGroupId
private

Definition at line 950 of file tv_play.h.

Referenced by TVBrowseHelper::run().

◆ m_channelGroupChannelList

ChannelInfoList TV::m_channelGroupChannelList
private

Definition at line 951 of file tv_play.h.

Referenced by TVBrowseHelper::run().

◆ networkControlCommands

MythDeque<QString> TV::networkControlCommands
private

Definition at line 954 of file tv_play.h.

◆ m_timerIdLock

QMutex TV::m_timerIdLock
mutableprivate

Definition at line 959 of file tv_play.h.

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

◆ m_lcdTimerId

volatile int TV::m_lcdTimerId {0}
private

Definition at line 960 of file tv_play.h.

◆ m_lcdVolumeTimerId

volatile int TV::m_lcdVolumeTimerId {0}
private

Definition at line 961 of file tv_play.h.

◆ m_networkControlTimerId

volatile int TV::m_networkControlTimerId {0}
private

Definition at line 962 of file tv_play.h.

◆ m_jumpMenuTimerId

volatile int TV::m_jumpMenuTimerId {0}
private

Definition at line 963 of file tv_play.h.

◆ m_pipChangeTimerId

volatile int TV::m_pipChangeTimerId {0}
private

Definition at line 964 of file tv_play.h.

◆ m_switchToInputTimerId

volatile int TV::m_switchToInputTimerId {0}
private

Definition at line 965 of file tv_play.h.

◆ m_ccInputTimerId

volatile int TV::m_ccInputTimerId {0}
private

Definition at line 966 of file tv_play.h.

◆ m_asInputTimerId

volatile int TV::m_asInputTimerId {0}
private

Definition at line 967 of file tv_play.h.

◆ m_queueInputTimerId

volatile int TV::m_queueInputTimerId {0}
private

Definition at line 968 of file tv_play.h.

◆ m_browseTimerId

volatile int TV::m_browseTimerId {0}
private

Definition at line 969 of file tv_play.h.

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

◆ m_updateOSDPosTimerId

volatile int TV::m_updateOSDPosTimerId {0}
private

Definition at line 970 of file tv_play.h.

◆ m_updateOSDDebugTimerId

volatile int TV::m_updateOSDDebugTimerId {0}
private

Definition at line 971 of file tv_play.h.

◆ m_endOfPlaybackTimerId

volatile int TV::m_endOfPlaybackTimerId {0}
private

Definition at line 972 of file tv_play.h.

◆ m_embedCheckTimerId

volatile int TV::m_embedCheckTimerId {0}
private

Definition at line 973 of file tv_play.h.

◆ m_endOfRecPromptTimerId

volatile int TV::m_endOfRecPromptTimerId {0}
private

Definition at line 974 of file tv_play.h.

◆ m_videoExitDialogTimerId

volatile int TV::m_videoExitDialogTimerId {0}
private

Definition at line 975 of file tv_play.h.

◆ m_pseudoChangeChanTimerId

volatile int TV::m_pseudoChangeChanTimerId {0}
private

Definition at line 976 of file tv_play.h.

◆ m_speedChangeTimerId

volatile int TV::m_speedChangeTimerId {0}
private

Definition at line 977 of file tv_play.h.

◆ m_errorRecoveryTimerId

volatile int TV::m_errorRecoveryTimerId {0}
private

Definition at line 978 of file tv_play.h.

◆ m_exitPlayerTimerId

volatile int TV::m_exitPlayerTimerId {0}
mutableprivate

Definition at line 979 of file tv_play.h.

◆ m_saveLastPlayPosTimerId

volatile int TV::m_saveLastPlayPosTimerId {0}
private

Definition at line 980 of file tv_play.h.

◆ m_stateChangeTimerId

TimerContextMap TV::m_stateChangeTimerId
private

Definition at line 981 of file tv_play.h.

◆ m_signalMonitorTimerId

TimerContextMap TV::m_signalMonitorTimerId
private

Definition at line 982 of file tv_play.h.

◆ m_tvmCtx

PlayerContext* TV::m_tvmCtx {nullptr}
private

Definition at line 985 of file tv_play.h.

◆ m_tvmOsd

OSD* TV::m_tvmOsd {nullptr}
private

Definition at line 986 of file tv_play.h.

◆ m_tvmTracks

QStringList TV::m_tvmTracks[kTrackTypeCount]
private

Definition at line 992 of file tv_play.h.

◆ m_tvmCurtrack

int TV::m_tvmCurtrack[kTrackTypeCount]
private

Definition at line 993 of file tv_play.h.

◆ m_tvmAvsync

bool TV::m_tvmAvsync
private

Definition at line 996 of file tv_play.h.

◆ m_tvmVisual

bool TV::m_tvmVisual
private

Definition at line 997 of file tv_play.h.

◆ m_tvmActive

QString TV::m_tvmActive
private

Definition at line 998 of file tv_play.h.

◆ m_tvmUpmixing

bool TV::m_tvmUpmixing
private

Definition at line 999 of file tv_play.h.

◆ m_tvmCanUpmix

bool TV::m_tvmCanUpmix
private

Definition at line 1000 of file tv_play.h.

◆ m_tvmVisualisers

QStringList TV::m_tvmVisualisers
private

Definition at line 1001 of file tv_play.h.

◆ m_tvmAspectOverride

AspectOverrideMode TV::m_tvmAspectOverride
private

Definition at line 1004 of file tv_play.h.

◆ m_tvmAdjustFill

AdjustFillMode TV::m_tvmAdjustFill
private

Definition at line 1005 of file tv_play.h.

◆ m_tvmFillAutoDetect

bool TV::m_tvmFillAutoDetect
private

Definition at line 1006 of file tv_play.h.

◆ m_tvmSup

uint TV::m_tvmSup
private

Definition at line 1007 of file tv_play.h.

◆ m_tvmStudioLevels

bool TV::m_tvmStudioLevels
private

Definition at line 1008 of file tv_play.h.

◆ m_tvmStereoAllowed

bool TV::m_tvmStereoAllowed
private

Definition at line 1009 of file tv_play.h.

◆ m_tvmStereoMode

StereoscopicMode TV::m_tvmStereoMode
private

Definition at line 1010 of file tv_play.h.

◆ m_tvmScanType

FrameScanType TV::m_tvmScanType
private

Definition at line 1011 of file tv_play.h.

◆ m_tvmScanTypeUnlocked

FrameScanType TV::m_tvmScanTypeUnlocked
private

Definition at line 1012 of file tv_play.h.

◆ m_tvmScanTypeLocked

bool TV::m_tvmScanTypeLocked
private

Definition at line 1013 of file tv_play.h.

◆ m_tvmCurMode

QString TV::m_tvmCurMode
private

Definition at line 1014 of file tv_play.h.

◆ m_tvmDeinterlacers

QStringList TV::m_tvmDeinterlacers
private

Definition at line 1015 of file tv_play.h.

◆ m_tvmCurrentDeinterlacer

QString TV::m_tvmCurrentDeinterlacer
private

Definition at line 1016 of file tv_play.h.

◆ m_tvmDoubleRate

bool TV::m_tvmDoubleRate
private

Definition at line 1017 of file tv_play.h.

◆ m_tvmSpeedX100

int TV::m_tvmSpeedX100
private

Definition at line 1020 of file tv_play.h.

◆ m_tvmState

TVState TV::m_tvmState
private

Definition at line 1021 of file tv_play.h.

◆ m_tvmIsRecording

bool TV::m_tvmIsRecording
private

Definition at line 1022 of file tv_play.h.

◆ m_tvmIsRecorded

bool TV::m_tvmIsRecorded
private

Definition at line 1023 of file tv_play.h.

◆ m_tvmIsVideo

bool TV::m_tvmIsVideo
private

Definition at line 1024 of file tv_play.h.

◆ m_tvmCurSkip

CommSkipMode TV::m_tvmCurSkip
private

Definition at line 1025 of file tv_play.h.

◆ m_tvmIsPaused

bool TV::m_tvmIsPaused
private

Definition at line 1026 of file tv_play.h.

◆ m_tvmAllowPIP

bool TV::m_tvmAllowPIP
private

Definition at line 1027 of file tv_play.h.

◆ m_tvmAllowPBP

bool TV::m_tvmAllowPBP
private

Definition at line 1028 of file tv_play.h.

◆ m_tvmHasPIP

bool TV::m_tvmHasPIP
private

Definition at line 1029 of file tv_play.h.

◆ m_tvmHasPBP

bool TV::m_tvmHasPBP
private

Definition at line 1030 of file tv_play.h.

◆ m_tvmFreeRecorderCount

int TV::m_tvmFreeRecorderCount
private

Definition at line 1031 of file tv_play.h.

◆ m_tvmIsDvd

bool TV::m_tvmIsDvd
private

Definition at line 1032 of file tv_play.h.

◆ m_tvmIsBd

bool TV::m_tvmIsBd
private

Definition at line 1033 of file tv_play.h.

◆ m_tvmJump

bool TV::m_tvmJump
private

Definition at line 1034 of file tv_play.h.

◆ m_tvmIsLiveTv

bool TV::m_tvmIsLiveTv
private

Definition at line 1035 of file tv_play.h.

◆ m_tvmPreviousChan

bool TV::m_tvmPreviousChan
private

Definition at line 1036 of file tv_play.h.

◆ m_tvmNumChapters

int TV::m_tvmNumChapters
private

Definition at line 1039 of file tv_play.h.

◆ m_tvmCurrentChapter

int TV::m_tvmCurrentChapter
private

Definition at line 1040 of file tv_play.h.

◆ m_tvmChapterTimes

QList<long long> TV::m_tvmChapterTimes
private

Definition at line 1041 of file tv_play.h.

◆ m_tvmNumAngles

int TV::m_tvmNumAngles
private

Definition at line 1042 of file tv_play.h.

◆ m_tvmCurrentAngle

int TV::m_tvmCurrentAngle
private

Definition at line 1043 of file tv_play.h.

◆ m_tvmNumTitles

int TV::m_tvmNumTitles
private

Definition at line 1044 of file tv_play.h.

◆ m_tvmCurrentTitle

int TV::m_tvmCurrentTitle
private

Definition at line 1045 of file tv_play.h.

◆ m_tvmSubsCapMode

uint TV::m_tvmSubsCapMode
private

Definition at line 1047 of file tv_play.h.

◆ m_tvmSubsHaveText

bool TV::m_tvmSubsHaveText
private

Definition at line 1048 of file tv_play.h.

◆ m_tvmSubsForcedOn

bool TV::m_tvmSubsForcedOn
private

Definition at line 1049 of file tv_play.h.

◆ m_tvmSubsEnabled

bool TV::m_tvmSubsEnabled
private

Definition at line 1050 of file tv_play.h.

◆ m_tvmSubsHaveSubs

bool TV::m_tvmSubsHaveSubs
private

Definition at line 1051 of file tv_play.h.

◆ m_tvmIsOn

bool TV::m_tvmIsOn
private

Definition at line 1053 of file tv_play.h.

◆ m_tvmTranscoding

bool TV::m_tvmTranscoding
private

Definition at line 1054 of file tv_play.h.

◆ m_tvmJumprecBackHack

QVariant TV::m_tvmJumprecBackHack
private

Definition at line 1056 of file tv_play.h.

◆ m_playbackMenu

MenuBase TV::m_playbackMenu
private

Definition at line 1059 of file tv_play.h.

◆ m_playbackCompactMenu

MenuBase TV::m_playbackCompactMenu
private

Definition at line 1060 of file tv_play.h.

◆ m_cutlistMenu

MenuBase TV::m_cutlistMenu
private

Definition at line 1061 of file tv_play.h.

◆ m_cutlistCompactMenu

MenuBase TV::m_cutlistCompactMenu
private

Definition at line 1062 of file tv_play.h.

◆ kInitFFRWSpeed

const int TV::kInitFFRWSpeed = 0
static

1x, default to normal speed

Definition at line 1066 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 1067 of file tv_play.h.

◆ kNextSource

const uint TV::kNextSource = 1
static

Definition at line 1068 of file tv_play.h.

◆ kPreviousSource

const uint TV::kPreviousSource = 2
static

Definition at line 1069 of file tv_play.h.

◆ kMaxPIPCount

const uint TV::kMaxPIPCount = 4
static

Definition at line 1070 of file tv_play.h.

◆ kMaxPBPCount

const uint TV::kMaxPBPCount = 2
static

Timeout for entry modes in msec.

Definition at line 1071 of file tv_play.h.

◆ kInputModeTimeout

const uint TV::kInputModeTimeout = 5000
static

Definition at line 1074 of file tv_play.h.

◆ kLCDTimeout

const uint TV::kLCDTimeout = 1000
static

Timeout for updating LCD info in msec.

Definition at line 1076 of file tv_play.h.

◆ kBrowseTimeout

const uint TV::kBrowseTimeout = 30000
static

Timeout for browse mode exit in msec.

Definition at line 1078 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 1080 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 1082 of file tv_play.h.

◆ kSleepTimerDialogTimeout

const uint TV::kSleepTimerDialogTimeout = 45000
static

How long to display sleep timer dialog in msec.

Definition at line 1084 of file tv_play.h.

◆ kIdleTimerDialogTimeout

const uint TV::kIdleTimerDialogTimeout = 45000
static

How long to display idle timer dialog in seconds.

Definition at line 1086 of file tv_play.h.

◆ kVideoExitDialogTimeout

const uint TV::kVideoExitDialogTimeout = 120000
static

How long to display idle timer dialog in msec.

Definition at line 1088 of file tv_play.h.

◆ kEndOfPlaybackCheckFrequency

const uint TV::kEndOfPlaybackCheckFrequency = 250
static

Definition at line 1090 of file tv_play.h.

◆ kEmbedCheckFrequency

const uint TV::kEmbedCheckFrequency = 250
static

Definition at line 1091 of file tv_play.h.

◆ kSpeedChangeCheckFrequency

const uint TV::kSpeedChangeCheckFrequency = 250
static

Definition at line 1092 of file tv_play.h.

◆ kErrorRecoveryCheckFrequency

const uint TV::kErrorRecoveryCheckFrequency = 250
static

Definition at line 1093 of file tv_play.h.

◆ kEndOfRecPromptCheckFrequency

const uint TV::kEndOfRecPromptCheckFrequency = 250
static

Definition at line 1094 of file tv_play.h.

◆ kEndOfPlaybackFirstCheckTimer

const uint TV::kEndOfPlaybackFirstCheckTimer = 5000
static

Definition at line 1095 of file tv_play.h.

◆ kSaveLastPlayPosTimeout

const uint TV::kSaveLastPlayPosTimeout = 30000
static

Definition at line 1096 of file tv_play.h.


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