display mux, service name and provider name in the PVR stream
authorSam Stenvall <neggelandia@gmail.com>
Fri, 23 Aug 2013 06:44:34 +0000 (09:44 +0300)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sat, 9 Nov 2013 01:32:06 +0000 (02:32 +0100)
information OSD

addons/skin.confluence/720p/VideoFullScreen.xml
language/English/strings.po
xbmc/GUIInfoManager.cpp
xbmc/GUIInfoManager.h
xbmc/addons/include/xbmc_pvr_types.h
xbmc/pvr/PVRGUIInfo.cpp
xbmc/pvr/PVRGUIInfo.h

index 7ffc77c..a6397fe 100644 (file)
                                <description>BER value</description>
                                <left>220</left>
                                <top>165</top>
-                               <width>1000</width>
+                               <width>165</width>
                                <height>25</height>
                                <label>$INFO[PVR.ActStreamBER]</label>
                                <align>left</align>
                        </control>
                        <control type="label">
                                <description>UNC</description>
-                               <left>430</left>
+                               <left>390</left>
                                <top>165</top>
                                <width>165</width>
                                <height>25</height>
                        </control>
                        <control type="label">
                                <description>UNC value</description>
-                               <left>600</left>
+                               <left>560</left>
                                <top>165</top>
-                               <width>1000</width>
+                               <width>165</width>
                                <height>25</height>
                                <label>$INFO[PVR.ActStreamUNC]</label>
                                <align>left</align>
                                <textcolor>white</textcolor>
                        </control>
                        <control type="label">
+                               <description>Service</description>
+                               <left>730</left>
+                               <top>165</top>
+                               <width>165</width>
+                               <height>25</height>
+                               <label>$LOCALIZE[19099]:</label>
+                               <align>left</align>
+                               <aligny>center</aligny>
+                               <font>font12</font>
+                               <textcolor>grey2</textcolor>
+                       </control>
+                       <control type="label">
+                               <description>Service value</description>
+                               <left>900</left>
+                               <top>165</top>
+                               <width>330</width>
+                               <height>25</height>
+                               <label>$INFO[PVR.ActStreamServiceName]</label>
+                               <align>left</align>
+                               <aligny>center</aligny>
+                               <font>font12</font>
+                               <textcolor>white</textcolor>
+                       </control>
+                       <control type="label">
                                <description>Encryption</description>
                                <left>50</left>
                                <top>190</top>
                                <description>Encryption value</description>
                                <left>220</left>
                                <top>190</top>
-                               <width>1000</width>
+                               <width>165</width>
                                <height>25</height>
                                <label>$INFO[PVR.ActStreamEncryptionName]</label>
                                <align>left</align>
                                <font>font12</font>
                                <textcolor>white</textcolor>
                        </control>
+                       <control type="label">
+                               <description>Provider</description>
+                               <left>390</left>
+                               <top>190</top>
+                               <width>165</width>
+                               <height>25</height>
+                               <label>$LOCALIZE[19101]:</label>
+                               <align>left</align>
+                               <aligny>center</aligny>
+                               <font>font12</font>
+                               <textcolor>grey2</textcolor>
+                       </control>
+                       <control type="label">
+                               <description>Provider value</description>
+                               <left>560</left>
+                               <top>190</top>
+                               <width>165</width>
+                               <height>25</height>
+                               <label>$INFO[PVR.ActStreamProviderName]</label>
+                               <align>left</align>
+                               <aligny>center</aligny>
+                               <font>font12</font>
+                               <textcolor>white</textcolor>
+                       </control>
+                       <control type="label">
+                               <description>Mux</description>
+                               <left>730</left>
+                               <top>190</top>
+                               <width>165</width>
+                               <height>25</height>
+                               <label>$LOCALIZE[19100]:</label>
+                               <align>left</align>
+                               <aligny>center</aligny>
+                               <font>font12</font>
+                               <textcolor>grey2</textcolor>
+                       </control>
+                       <control type="label">
+                               <description>Mux value</description>
+                               <left>900</left>
+                               <top>190</top>
+                               <width>330</width>
+                               <height>25</height>
+                               <label>$INFO[PVR.ActStreamMux]</label>
+                               <align>left</align>
+                               <aligny>center</aligny>
+                               <font>font12</font>
+                               <textcolor>white</textcolor>
+                       </control>
                </control>
        </controls>
 </window>
index 5096061..cb38cc3 100755 (executable)
@@ -7558,7 +7558,20 @@ msgctxt "#19098"
 msgid "Warning"
 msgstr ""
 
-#empty strings from id 19099 to 19101
+#: xbmc/pvr/PVRGUIInfo.cpp
+msgctxt "#19099"
+msgid "Service"
+msgstr ""
+
+#: xbmc/pvr/PVRGUIInfo.cpp
+msgctxt "#19100"
+msgid "Mux"
+msgstr ""
+
+#: xbmc/pvr/PVRGUIInfo.cpp
+msgctxt "#19101"
+msgid "Provider"
+msgstr ""
 
 msgctxt "#19102"
 msgid "Please switch to another channel."
index 49985a4..d69c231 100644 (file)
@@ -665,7 +665,10 @@ const infomap pvr[] =            {{ "isrecording",              PVR_IS_RECORDING
                                   { "actstreamprogrsignal",     PVR_ACTUAL_STREAM_SIG_PROGR },
                                   { "actstreamprogrsnr",        PVR_ACTUAL_STREAM_SNR_PROGR },
                                   { "actstreamisencrypted",     PVR_ACTUAL_STREAM_ENCRYPTED },
-                                  { "actstreamencryptionname",  PVR_ACTUAL_STREAM_CRYPTION }};
+                                  { "actstreamencryptionname",  PVR_ACTUAL_STREAM_CRYPTION },
+                                  { "actstreamservicename",     PVR_ACTUAL_STREAM_SERVICE },
+                                  { "actstreammux",             PVR_ACTUAL_STREAM_MUX },
+                                  { "actstreamprovidername",    PVR_ACTUAL_STREAM_PROVIDER }};
 
 const infomap slideshow[] =      {{ "ispaused",         SLIDESHOW_ISPAUSED },
                                   { "isactive",         SLIDESHOW_ISACTIVE },
@@ -1375,6 +1378,9 @@ CStdString CGUIInfoManager::GetLabel(int info, int contextWindow, CStdString *fa
   case PVR_ACTUAL_STREAM_AUDIO_BR:
   case PVR_ACTUAL_STREAM_DOLBY_BR:
   case PVR_ACTUAL_STREAM_CRYPTION:
+  case PVR_ACTUAL_STREAM_SERVICE:
+  case PVR_ACTUAL_STREAM_MUX:
+  case PVR_ACTUAL_STREAM_PROVIDER:
     g_PVRManager.TranslateCharInfo(info, strLabel);
     break;
   case WEATHER_CONDITIONS:
index 1d70720..8a9d629 100644 (file)
@@ -477,7 +477,10 @@ namespace INFO
 #define PVR_ACTUAL_STREAM_AUDIO_BR  (PVR_STRINGS_START + 31)
 #define PVR_ACTUAL_STREAM_DOLBY_BR  (PVR_STRINGS_START + 32)
 #define PVR_ACTUAL_STREAM_CRYPTION  (PVR_STRINGS_START + 33)
-#define PVR_STRINGS_END             PVR_ACTUAL_STREAM_CRYPTION
+#define PVR_ACTUAL_STREAM_SERVICE   (PVR_STRINGS_START + 34)
+#define PVR_ACTUAL_STREAM_MUX       (PVR_STRINGS_START + 35)
+#define PVR_ACTUAL_STREAM_PROVIDER  (PVR_STRINGS_START + 36)
+#define PVR_STRINGS_END             PVR_ACTUAL_STREAM_PROVIDER
 
 #define WINDOW_PROPERTY             9993
 #define WINDOW_IS_TOPMOST           9994
index 36ef0aa..40a8384 100644 (file)
@@ -194,6 +194,9 @@ extern "C" {
   {
     char   strAdapterName[PVR_ADDON_NAME_STRING_LENGTH];   /*!< @brief (optional) name of the adapter that's being used */
     char   strAdapterStatus[PVR_ADDON_NAME_STRING_LENGTH]; /*!< @brief (optional) status of the adapter that's being used */
+    char   strServiceName[PVR_ADDON_NAME_STRING_LENGTH];   /*!< @brief (optional) name of the current service */
+    char   strProviderName[PVR_ADDON_NAME_STRING_LENGTH];  /*!< @brief (optional) name of the current service's provider */
+    char   strMuxName[PVR_ADDON_NAME_STRING_LENGTH];       /*!< @brief (optional) name of the current mux */
     int    iSNR;                                           /*!< @brief (optional) signal/noise ratio */
     int    iSignal;                                        /*!< @brief (optional) signal strength */
     long   iBER;                                           /*!< @brief (optional) bit error rate */
index f0ed5a0..d9b1861 100644 (file)
@@ -342,6 +342,15 @@ bool CPVRGUIInfo::TranslateCharInfo(DWORD dwInfo, CStdString &strValue) const
   case PVR_ACTUAL_STREAM_CRYPTION:
     CharInfoEncryption(strValue);
     break;
+  case PVR_ACTUAL_STREAM_SERVICE:
+    CharInfoService(strValue);
+    break;
+  case PVR_ACTUAL_STREAM_MUX:
+    CharInfoMux(strValue);
+    break;
+  case PVR_ACTUAL_STREAM_PROVIDER:
+    CharInfoProvider(strValue);
+    break;
   case PVR_BACKEND_NAME:
     CharInfoBackendName(strValue);
     break;
@@ -620,6 +629,30 @@ void CPVRGUIInfo::CharInfoEncryption(CStdString &strValue) const
     strValue = StringUtils::EmptyString;
 }
 
+void CPVRGUIInfo::CharInfoService(CStdString &strValue) const
+{
+  if (!strcmp(m_qualityInfo.strServiceName, StringUtils::EmptyString))
+    strValue.Format("%s", g_localizeStrings.Get(13205));
+  else
+    strValue.Format("%s", m_qualityInfo.strServiceName);
+}
+
+void CPVRGUIInfo::CharInfoMux(CStdString &strValue) const
+{
+  if (!strcmp(m_qualityInfo.strMuxName, StringUtils::EmptyString))
+    strValue.Format("%s", g_localizeStrings.Get(13205));
+  else
+    strValue.Format("%s", m_qualityInfo.strMuxName);
+}
+
+void CPVRGUIInfo::CharInfoProvider(CStdString &strValue) const
+{
+  if (!strcmp(m_qualityInfo.strProviderName, StringUtils::EmptyString))
+    strValue.Format("%s", g_localizeStrings.Get(13205));
+  else
+    strValue.Format("%s", m_qualityInfo.strProviderName);
+}
+
 void CPVRGUIInfo::UpdateBackendCache(void)
 {
   CStdString strBackendName;
index 2967084..34bc258 100644 (file)
@@ -125,6 +125,9 @@ namespace PVR
     void CharInfoBackendRecordings(CStdString &strValue) const;
     void CharInfoPlayingClientName(CStdString &strValue) const;
     void CharInfoEncryption(CStdString &strValue) const;
+    void CharInfoService(CStdString &strValue) const;
+    void CharInfoMux(CStdString &strValue) const;
+    void CharInfoProvider(CStdString &strValue) const;
 
     /** @name GUIInfoManager data */
     //@{