summaryrefslogtreecommitdiff
path: root/PlexServer.cpp
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-01-17 22:42:08 +0100
committerchriszero <zerov83@gmail.com>2015-01-17 22:42:08 +0100
commitd3777dd6bcb11ceea85eca91e670d7872ba7b1ea (patch)
tree0f105aa75321c5c83a17c0c9338fb2534f61fc38 /PlexServer.cpp
parentadc0c699c19b0389b899230a73f3ab635bcdc5c3 (diff)
downloadvdr-plugin-plex-d3777dd6bcb11ceea85eca91e670d7872ba7b1ea.tar.gz
vdr-plugin-plex-d3777dd6bcb11ceea85eca91e670d7872ba7b1ea.tar.bz2
Added current status of played stream (current, total time, play, pause)
Diffstat (limited to 'PlexServer.cpp')
-rw-r--r--PlexServer.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/PlexServer.cpp b/PlexServer.cpp
index 4eb1245..5675009 100644
--- a/PlexServer.cpp
+++ b/PlexServer.cpp
@@ -31,7 +31,14 @@ PlexServer::PlexServer(std::string data, std::string ip)
}
}
-std::string PlexServer::GetUri() {
+PlexServer::PlexServer(std::string ip, int port)
+{
+ m_sIpAddress = ip;
+ m_nPort = port;
+}
+
+std::string PlexServer::GetUri()
+{
return std::string("http://") + m_sIpAddress + ":" + std::string(itoa(m_nPort));
}