diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/media/profile.h | 16 | ||||
-rw-r--r-- | include/plugin.h | 2 | ||||
-rw-r--r-- | include/webserver.h | 2 |
3 files changed, 19 insertions, 1 deletions
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; } |