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...
 
long long m_playingLen {0}
 Initial CalculateLength() More...
 
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}
 
int m_fftime {0}
 
int m_rewtime {0}
 
int m_jumptime {0}
 
float m_tsNormal {1.0F}
 Time stretch speed, 1.0F for normal playback. More...
 
float m_tsAlt {1.5F}
 
QMutex m_playingInfoLock {QMutex::Recursive}
 
QMutex m_deletePlayerLock {QMutex::Recursive}
 
QMutex m_stateLock {QMutex::Recursive}
 
QStringList m_lastSignalMsg
 
MythTimer m_lastSignalMsgTime
 
InfoMap m_lastSignalUIInfo
 
MythTimer m_lastSignalUIInfoTime
 
MythDeque< TVStatem_nextState
 

Static Public Attributes

static const uint kSMExitTimeout = 2000
 Timeout after last Signal Monitor message for ignoring OSD when exiting. More...
 
static const uint kMaxChannelHistory = 30
 

Detailed Description

Definition at line 48 of file playercontext.h.

Constructor & Destructor Documentation

◆ PlayerContext()

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

Definition at line 30 of file playercontext.cpp.

◆ ~PlayerContext()

PlayerContext::~PlayerContext ( )

Definition at line 37 of file playercontext.cpp.

Member Function Documentation

◆ TeardownPlayer()

void PlayerContext::TeardownPlayer ( void  )

Definition at line 43 of file playercontext.cpp.

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

◆ StopPlaying()

void PlayerContext::StopPlaying ( void  ) const

Definition at line 148 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 154 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 183 of file playercontext.cpp.

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

◆ PopPreviousChannel()

QString PlayerContext::PopPreviousChannel ( void  )

Definition at line 202 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 314 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 329 of file playercontext.cpp.

Referenced by TV::ForceNextStateNone().

◆ DequeueNextState()

TVState PlayerContext::DequeueNextState ( void  )

Definition at line 320 of file playercontext.cpp.

Referenced by TV::HandleStateChange().

◆ HandlePlayerSpeedChangeFFRew()

bool PlayerContext::HandlePlayerSpeedChangeFFRew ( void  )

Definition at line 117 of file playercontext.cpp.

Referenced by TV::HandleSpeedChangeTimerEvent().

◆ HandlePlayerSpeedChangeEOF()

bool PlayerContext::HandlePlayerSpeedChangeEOF ( void  )

Definition at line 130 of file playercontext.cpp.

Referenced by TV::HandleSpeedChangeTimerEvent().

◆ LockState()

void PlayerContext::LockState ( void  ) const

Definition at line 292 of file playercontext.cpp.

Referenced by TV::HandleStateChange().

◆ UnlockState()

void PlayerContext::UnlockState ( void  ) const

Definition at line 297 of file playercontext.cpp.

Referenced by TV::HandleStateChange().

◆ LockPlayingInfo()

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

Definition at line 236 of file playercontext.cpp.

Referenced by TVBrowseHelper::BrowseStart(), TV::ChangeChannel(), TV::CommitQueuedInput(), TV::customEvent(), MythPlayerUI::DisableEdit(), TV::DoEditSchedule(), TV::DoQueueTranscode(), MythPlayerUI::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(), 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 248 of file playercontext.cpp.

Referenced by TVBrowseHelper::BrowseStart(), TV::ChangeChannel(), TV::CommitQueuedInput(), TV::customEvent(), MythPlayerUI::DisableEdit(), TV::DoEditSchedule(), TV::DoQueueTranscode(), MythPlayerUI::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(), 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

prevent MythPlayer from being deleted used to ensure player can only be deleted after osd in TV() is unlocked.

Definition at line 265 of file playercontext.cpp.

Referenced by TV::ActiveHandleAction(), TV::ActivePostQHandleAction(), TV::ChangeChannel(), TV::ChangeSpeed(), TV::ChangeTimeStretch(), TV::ChannelEditXDSFill(), TV::ContextIsPaused(), TV::customEvent(), TV::DoArbSeek(), TV::DoEditSchedule(), TV::DoJumpChapter(), TV::DoPlay(), TV::DoPlayerSeek(), TV::DoPlayerSeekToFrame(), TV::DoSeek(), TV::DoSeekAbsolute(), TV::DoSkipCommercials(), TV::DoSwitchAngle(), TV::DoSwitchTitle(), TV::DoTogglePause(), TV::DoTogglePauseStart(), TV::DVDJumpBack(), TV::DVDJumpForward(), TV::GetAngleName(), TV::GetChapterTimes(), TV::GetCurrentAngle(), TV::GetCurrentChapter(), TV::GetCurrentTitle(), TV::GetNumAngles(), TV::GetNumChapters(), TV::GetNumTitles(), TV::GetOSDL(), TV::GetStatus(), TV::GetTitleDuration(), TV::GetTitleName(), TV::HandleEndOfRecordingExitPromptTimerEvent(), TV::HandleOSDAlreadyEditing(), TV::HandleOSDVideoExit(), TV::HandleSaveLastPlayPosEvent(), TV::IsPaused(), TV::MenuItemDisplayCutlist(), TV::MenuItemDisplayPlayback(), TV::NormalSpeed(), TV::OSDDialogEvent(), TV::OverrideScan(), TV::PauseLiveTV(), TV::PlaybackLoop(), TV::PlaybackMenuInit(), TV::PrepareToExitPlayer(), TV::ProcessKeypressOrGesture(), TV::ProcessNetworkControlCommand(), TV::SeekHandleAction(), TV::SetAutoCommercialSkip(), TV::SetFFRew(), TV::StartProgramEditMode(), TV::StartTV(), TV::StopFFRew(), TV::StopStuff(), and TV::UnpauseLiveTV().

◆ 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 61 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 476 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 505 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 528 of file playercontext.cpp.

Referenced by SetInitialTVState().

◆ SetPseudoLiveTV()

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

Definition at line 537 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 222 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 393 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 105 of file playercontext.cpp.

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

◆ IsPlayerPlaying()

bool PlayerContext::IsPlayerPlaying ( void  ) const

Definition at line 111 of file playercontext.cpp.

Referenced by TV::HandleEndOfPlaybackTimerEvent().

◆ IsRecorderErrored()

bool PlayerContext::IsRecorderErrored ( void  ) const

Definition at line 143 of file playercontext.cpp.

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

◆ InStateChange()

bool PlayerContext::InStateChange ( void  ) const

Definition at line 302 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 106 of file playercontext.h.

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

◆ IsSameProgram()

bool PlayerContext::IsSameProgram ( const ProgramInfo p) const

Definition at line 383 of file playercontext.cpp.

Referenced by TV::IsSameProgram().

Member Data Documentation

◆ m_recUsage

QString PlayerContext::m_recUsage

Definition at line 110 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 112 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 115 of file playercontext.h.

Referenced by TV::ActiveHandleAction(), MythDVDPlayer::CalcMaxFFTime(), MythDVDPlayer::ChangeSpeed(), MythBDPlayer::CreateDecoder(), MythDVDPlayer::CreateDecoder(), MythPlayer::CreateDecoder(), TV::customEvent(), MythDVDPlayer::DecoderGetFrameREW(), 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(), MythBDPlayer::GetNumAngles(), MythDVDPlayer::GetNumAngles(), MythBDPlayer::GetNumChapters(), MythDVDPlayer::GetNumChapters(), MythBDPlayer::GetNumTitles(), MythPlayerUI::GetPlaybackData(), MythPreviewPlayer::GetScreenGrabAtFrame(), MythDVDPlayer::GetSecondsPlayed(), 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 116 of file playercontext.h.

Referenced by TVBrowseHelper::BrowseStart(), TV::ChangeChannel(), TV::CommitQueuedInput(), MythBDPlayer::CreateDecoder(), MythDVDPlayer::CreateDecoder(), MythPlayer::CreateDecoder(), TV::customEvent(), MythPlayerUI::DisableEdit(), TV::DoEditSchedule(), TV::DoPlay(), TV::DoQueueTranscode(), TV::DoTogglePause(), MythPlayerUI::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(), SetPlayingInfo(), MythPlayerUI::SetWatched(), TV::ShowLCDChannelInfo(), TV::ShowOSDPromptDeleteRecording(), TV::ShowOSDStopWatchingRecording(), TV::StartProgramEditMode(), TV::SwitchInputs(), TV::ToggleAutoExpire(), MythTranscodePlayer::TranscodeGetNextFrame(), and DeleteMap::UpdateOSD().

◆ m_playingLen

long long PlayerContext::m_playingLen {0}

Initial CalculateLength()

Definition at line 117 of file playercontext.h.

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

◆ m_lastCardid

int PlayerContext::m_lastCardid {-1}

CardID of current/last recorder.

Definition at line 118 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 122 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 125 of file playercontext.h.

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

◆ m_errored

bool PlayerContext::m_errored {false}

Definition at line 127 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 133 of file playercontext.h.

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

◆ m_pseudoLiveTVState

PseudoState PlayerContext::m_pseudoLiveTVState {kPseudoNormalLiveTV}

◆ m_fftime

int PlayerContext::m_fftime {0}

◆ m_rewtime

int PlayerContext::m_rewtime {0}

◆ m_jumptime

int PlayerContext::m_jumptime {0}

◆ 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 145 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 146 of file playercontext.h.

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

◆ m_playingInfoLock

QMutex PlayerContext::m_playingInfoLock {QMutex::Recursive}
mutable

Definition at line 148 of file playercontext.h.

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

◆ m_deletePlayerLock

QMutex PlayerContext::m_deletePlayerLock {QMutex::Recursive}
mutable

◆ m_stateLock

QMutex PlayerContext::m_stateLock {QMutex::Recursive}
mutable

◆ m_lastSignalMsg

QStringList PlayerContext::m_lastSignalMsg
mutable

Definition at line 153 of file playercontext.h.

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

◆ m_lastSignalMsgTime

MythTimer PlayerContext::m_lastSignalMsgTime
mutable

Definition at line 154 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 156 of file playercontext.h.

Referenced by TV::UpdateOSDSignal().

◆ m_nextState

MythDeque<TVState> PlayerContext::m_nextState

◆ kSMExitTimeout

const uint PlayerContext::kSMExitTimeout = 2000
static

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

Definition at line 162 of file playercontext.h.

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

◆ kMaxChannelHistory

const uint PlayerContext::kMaxChannelHistory = 30
static

Definition at line 163 of file playercontext.h.

Referenced by PushPreviousChannel().


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