MythTV  master
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
PlayerContext Class Reference

#include <playercontext.h>

Collaboration diagram for PlayerContext:
Collaboration graph
[legend]

Public Member Functions

 PlayerContext (QString inUseID=QString("Unknown"))
 
 ~PlayerContext ()
 
void TeardownPlayer (void)
 
void StopPlaying (void) const
 
void UpdateTVChain (const QStringList &data=QStringList())
 
bool ReloadTVChain (void)
 
void PushPreviousChannel (void)
 most recently selected channel to the previous channel list More...
 
QString PopPreviousChannel (void)
 
void ChangeState (TVState newState)
 Puts a state change on the nextState queue. More...
 
void ForceNextStateNone (void)
 Removes any pending state changes, and puts kState_None on the queue. More...
 
TVState DequeueNextState (void)
 
bool HandlePlayerSpeedChangeFFRew (void)
 
bool HandlePlayerSpeedChangeEOF (void)
 
void LockState (void) const
 
void UnlockState (void) const
 
void LockPlayingInfo (const char *file, int line) const
 
void UnlockPlayingInfo (const char *file, int line) const
 
void LockDeletePlayer (const char *file, int line) const
 prevent MythPlayer from being deleted used to ensure player can only be deleted after osd in TV() is unlocked. More...
 
void UnlockDeletePlayer (const char *file, int line) const
 allow player to be deleted. More...
 
void SetInitialTVState (bool islivetv)
 determine initial tv state and playgroup for the recording More...
 
void SetPlayer (MythPlayer *newplayer)
 
void SetRecorder (RemoteEncoder *rec)
 
void SetTVChain (LiveTVChain *chain)
 
void SetRingBuffer (MythMediaBuffer *Buffer)
 
void SetPlayingInfo (const ProgramInfo *info)
 assign programinfo to the context More...
 
void SetPlayGroup (const QString &group)
 
void SetPseudoLiveTV (const ProgramInfo *pi, PseudoState new_state)
 
void SetPlayerChangingBuffers (bool val)
 
QString GetPreviousChannel (void) const
 
uint GetCardID (void) const
 
QString GetFilters (const QString &baseFilters) const
 
QString GetPlayMessage (void) const
 
TVState GetState (void) const
 
bool GetPlayingInfoMap (InfoMap &infoMap) const
 
bool IsPlayerChangingBuffers (void) const
 
bool HasPlayer (void) const
 
bool IsPlayerErrored (void) const
 
bool IsPlayerPlaying (void) const
 
bool IsRecorderErrored (void) const
 
bool InStateChange (void) const
 
bool IsErrored (void) const
 This is set if the player encountered some irrecoverable error. More...
 
bool IsSameProgram (const ProgramInfo &p) const
 

Public Attributes

QString m_recUsage
 
MythPlayerm_player {nullptr}
 
volatile bool m_playerUnsafe {false}
 
RemoteEncoderm_recorder {nullptr}
 
LiveTVChainm_tvchain {nullptr}
 
MythMediaBufferm_buffer {nullptr}
 
ProgramInfom_playingInfo {nullptr}
 Currently playing info. More...
 
std::chrono::seconds m_playingLen {0s}
 Initial CalculateLength() More...
 
QDateTime m_playingRecStart
 
int m_lastCardid {-1}
 CardID of current/last recorder. More...
 
int m_ffRewState {0}
 0 == normal, +1 == fast forward, -1 == rewind More...
 
int m_ffRewIndex {0}
 Index into m_ffRewSpeeds for FF and Rewind speeds. More...
 
int m_ffRewSpeed {0}
 Caches value of m_ffRewSpeeds[m_ffRewIndex]. More...
 
TVState m_playingState {kState_None}
 
bool m_errored {false}
 
StringDeque m_prevChan
 Previous channels. More...
 
ProgramInfom_pseudoLiveTVRec {nullptr}
 
PseudoState m_pseudoLiveTVState {kPseudoNormalLiveTV}
 
std::chrono::seconds m_fftime {0s}
 
std::chrono::seconds m_rewtime {0s}
 
std::chrono::minutes m_jumptime {0min}
 
float m_tsNormal {1.0F}
 Time stretch speed, 1.0F for normal playback. More...
 
float m_tsAlt {1.5F}
 
QRecursiveMutex m_playingInfoLock
 
QRecursiveMutex m_deletePlayerLock
 
QRecursiveMutex m_stateLock
 
QStringList m_lastSignalMsg
 
MythTimer m_lastSignalMsgTime
 
InfoMap m_lastSignalUIInfo
 
MythTimer m_lastSignalUIInfoTime
 
MythDeque< TVStatem_nextState
 

Static Public Attributes

static constexpr std::chrono::milliseconds kSMExitTimeout { 2s }
 Timeout after last Signal Monitor message for ignoring OSD when exiting. More...
 
static constexpr uint kMaxChannelHistory { 30 }
 

Detailed Description

Definition at line 53 of file playercontext.h.

Constructor & Destructor Documentation

◆ PlayerContext()

PlayerContext::PlayerContext ( QString  inUseID = QString("Unknown"))
explicit

Definition at line 27 of file playercontext.cpp.

◆ ~PlayerContext()

PlayerContext::~PlayerContext ( )

Definition at line 35 of file playercontext.cpp.

Member Function Documentation

◆ TeardownPlayer()

void PlayerContext::TeardownPlayer ( void  )

Definition at line 41 of file playercontext.cpp.

Referenced by TV::ScheduleStateChange(), ~PlayerContext(), and TV::~TV().

◆ StopPlaying()

void PlayerContext::StopPlaying ( void  ) const

Definition at line 146 of file playercontext.cpp.

Referenced by SetPlayer(), TV::StartPlaying(), TV::StopStuff(), and TV::SwitchInputs().

◆ UpdateTVChain()

void PlayerContext::UpdateTVChain ( const QStringList &  data = QStringList())

Definition at line 152 of file playercontext.cpp.

Referenced by TV::customEvent().

◆ ReloadTVChain()

bool PlayerContext::ReloadTVChain ( void  )

◆ PushPreviousChannel()

void PlayerContext::PushPreviousChannel ( void  )

most recently selected channel to the previous channel list

Definition at line 181 of file playercontext.cpp.

Referenced by TV::ChangeChannel(), PopPreviousChannel(), TV::SwitchInputs(), and TV::UnpauseLiveTV().

◆ PopPreviousChannel()

QString PlayerContext::PopPreviousChannel ( void  )

Definition at line 200 of file playercontext.cpp.

Referenced by TV::PopPreviousChannel().

◆ ChangeState()

void PlayerContext::ChangeState ( TVState  newState)

Puts a state change on the nextState queue.

Definition at line 312 of file playercontext.cpp.

Referenced by TV::customEvent(), and SetInitialTVState().

◆ ForceNextStateNone()

void PlayerContext::ForceNextStateNone ( void  )

Removes any pending state changes, and puts kState_None on the queue.

Definition at line 327 of file playercontext.cpp.

Referenced by TV::ForceNextStateNone().

◆ DequeueNextState()

TVState PlayerContext::DequeueNextState ( void  )

Definition at line 318 of file playercontext.cpp.

Referenced by TV::HandleStateChange().

◆ HandlePlayerSpeedChangeFFRew()

bool PlayerContext::HandlePlayerSpeedChangeFFRew ( void  )

Definition at line 115 of file playercontext.cpp.

Referenced by TV::HandleSpeedChangeTimerEvent().

◆ HandlePlayerSpeedChangeEOF()

bool PlayerContext::HandlePlayerSpeedChangeEOF ( void  )

Definition at line 128 of file playercontext.cpp.

Referenced by TV::HandleSpeedChangeTimerEvent().

◆ LockState()

void PlayerContext::LockState ( void  ) const

Definition at line 290 of file playercontext.cpp.

Referenced by TV::HandleStateChange().

◆ UnlockState()

void PlayerContext::UnlockState ( void  ) const

Definition at line 295 of file playercontext.cpp.

Referenced by TV::HandleStateChange().

◆ LockPlayingInfo()

void PlayerContext::LockPlayingInfo ( const char *  file,
int  line 
) const

Definition at line 234 of file playercontext.cpp.

Referenced by TVBrowseHelper::BrowseStart(), TV::ChangeChannel(), TV::CommitQueuedInput(), TV::customEvent(), MythPlayerEditorUI::DisableEdit(), TV::DoEditSchedule(), TV::DoQueueTranscode(), MythPlayerEditorUI::EnableEdit(), MythPlayerUI::EventLoop(), MythPlayerUI::EventStart(), MythBDPlayer::EventStart(), MythDVDPlayer::EventStart(), MythPlayerUI::FileChanged(), TV::FillOSDMenuJumpRec(), MythDVDPlayer::GetBookmark(), MythBDPlayer::GetBookmark(), MythPlayer::GetBookmark(), GetFilters(), GetPlayingInfoMap(), MythCommFlagPlayer::GetRawVideoFrame(), TV::GetRecordingGroup(), TV::GetStatus(), TV::HandleOSDAlreadyEditing(), TV::HandleStateChange(), TV::IsBookmarkAllowed(), TV::IsDeleteAllowed(), DeleteMap::IsFileEditing(), MythPlayer::IsNearEnd(), IsSameProgram(), DeleteMap::IsSaved(), TV::ITVRestart(), DeleteMap::LoadAutoSaveMap(), CommBreakMap::LoadMap(), DeleteMap::LoadMap(), MythPlayer::OpenDummy(), MythPlayer::OpenFile(), TV::PlaybackMenuInit(), TV::ProcessNetworkControlCommand(), TV::QuickRecord(), MythCommFlagPlayer::RebuildSeekTable(), MythCCExtractorPlayer::run(), DeleteMap::SaveMap(), MythPlayerUI::SetBookmark(), MythBDPlayer::SetBookmark(), MythDVDPlayer::SetBookmark(), DeleteMap::SetFileEditing(), SetInitialTVState(), MythPlayerUI::SetLastPlayPosition(), MythPlayer::SetPlayingInfo(), MythPlayerUI::SetWatched(), TV::ShowLCDChannelInfo(), TV::ShowOSDPromptDeleteRecording(), TV::ShowOSDStopWatchingRecording(), TV::StartProgramEditMode(), TV::SwitchInputs(), TV::ToggleAutoExpire(), MythTranscodePlayer::TranscodeGetNextFrame(), and DeleteMap::UpdateOSD().

◆ UnlockPlayingInfo()

void PlayerContext::UnlockPlayingInfo ( const char *  file,
int  line 
) const

Definition at line 246 of file playercontext.cpp.

Referenced by TVBrowseHelper::BrowseStart(), TV::ChangeChannel(), TV::CommitQueuedInput(), TV::customEvent(), MythPlayerEditorUI::DisableEdit(), TV::DoEditSchedule(), TV::DoQueueTranscode(), MythPlayerEditorUI::EnableEdit(), MythPlayerUI::EventLoop(), MythPlayerUI::EventStart(), MythBDPlayer::EventStart(), MythDVDPlayer::EventStart(), MythPlayerUI::FileChanged(), TV::FillOSDMenuJumpRec(), MythDVDPlayer::GetBookmark(), MythBDPlayer::GetBookmark(), MythPlayer::GetBookmark(), GetFilters(), GetPlayingInfoMap(), MythCommFlagPlayer::GetRawVideoFrame(), TV::GetRecordingGroup(), TV::GetStatus(), TV::HandleOSDAlreadyEditing(), TV::HandleStateChange(), TV::IsBookmarkAllowed(), TV::IsDeleteAllowed(), DeleteMap::IsFileEditing(), MythPlayer::IsNearEnd(), IsSameProgram(), DeleteMap::IsSaved(), TV::ITVRestart(), DeleteMap::LoadAutoSaveMap(), CommBreakMap::LoadMap(), DeleteMap::LoadMap(), MythPlayer::OpenDummy(), MythPlayer::OpenFile(), TV::PlaybackMenuInit(), TV::ProcessNetworkControlCommand(), TV::QuickRecord(), MythCommFlagPlayer::RebuildSeekTable(), MythCCExtractorPlayer::run(), DeleteMap::SaveMap(), MythPlayerUI::SetBookmark(), MythBDPlayer::SetBookmark(), MythDVDPlayer::SetBookmark(), DeleteMap::SetFileEditing(), SetInitialTVState(), MythPlayerUI::SetLastPlayPosition(), MythPlayer::SetPlayingInfo(), MythPlayerUI::SetWatched(), TV::ShowLCDChannelInfo(), TV::ShowOSDPromptDeleteRecording(), TV::ShowOSDStopWatchingRecording(), TV::StartProgramEditMode(), TV::SwitchInputs(), TV::ToggleAutoExpire(), MythTranscodePlayer::TranscodeGetNextFrame(), and DeleteMap::UpdateOSD().

◆ LockDeletePlayer()

void PlayerContext::LockDeletePlayer ( const char *  file,
int  line 
) const

◆ UnlockDeletePlayer()

void PlayerContext::UnlockDeletePlayer ( const char *  file,
int  line 
) const

◆ SetInitialTVState()

void PlayerContext::SetInitialTVState ( bool  islivetv)

determine initial tv state and playgroup for the recording

Parameters
islivetvtrue if recording is livetv

Definition at line 59 of file playercontext.cpp.

Referenced by TV::LiveTV(), and TV::Playback().

◆ SetPlayer()

void PlayerContext::SetPlayer ( MythPlayer newplayer)

◆ SetRecorder()

void PlayerContext::SetRecorder ( RemoteEncoder rec)

◆ SetTVChain()

void PlayerContext::SetTVChain ( LiveTVChain chain)

Definition at line 479 of file playercontext.cpp.

Referenced by SetInitialTVState(), and TeardownPlayer().

◆ SetRingBuffer()

void PlayerContext::SetRingBuffer ( MythMediaBuffer Buffer)

◆ SetPlayingInfo()

void PlayerContext::SetPlayingInfo ( const ProgramInfo info)

assign programinfo to the context

Definition at line 508 of file playercontext.cpp.

Referenced by TV::Playback(), ReloadTVChain(), MythPlayer::SetPlayingInfo(), TeardownPlayer(), and VideoPerformanceTest::Test().

◆ SetPlayGroup()

void PlayerContext::SetPlayGroup ( const QString &  group)

Definition at line 532 of file playercontext.cpp.

Referenced by SetInitialTVState().

◆ SetPseudoLiveTV()

void PlayerContext::SetPseudoLiveTV ( const ProgramInfo pi,
PseudoState  new_state 
)

Definition at line 541 of file playercontext.cpp.

Referenced by TV::customEvent(), TV::QuickRecord(), and TV::SwitchInputs().

◆ SetPlayerChangingBuffers()

void PlayerContext::SetPlayerChangingBuffers ( bool  val)
inline

◆ GetPreviousChannel()

QString PlayerContext::GetPreviousChannel ( void  ) const

Definition at line 220 of file playercontext.cpp.

Referenced by TV::PlaybackMenuInit(), and TV::ShowPreviousChannel().

◆ GetCardID()

uint PlayerContext::GetCardID ( void  ) const
inline

◆ GetFilters()

QString PlayerContext::GetFilters ( const QString &  baseFilters) const

Definition at line 391 of file playercontext.cpp.

◆ GetPlayMessage()

QString PlayerContext::GetPlayMessage ( void  ) const

◆ GetState()

TVState PlayerContext::GetState ( void  ) const

◆ GetPlayingInfoMap()

bool PlayerContext::GetPlayingInfoMap ( InfoMap infoMap) const

◆ IsPlayerChangingBuffers()

bool PlayerContext::IsPlayerChangingBuffers ( void  ) const
inline

◆ HasPlayer()

bool PlayerContext::HasPlayer ( void  ) const

◆ IsPlayerErrored()

bool PlayerContext::IsPlayerErrored ( void  ) const

Definition at line 103 of file playercontext.cpp.

Referenced by TV::HandleStateChange(), and TV::timerEvent().

◆ IsPlayerPlaying()

bool PlayerContext::IsPlayerPlaying ( void  ) const

Definition at line 109 of file playercontext.cpp.

Referenced by TV::HandleEndOfPlaybackTimerEvent().

◆ IsRecorderErrored()

bool PlayerContext::IsRecorderErrored ( void  ) const

Definition at line 141 of file playercontext.cpp.

Referenced by MythPlayerUI::EventLoop(), and TV::timerEvent().

◆ InStateChange()

bool PlayerContext::InStateChange ( void  ) const

Definition at line 300 of file playercontext.cpp.

Referenced by TV::GetState(), and TV::HandlePseudoLiveTVTimerEvent().

◆ IsErrored()

bool PlayerContext::IsErrored ( void  ) const
inline

This is set if the player encountered some irrecoverable error.

Definition at line 111 of file playercontext.h.

Referenced by TV::HandleStateChange(), TV::IsPaused(), and TV::timerEvent().

◆ IsSameProgram()

bool PlayerContext::IsSameProgram ( const ProgramInfo p) const

Definition at line 381 of file playercontext.cpp.

Referenced by TV::IsSameProgram().

Member Data Documentation

◆ m_recUsage

QString PlayerContext::m_recUsage

Definition at line 115 of file playercontext.h.

Referenced by SetPlayingInfo().

◆ m_player

MythPlayer* PlayerContext::m_player {nullptr}

◆ m_playerUnsafe

volatile bool PlayerContext::m_playerUnsafe {false}

Definition at line 117 of file playercontext.h.

◆ m_recorder

RemoteEncoder* PlayerContext::m_recorder {nullptr}

◆ m_tvchain

LiveTVChain* PlayerContext::m_tvchain {nullptr}

◆ m_buffer

MythMediaBuffer* PlayerContext::m_buffer {nullptr}

Definition at line 120 of file playercontext.h.

Referenced by TV::ActiveHandleAction(), MythDVDPlayer::CalcMaxFFTime(), MythDVDPlayer::ChangeSpeed(), MythBDPlayer::CreateDecoder(), MythDVDPlayer::CreateDecoder(), MythPlayer::CreateDecoder(), TV::customEvent(), MythDVDPlayer::DisableCaptions(), TV::DiscMenuHandleAction(), MythDVDPlayer::DisplayDVDButton(), MythBDPlayer::DisplayMenu(), MythBDPlayer::DisplayPauseFrame(), MythDVDPlayer::DisplayPauseFrame(), MythPlayer::DoFastForward(), MythDVDPlayer::DoJumpChapter(), TV::DoPlayerSeek(), TV::DoPlayerSeekToFrame(), MythPlayer::DoRewind(), TV::DoTogglePauseFinish(), TV::DoTogglePauseStart(), TV::DVDJumpBack(), TV::DVDJumpForward(), MythPlayerUI::EnableBitrateMonitor(), MythDVDPlayer::EnableCaptions(), MythDVDPlayer::EventEnd(), MythPlayerUI::EventLoop(), MythBDPlayer::EventStart(), MythDVDPlayer::EventStart(), MythPlayerUI::FileChanged(), MythDVDPlayer::GetBookmark(), MythBDPlayer::GetBookmark(), MythPlayer::GetBookmark(), MythBDPlayer::GetChapter(), MythBDPlayer::GetChapterTimes(), MythDVDPlayer::GetChapterTimes(), MythBDPlayer::GetCurrentAngle(), MythDVDPlayer::GetCurrentAngle(), MythBDPlayer::GetCurrentChapter(), MythDVDPlayer::GetCurrentChapter(), MythBDPlayer::GetCurrentTitle(), MythDVDPlayer::GetMillisecondsPlayed(), MythBDPlayer::GetNumAngles(), MythDVDPlayer::GetNumAngles(), MythBDPlayer::GetNumChapters(), MythDVDPlayer::GetNumChapters(), MythBDPlayer::GetNumTitles(), MythPlayerUI::GetPlaybackData(), MythPreviewPlayer::GetScreenGrabAtFrame(), MythBDPlayer::GetTitleDuration(), MythDVDPlayer::GoToDVDProgram(), MythBDPlayer::GoToMenu(), MythDVDPlayer::GoToMenu(), TV::HandleLCDTimerEvent(), TV::HandleStateChange(), MythDVDPlayer::InitialSeek(), TV::IsBookmarkAllowed(), MythPlayer::IsReallyNearEnd(), MythPlayerUI::JumpToProgram(), MythPlayerUI::JumpToStream(), MythPlayerCaptionsUI::LoadExternalSubtitles(), MythBDPlayer::NextTitle(), MythPlayer::OpenFile(), TV::OSDDialogEvent(), MythPlayer::PauseBuffer(), TV::PauseLiveTV(), TV::PlaybackMenuInit(), MythDVDPlayer::PrepareAudioSample(), MythBDPlayer::PrevTitle(), TV::ProcessKeypressOrGesture(), TV::ProcessNetworkControlCommand(), MythDVDPlayer::ReleaseNextVideoFrame(), MythBDPlayer::SetBookmark(), MythDVDPlayer::SetBookmark(), TV::SetFFRew(), SetRingBuffer(), MythPlayerCaptionsUI::SetStream(), MythDVDPlayer::SetTrack(), TV::ShowLCDDVDInfo(), TV::ShowOSDStopWatchingRecording(), MythDVDPlayer::StillFrameCheck(), TV::StopStuff(), MythDVDPlayer::SwitchAngle(), MythBDPlayer::SwitchAngle(), TV::SwitchInputs(), MythBDPlayer::SwitchTitle(), MythPlayerUI::SwitchToProgram(), MythPlayer::UnpauseBuffer(), TV::UnpauseLiveTV(), MythBDPlayer::VideoLoop(), MythDVDPlayer::VideoLoop(), MythBDPlayer::VideoStart(), MythDVDPlayer::VideoStart(), and TV::VolumeChange().

◆ m_playingInfo

ProgramInfo* PlayerContext::m_playingInfo {nullptr}

Currently playing info.

Definition at line 121 of file playercontext.h.

Referenced by TVBrowseHelper::BrowseStart(), TV::ChangeChannel(), TV::CommitQueuedInput(), MythBDPlayer::CreateDecoder(), MythDVDPlayer::CreateDecoder(), MythPlayer::CreateDecoder(), TV::customEvent(), MythPlayerEditorUI::DisableEdit(), TV::DoEditSchedule(), TV::DoPlay(), TV::DoQueueTranscode(), TV::DoTogglePause(), MythPlayerEditorUI::EnableEdit(), MythPlayerUI::EventLoop(), MythPlayerUI::EventStart(), MythBDPlayer::EventStart(), MythDVDPlayer::EventStart(), MythPlayerUI::FileChanged(), TV::FillOSDMenuJumpRec(), get_chanid(), MythDVDPlayer::GetBookmark(), MythBDPlayer::GetBookmark(), MythPlayer::GetBookmark(), GetFilters(), GetPlayingInfoMap(), MythCommFlagPlayer::GetRawVideoFrame(), TV::GetRecordingGroup(), TV::GetStatus(), TV::HandleOSDAlreadyEditing(), TV::HandleSaveLastPlayPosEvent(), TV::HandleStateChange(), TV::IsBookmarkAllowed(), TV::IsDeleteAllowed(), DeleteMap::IsFileEditing(), MythPlayer::IsNearEnd(), IsSameProgram(), DeleteMap::IsSaved(), TV::ITVRestart(), DeleteMap::LoadAutoSaveMap(), CommBreakMap::LoadMap(), DeleteMap::LoadMap(), MythPlayer::OpenDummy(), MythPlayer::OpenFile(), TV::PlaybackMenuInit(), TV::PrepareToExitPlayer(), TV::ProcessNetworkControlCommand(), TV::QuickRecord(), MythCommFlagPlayer::RebuildSeekTable(), MythCCExtractorPlayer::run(), DeleteMap::SaveMap(), MythPlayerUI::SetBookmark(), MythBDPlayer::SetBookmark(), MythDVDPlayer::SetBookmark(), DeleteMap::SetFileEditing(), SetInitialTVState(), MythPlayerUI::SetLastPlayPosition(), SetPlayingInfo(), MythPlayerUI::SetWatched(), TV::ShowLCDChannelInfo(), TV::ShowOSDPromptDeleteRecording(), TV::ShowOSDStopWatchingRecording(), TV::StartProgramEditMode(), TV::SwitchInputs(), TV::ToggleAutoExpire(), MythTranscodePlayer::TranscodeGetNextFrame(), and DeleteMap::UpdateOSD().

◆ m_playingLen

std::chrono::seconds PlayerContext::m_playingLen {0s}

Initial CalculateLength()

Definition at line 122 of file playercontext.h.

Referenced by TV::CreatePlayer(), and SetPlayingInfo().

◆ m_playingRecStart

QDateTime PlayerContext::m_playingRecStart

◆ m_lastCardid

int PlayerContext::m_lastCardid {-1}

CardID of current/last recorder.

Definition at line 124 of file playercontext.h.

Referenced by TVBrowseHelper::BrowseChannel(), and SetRecorder().

◆ m_ffRewState

int PlayerContext::m_ffRewState {0}

◆ m_ffRewIndex

int PlayerContext::m_ffRewIndex {0}

Index into m_ffRewSpeeds for FF and Rewind speeds.

Definition at line 128 of file playercontext.h.

Referenced by TV::ChangeFFRew(), HandlePlayerSpeedChangeFFRew(), TV::Init(), TV::SetFFRew(), TV::StopFFRew(), and TeardownPlayer().

◆ m_ffRewSpeed

int PlayerContext::m_ffRewSpeed {0}

◆ m_playingState

TVState PlayerContext::m_playingState {kState_None}

Definition at line 131 of file playercontext.h.

Referenced by GetPlayingInfoMap(), GetState(), and TV::HandleStateChange().

◆ m_errored

bool PlayerContext::m_errored {false}

Definition at line 133 of file playercontext.h.

Referenced by TV::PlaybackLoop(), TV::SetErrored(), and TV::StartTV().

◆ m_prevChan

StringDeque PlayerContext::m_prevChan

◆ m_pseudoLiveTVRec

ProgramInfo* PlayerContext::m_pseudoLiveTVRec {nullptr}

Definition at line 139 of file playercontext.h.

Referenced by TV::HandlePseudoLiveTVTimerEvent(), and SetPseudoLiveTV().

◆ m_pseudoLiveTVState

PseudoState PlayerContext::m_pseudoLiveTVState {kPseudoNormalLiveTV}

◆ m_fftime

std::chrono::seconds PlayerContext::m_fftime {0s}

◆ m_rewtime

std::chrono::seconds PlayerContext::m_rewtime {0s}

◆ m_jumptime

std::chrono::minutes PlayerContext::m_jumptime {0min}

◆ m_tsNormal

float PlayerContext::m_tsNormal {1.0F}

Time stretch speed, 1.0F for normal playback.

Begins at 1.0F meaning normal playback, but can be increased or decreased to speedup or slowdown playback. Ignored when doing Fast Forward or Rewind.

Definition at line 151 of file playercontext.h.

Referenced by TV::ChangeSpeed(), TV::ChangeTimeStretch(), TV::DoPlay(), TV::DoTogglePauseStart(), GetPlayMessage(), HandlePlayerSpeedChangeEOF(), TV::Init(), MythPlayerAudioUI::MythPlayerAudioUI(), TV::NormalSpeed(), TV::OSDDialogEvent(), TV::PlaybackMenuInit(), TV::ProcessNetworkControlCommand(), SetPlayGroup(), TV::StopFFRew(), TeardownPlayer(), TV::ToggleTimeStretch(), and TV::UnpauseLiveTV().

◆ m_tsAlt

float PlayerContext::m_tsAlt {1.5F}

Definition at line 152 of file playercontext.h.

Referenced by SetPlayGroup(), and TV::ToggleTimeStretch().

◆ m_playingInfoLock

QRecursiveMutex PlayerContext::m_playingInfoLock
mutable

Definition at line 159 of file playercontext.h.

Referenced by LockPlayingInfo(), SetPlayingInfo(), and UnlockPlayingInfo().

◆ m_deletePlayerLock

QRecursiveMutex PlayerContext::m_deletePlayerLock
mutable

◆ m_stateLock

QRecursiveMutex PlayerContext::m_stateLock
mutable

◆ m_lastSignalMsg

QStringList PlayerContext::m_lastSignalMsg
mutable

Definition at line 165 of file playercontext.h.

Referenced by TV::PauseLiveTV(), TV::timerEvent(), and TV::UpdateOSDSignal().

◆ m_lastSignalMsgTime

MythTimer PlayerContext::m_lastSignalMsgTime
mutable

Definition at line 166 of file playercontext.h.

Referenced by TV::ActiveHandleAction(), PlayerContext(), and TV::UpdateOSDSignal().

◆ m_lastSignalUIInfo

InfoMap PlayerContext::m_lastSignalUIInfo
mutable

◆ m_lastSignalUIInfoTime

MythTimer PlayerContext::m_lastSignalUIInfoTime
mutable

Definition at line 168 of file playercontext.h.

Referenced by TV::UpdateOSDSignal().

◆ m_nextState

MythDeque<TVState> PlayerContext::m_nextState

◆ kSMExitTimeout

constexpr std::chrono::milliseconds PlayerContext::kSMExitTimeout { 2s }
staticconstexpr

Timeout after last Signal Monitor message for ignoring OSD when exiting.

Definition at line 174 of file playercontext.h.

Referenced by TV::ActiveHandleAction(), and PlayerContext().

◆ kMaxChannelHistory

constexpr uint PlayerContext::kMaxChannelHistory { 30 }
staticconstexpr

Definition at line 175 of file playercontext.h.

Referenced by PushPreviousChannel().


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