summaryrefslogtreecommitdiff
path: root/PlexReqHandlerFactory.cpp
diff options
context:
space:
mode:
authorChristian <zerov83@gmail.com>2016-04-11 21:53:22 +0200
committerChristian <zerov83@gmail.com>2016-04-11 21:53:22 +0200
commit8d0ed3dc01165fa8b84794276225175ec2094dd4 (patch)
tree90a31dc9fefa1f35270d131e76e9f4f6b173a7a5 /PlexReqHandlerFactory.cpp
parent82d13a0734c8a11347d50fcc5ad341c8eb1b7a43 (diff)
downloadvdr-plugin-plex-8d0ed3dc01165fa8b84794276225175ec2094dd4.tar.gz
vdr-plugin-plex-8d0ed3dc01165fa8b84794276225175ec2094dd4.tar.bz2
Added protocol capability "mirror"
Displays information about the currently via app viewed video on the VDR. Also fixes "OSD is already open bug"
Diffstat (limited to 'PlexReqHandlerFactory.cpp')
-rw-r--r--PlexReqHandlerFactory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/PlexReqHandlerFactory.cpp b/PlexReqHandlerFactory.cpp
index c1d9401..2720e7f 100644
--- a/PlexReqHandlerFactory.cpp
+++ b/PlexReqHandlerFactory.cpp
@@ -9,7 +9,8 @@ namespace plexclient {
}
Poco::Net::HTTPRequestHandler *PlexReqHandlerFactory::createRequestHandler(
- const Poco::Net::HTTPServerRequest &request) { /*
+ const Poco::Net::HTTPServerRequest &request) {
+ /*
if(request.getMethod() == Poco::Net::HTTPRequest::HTTP_GET) {
std::cout << "GET Request: " << request.getURI() << " from: " << request.clientAddress().toString() << std::endl;
} else if(request.getMethod() == Poco::Net::HTTPRequest::HTTP_OPTIONS) {
@@ -22,6 +23,7 @@ namespace plexclient {
}
*/
if (request.getURI().find("/player/timeline") != std::string::npos) return new SubscribeRequestHandler();
+ else if (request.getURI().find("/player/mirror") != std::string::npos) return new MirrorRequestHandler();
else if (request.getURI().find("/resources") != std::string::npos) return new ResourceRequestHandler();
else if (request.getURI().find("/player") != std::string::npos) return new PlayerRequestHandler();