Go to the documentation of this file.
26 #define LOC QString("IPTVChan[%1]: ").arg(m_inputId)
29 DTVChannel(rec), m_videoDev(std::move(videodev))
31 LOG(VB_CHANNEL, LOG_INFO,
LOC +
"ctor");
36 LOG(VB_CHANNEL, LOG_INFO,
LOC +
"dtor");
42 LOG(VB_CHANNEL, LOG_INFO,
LOC +
"Open()");
63 LOG(VB_CHANNEL, LOG_INFO,
LOC +
64 QString(
"SetStreamData(0x%1) StreamHandler(0x%2)")
105 LOG(VB_CHANNEL, LOG_INFO,
LOC +
"Creating HLSStreamHandler");
110 LOG(VB_CHANNEL, LOG_INFO,
LOC +
"Creating HTTPTSStreamHandler");
115 LOG(VB_CHANNEL, LOG_INFO,
LOC +
"Creating IPTVStreamHandler");
122 LOG(VB_CHANNEL, LOG_INFO,
LOC +
"CloseStreamHandler()");
159 LOG(VB_CHANNEL, LOG_DEBUG,
LOC + QString(
"IsOpen(%1) %2")
161 ret ?
"true" :
"false"));
169 LOG(VB_CHANNEL, LOG_INFO,
LOC + QString(
"Tune(%1)")
172 if (tuning.
GetDataURL().scheme().toUpper() ==
"RTSP")
179 LOG(VB_CHANNEL, LOG_ERR,
LOC + QString(
"Invalid tuning info %1")
186 LOG(VB_CHANNEL, LOG_DEBUG,
LOC + QString(
"Already tuned to %1")
209 LOG(VB_CHANNEL, LOG_INFO,
LOC + QString(
"Tuned to (%1)")
static void Return(IPTVStreamHandler *&ref, int inputid)
MPEGStreamData * m_streamData
void OpenStreamHandler(void)
bool HasError(void) const
IPTVStreamHandler * m_streamHandler
void AddListener(MPEGStreamData *data, bool=false, bool=false, const QString &output_file=QString()) override
QUrl GetDataURL(void) const
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
virtual void RemoveListener(MPEGStreamData *data)
#define LOC
-*- Mode: c++ -*- IPTVChannel Copyright (c) 2006-2009 Silicondust Engineering Ltd,...
bool EnterPowerSavingMode(void) override
Enters power saving mode if the card supports it.
QString GetDeviceName(void) const
void CloseStreamHandler(void)
Encapsulates data about MPEG stream and emits events for each table.
static IPTVStreamHandler * Get(const IPTVTuningData &tuning, int inputid)
volatile bool m_firstTune
static HLSStreamHandler * Get(const IPTVTuningData &tuning, int inputid)
bool IsOpen(void) const override
Reports whether channel is already open.
static HTTPTSStreamHandler * Get(const IPTVTuningData &tuning, int inputid)
void SetStreamData(MPEGStreamData *sd)
static void Return(HLSStreamHandler *&ref, int inputid)
void Close(void) override
Closes the channel changing hardware to use.
IPTVChannel(TVRec *rec, QString videodev)
IPTVTuningData m_lastTuning
This is the coordinating class of the Recorder Subsystem.
static void Return(HTTPTSStreamHandler *&ref, int inputid)
virtual int GetInputID(void) const
Class providing a generic interface to digital tuning hardware.
bool Open(void) override
Opens the channel changing hardware for use.
bool IsRunning(void) const
virtual bool InitializeInput(void)
Fills in input map from DB.
bool Tune(const IPTVTuningData &tuning, bool scanning) override
Performs IPTV Tuning. Only implemented by IPTVChannel.