Skip to content

Commit 40ac859

Browse files
committed
Basic PVR API impl
1 parent 3d019a4 commit 40ac859

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

src/IptvSimple.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,11 @@ PVR_ERROR IptvSimple::GetChannels(bool radio, kodi::addon::PVRChannelsResultSet&
216216
return m_channels.GetChannels(results, radio);
217217
}
218218

219-
PVR_ERROR IptvSimple::GetChannelStreamProperties(const kodi::addon::PVRChannel& channel, std::vector<kodi::addon::PVRStreamProperty>& properties)
219+
PVR_ERROR IptvSimple::GetChannelStreamProperties(const kodi::addon::PVRChannel& channel, std::vector<kodi::addon::PVRStreamProperty>& properties, bool fromEpgAsLive)
220220
{
221+
Logger::Log(LogLevel::LEVEL_INFO, "%s - XXXXX fromEpgAsLive: %d", __FUNCTION__, fromEpgAsLive);
222+
223+
221224
if (GetChannel(channel, m_currentChannel))
222225
{
223226
std::string streamURL = m_currentChannel.GetStreamURL();
@@ -436,6 +439,15 @@ PVR_ERROR IptvSimple::GetSignalStatus(int channelUid, kodi::addon::PVRSignalStat
436439
return PVR_ERROR_NO_ERROR;
437440
}
438441

442+
/***************************************************************************
443+
* Stream State
444+
**************************************************************************/
445+
446+
void IptvSimple::StreamClosed()
447+
{
448+
Logger::Log(LEVEL_INFO, "%s - XXXX Stream Closed", __FUNCTION__);
449+
}
450+
439451
/***************************************************************************
440452
* InstanceSettings
441453
**************************************************************************/

src/IptvSimple.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ATTR_DLL_LOCAL IptvSimple : public iptvsimple::IConnectionListener
5757

5858
PVR_ERROR GetChannelsAmount(int& amount) override;
5959
PVR_ERROR GetChannels(bool radio, kodi::addon::PVRChannelsResultSet& results) override;
60-
PVR_ERROR GetChannelStreamProperties(const kodi::addon::PVRChannel& channel, std::vector<kodi::addon::PVRStreamProperty>& properties) override;
60+
PVR_ERROR GetChannelStreamProperties(const kodi::addon::PVRChannel& channel, std::vector<kodi::addon::PVRStreamProperty>& properties, bool fromEpgAsLive) override;
6161

6262
PVR_ERROR GetChannelGroupsAmount(int& amount) override;
6363
PVR_ERROR GetChannelGroups(bool radio, kodi::addon::PVRChannelGroupsResultSet& results) override;
@@ -71,6 +71,8 @@ class ATTR_DLL_LOCAL IptvSimple : public iptvsimple::IConnectionListener
7171

7272
PVR_ERROR GetSignalStatus(int channelUid, kodi::addon::PVRSignalStatus& signalStatus) override;
7373

74+
void StreamClosed() override;
75+
7476
PVR_ERROR GetRecordingsAmount(bool deleted, int& amount) override;
7577
PVR_ERROR GetRecordings(bool deleted, kodi::addon::PVRRecordingsResultSet& results) override;
7678
PVR_ERROR GetRecordingStreamProperties(const kodi::addon::PVRRecording& recording, std::vector<kodi::addon::PVRStreamProperty>& properties) override;

0 commit comments

Comments
 (0)