From 1d6583bf592119c85bfcbf2cc6f22aef364396e4 Mon Sep 17 00:00:00 2001 From: chriszero Date: Sun, 22 Feb 2015 16:30:39 +0100 Subject: 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. --- hlsPlayerControl.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'hlsPlayerControl.h') diff --git a/hlsPlayerControl.h b/hlsPlayerControl.h index c64139a..fb2ba3f 100644 --- a/hlsPlayerControl.h +++ b/hlsPlayerControl.h @@ -8,13 +8,26 @@ #include "MediaContainer.h" #include "PVideo.h" +class cStreamSelectMenu : public cOsdMenu +{ +private: + plexclient::Video* pVideo; + void CreateMenu(); + bool SelectStream(); + +public: + cStreamSelectMenu(plexclient::Video* Video); + virtual eOSState ProcessKey(eKeys Keys); +}; + class cHlsPlayerControl : public cControl { private: static volatile int active; cHlsPlayer* player; std::string m_title; - + + cStreamSelectMenu* menu; cSkinDisplayReplay *displayReplay; bool visible, modeOnly, shown; int lastCurrent, lastTotal; -- cgit v1.2.3