summaryrefslogtreecommitdiff
path: root/cPlexOsdItem.h
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-02-22 16:30:39 +0100
committerchriszero <zerov83@gmail.com>2015-02-22 16:30:39 +0100
commit1d6583bf592119c85bfcbf2cc6f22aef364396e4 (patch)
tree5190cd178c353b1006da1df2ed316ddcdfd01dab /cPlexOsdItem.h
parenta4567e4d33727c941a8abe14c8165f212835f064 (diff)
downloadvdr-plugin-plex-1d6583bf592119c85bfcbf2cc6f22aef364396e4.tar.gz
vdr-plugin-plex-1d6583bf592119c85bfcbf2cc6f22aef364396e4.tar.bz2
New menu for selecting audio/subtitle stream. Open with "back key" while playing a video.
Selecting a subtitle will force the PMS to transcode the video.
Diffstat (limited to 'cPlexOsdItem.h')
-rw-r--r--cPlexOsdItem.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cPlexOsdItem.h b/cPlexOsdItem.h
index e484d9a..2e34581 100644
--- a/cPlexOsdItem.h
+++ b/cPlexOsdItem.h
@@ -8,6 +8,7 @@
#include <vdr/plugin.h>
#include "PVideo.h"
+#include "Stream.h"
#include "Directory.h"
#include "Plexservice.h"
@@ -16,6 +17,7 @@ class cPlexOsdItem : public cOsdItem
private:
plexclient::Video* item;
plexclient::Directory* dir;
+ plexclient::Stream stream;
std::shared_ptr<plexclient::Plexservice> pservice;
bool m_bVideo;
bool m_bDir;
@@ -25,8 +27,15 @@ public:
cPlexOsdItem(const char* title, std::shared_ptr<plexclient::Plexservice> service);
cPlexOsdItem(const char* title, plexclient::Video* obj);
cPlexOsdItem(const char* title, plexclient::Directory* obj);
+/**
+ * @brief
+ * @param title Title
+ * @param obj will be copied
+ */
+ cPlexOsdItem(const char* title, plexclient::Stream* obj);
plexclient::Video* GetAttachedVideo();
plexclient::Directory* GetAttachedDirectory();
+ plexclient::Stream& GetAttachedStream() { return stream; }
std::shared_ptr<plexclient::Plexservice> GetAttachedService();
bool IsVideo() const {