8
8
#pragma once
9
9
10
10
#include " ../data/Channel.h"
11
+ #include " ../data/MediaEntry.h"
11
12
#include " ../data/StreamEntry.h"
12
13
13
14
#include < map>
@@ -29,12 +30,13 @@ namespace iptvsimple
29
30
{
30
31
public:
31
32
static void SetAllStreamProperties (std::vector<kodi::addon::PVRStreamProperty>& properties, const iptvsimple::data::Channel& channel, const std::string& streamUrl, bool isChannelURL, std::map<std::string, std::string>& catchupProperties, std::shared_ptr<iptvsimple::InstanceSettings>& settings);
32
- static const StreamType GetStreamType (const std::string& url, const iptvsimple::data::Channel& channel);
33
- static const StreamType InspectStreamType (const std::string& url, const iptvsimple::data::Channel& channel);
33
+ static void SetAllStreamProperties (std::vector<kodi::addon::PVRStreamProperty>& properties, const iptvsimple::data::MediaEntry& mediaEntry, const std::string& streamUrl, std::shared_ptr<iptvsimple::InstanceSettings>& settings);
34
+ static const StreamType GetStreamType (const std::string& url, const std::string& mimeType, bool isCatchupTSStream);
35
+ static const StreamType InspectStreamType (const std::string& url, iptvsimple::CatchupMode catchupMode);
34
36
static const std::string GetManifestType (const StreamType& streamType);
35
37
static const std::string GetMimeType (const StreamType& streamType);
36
38
static bool HasMimeType (const StreamType& streamType);
37
- static std::string GetURLWithFFmpegReconnectOptions (const std::string& streamUrl, const StreamType& streamType, const iptvsimple::data::Channel& channel , std::shared_ptr<iptvsimple::InstanceSettings>& settings);
39
+ static std::string GetURLWithFFmpegReconnectOptions (const std::string& streamUrl, const StreamType& streamType, const std::string& inputstreamName, bool hasHTTPReconnect , std::shared_ptr<iptvsimple::InstanceSettings>& settings);
38
40
static std::string AddHeader (const std::string& headerTarget, const std::string& headerName, const std::string& headerValue, bool encodeHeaderValue);
39
41
static std::string AddHeaderToStreamUrl (const std::string& streamUrl, const std::string& headerName, const std::string& headerValue);
40
42
static bool UseKodiInputstreams (const StreamType& streamType, std::shared_ptr<iptvsimple::InstanceSettings>& settings);
@@ -43,9 +45,9 @@ namespace iptvsimple
43
45
static std::string GetEffectiveInputStreamName (const StreamType& streamType, const iptvsimple::data::Channel& channel, std::shared_ptr<iptvsimple::InstanceSettings>& settings);
44
46
45
47
private:
46
- static bool SupportsFFmpegReconnect (const StreamType& streamType, const iptvsimple::data::Channel& channel );
47
- static void InspectAndSetFFmpegDirectStreamProperties (std::vector<kodi::addon::PVRStreamProperty>& properties, const iptvsimple::data::Channel& channel , const std::string& streamUrl, bool isChannelURL , std::shared_ptr<iptvsimple::InstanceSettings>& settings);
48
- static void SetFFmpegDirectManifestTypeStreamProperty (std::vector<kodi::addon::PVRStreamProperty>& properties, const iptvsimple::data::Channel& channel , const std::string& streamURL, const StreamType& streamType);
48
+ static bool SupportsFFmpegReconnect (const StreamType& streamType, const std::string& inputstreamName );
49
+ static void InspectAndSetFFmpegDirectStreamProperties (std::vector<kodi::addon::PVRStreamProperty>& properties, const std::string& mimeType , const std::string& manifestType, iptvsimple::CatchupMode catchupMode, bool isCatchupTSStream, const std::string& streamUrl , std::shared_ptr<iptvsimple::InstanceSettings>& settings);
50
+ static void SetFFmpegDirectManifestTypeStreamProperty (std::vector<kodi::addon::PVRStreamProperty>& properties, const std::string& manifestType , const std::string& streamURL, const StreamType& streamType);
49
51
static bool CheckInputstreamInstalledAndEnabled (const std::string& inputstreamName);
50
52
51
53
};
0 commit comments