From b450015b9a6c0d35c264e93fbc9bcdf92538f47a Mon Sep 17 00:00:00 2001 From: methodus Date: Fri, 12 Oct 2012 20:46:25 +0200 Subject: Fixed some minor issues. Added current event from schedule to channel details. --- include/media/profile.h | 16 ++++++++++++++++ include/plugin.h | 2 +- include/webserver.h | 2 ++ 3 files changed, 19 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/media/profile.h b/include/media/profile.h index e8b2bda..efac36d 100644 --- a/include/media/profile.h +++ b/include/media/profile.h @@ -58,6 +58,22 @@ struct DLNA4thField { string ToString(); }; +struct ProtocolInfo { + enum StreamType { + DLNA_STREAM_HTTP, + DLNA_STREAM_RTP + }; + + ProtocolInfo(); + ProtocolInfo(string contentType, DLNA4thField fourthField, StreamType type = DLNA_STREAM_HTTP); + + StreamType streamType; + string contentType; + DLNA4thField fourthField; + + string ToString(); +}; + namespace video { } diff --git a/include/plugin.h b/include/plugin.h index 6749336..d267bcd 100644 --- a/include/plugin.h +++ b/include/plugin.h @@ -374,7 +374,7 @@ public: * The implementor of a resource provider MUST either implement * this function or the file access methods below. */ - virtual string GetHTTPUri(const string& uri, const string& currentIP); + virtual string GetHTTPUri(const string& uri, const string& currentIP, const string& protocolInfo); virtual bool Seekable() const; diff --git a/include/webserver.h b/include/webserver.h index 39ca8df..02377d7 100644 --- a/include/webserver.h +++ b/include/webserver.h @@ -38,6 +38,8 @@ namespace upnp { const std::string GetStaticContentUrl() const; const std::string GetPresentationUrl() const; + const std::string GetThumbnailDir() const; + std::string GetListenerAddress() const { return mListenerAddress; } uint16_t GetListenerPort() const { return mListenerPort; } -- cgit v1.2.3