mirror of
				https://github.com/rofafor/vdr-plugin-femon.git
				synced 2023-10-10 11:36:53 +00:00 
			
		
		
		
	Added transponder info window support for IPTV devices.
This commit is contained in:
		
							
								
								
									
										1
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								HISTORY
									
									
									
									
									
								
							@@ -452,3 +452,4 @@ VDR Plugin 'femon' Revision History
 | 
			
		||||
- Added the dynamite compatibility patch (Thanks to Lars Hanisch).
 | 
			
		||||
- Silenced error log messages when accessing pseudo devices.
 | 
			
		||||
- Added a new theme: PearlHD (Thanks to Taipan @ VDRPortal).
 | 
			
		||||
- Added transponder info window support for IPTV devices.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								femonosd.c
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								femonosd.c
									
									
									
									
									
								
							@@ -11,6 +11,7 @@
 | 
			
		||||
 | 
			
		||||
#include <ctype.h>
 | 
			
		||||
#include <math.h>
 | 
			
		||||
#include "iptvservice.h"
 | 
			
		||||
#include "femoncfg.h"
 | 
			
		||||
#include "femonreceiver.h"
 | 
			
		||||
#include "femontools.h"
 | 
			
		||||
@@ -475,9 +476,21 @@ void cFemonOsd::DrawInfoWindow(void)
 | 
			
		||||
                   }
 | 
			
		||||
                   break;
 | 
			
		||||
 | 
			
		||||
              case ('I' << 24): {
 | 
			
		||||
              case stIptv: {
 | 
			
		||||
                   OSDDRAWINFOLINE(*cString::sprintf("IPTV #%d - %s", (m_SvdrpFrontend >= 0) ? m_SvdrpFrontend : cDevice::ActualDevice()->CardIndex(), *m_FrontendName));
 | 
			
		||||
                   offset += OSDROWHEIGHT;
 | 
			
		||||
                   if (m_SvdrpFrontend < 0) {
 | 
			
		||||
                      cPlugin *p;
 | 
			
		||||
                      IptvService_v1_0 data;
 | 
			
		||||
                      data.cardIndex = cDevice::ActualDevice()->CardIndex();
 | 
			
		||||
                      p = cPluginManager::CallFirstService("IptvService-v1.0", &data);
 | 
			
		||||
                      if (p) {
 | 
			
		||||
                         OSDDRAWINFOLEFT(tr("Protocol"),   *data.protocol);
 | 
			
		||||
                         offset += OSDROWHEIGHT;
 | 
			
		||||
                         OSDDRAWINFOLEFT(tr("Bitrate"),    *data.bitrate);
 | 
			
		||||
                         offset += OSDROWHEIGHT;
 | 
			
		||||
                         }
 | 
			
		||||
                      }
 | 
			
		||||
                   }
 | 
			
		||||
                   break;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										22
									
								
								iptvservice.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								iptvservice.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
/*
 | 
			
		||||
 * iptvservice.h: IPTV plugin for the Video Disk Recorder
 | 
			
		||||
 *
 | 
			
		||||
 * See the README file for copyright information and how to reach the author.
 | 
			
		||||
 *
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifndef __IPTVSERVICE_H
 | 
			
		||||
#define __IPTVSERVICE_H
 | 
			
		||||
 | 
			
		||||
#include <vdr/tools.h>
 | 
			
		||||
 | 
			
		||||
#define stIptv ('I' << 24)
 | 
			
		||||
 | 
			
		||||
struct IptvService_v1_0 {
 | 
			
		||||
  unsigned int cardIndex;
 | 
			
		||||
  cString protocol;
 | 
			
		||||
  cString bitrate;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
#endif //__IPTVSERVICE_H
 | 
			
		||||
 | 
			
		||||
@@ -180,6 +180,12 @@ msgstr "Rid"
 | 
			
		||||
msgid "Coderate"
 | 
			
		||||
msgstr "Coderate"
 | 
			
		||||
 | 
			
		||||
msgid "Protocol"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Bitrate"
 | 
			
		||||
 | 
			
		||||
msgid "Stream Information"
 | 
			
		||||
msgstr "Streaminformation"
 | 
			
		||||
 | 
			
		||||
@@ -189,9 +195,6 @@ msgstr "Video Stream"
 | 
			
		||||
msgid "Codec"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Bitrate"
 | 
			
		||||
 | 
			
		||||
msgid "Aspect Ratio"
 | 
			
		||||
msgstr "Seitenverh<72>ltnis"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -178,6 +178,12 @@ msgstr "Rid"
 | 
			
		||||
msgid "Coderate"
 | 
			
		||||
msgstr "Coderate"
 | 
			
		||||
 | 
			
		||||
msgid "Protocol"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Tasa de bits"
 | 
			
		||||
 | 
			
		||||
msgid "Stream Information"
 | 
			
		||||
msgstr "Informaci<63>n del flujo"
 | 
			
		||||
 | 
			
		||||
@@ -187,9 +193,6 @@ msgstr "Flujo de video"
 | 
			
		||||
msgid "Codec"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Tasa de bits"
 | 
			
		||||
 | 
			
		||||
msgid "Aspect Ratio"
 | 
			
		||||
msgstr "Proporciones de la imagen"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -178,6 +178,12 @@ msgstr "Rid"
 | 
			
		||||
msgid "Coderate"
 | 
			
		||||
msgstr "Coderate"
 | 
			
		||||
 | 
			
		||||
msgid "Protocol"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Bitikiirus"
 | 
			
		||||
 | 
			
		||||
msgid "Stream Information"
 | 
			
		||||
msgstr "Vooinfo"
 | 
			
		||||
 | 
			
		||||
@@ -187,9 +193,6 @@ msgstr "Videovoog"
 | 
			
		||||
msgid "Codec"
 | 
			
		||||
msgstr "Koodek"
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Bitikiirus"
 | 
			
		||||
 | 
			
		||||
msgid "Aspect Ratio"
 | 
			
		||||
msgstr "K<>lgsuhe"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								po/fi_FI.po
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								po/fi_FI.po
									
									
									
									
									
								
							@@ -178,6 +178,12 @@ msgstr "Radio-ID"
 | 
			
		||||
msgid "Coderate"
 | 
			
		||||
msgstr "Suojaustaso"
 | 
			
		||||
 | 
			
		||||
msgid "Protocol"
 | 
			
		||||
msgstr "Protokolla"
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Bittinopeus"
 | 
			
		||||
 | 
			
		||||
msgid "Stream Information"
 | 
			
		||||
msgstr "Lähetteen tiedot"
 | 
			
		||||
 | 
			
		||||
@@ -187,9 +193,6 @@ msgstr "Kuvaraita"
 | 
			
		||||
msgid "Codec"
 | 
			
		||||
msgstr "Koodekki"
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Bittinopeus"
 | 
			
		||||
 | 
			
		||||
msgid "Aspect Ratio"
 | 
			
		||||
msgstr "Kuvasuhde"
 | 
			
		||||
 | 
			
		||||
@@ -384,3 +387,9 @@ msgstr "Mbit/s"
 | 
			
		||||
 | 
			
		||||
msgid "kbit/s"
 | 
			
		||||
msgstr "kbit/s"
 | 
			
		||||
 | 
			
		||||
#~ msgid "Information"
 | 
			
		||||
#~ msgstr "Tiedot"
 | 
			
		||||
 | 
			
		||||
#~ msgid "Statistics"
 | 
			
		||||
#~ msgstr "Tilastot"
 | 
			
		||||
 
 | 
			
		||||
@@ -178,6 +178,12 @@ msgstr "Rid"
 | 
			
		||||
msgid "Coderate"
 | 
			
		||||
msgstr "Coderate"
 | 
			
		||||
 | 
			
		||||
msgid "Protocol"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Bitrate"
 | 
			
		||||
 | 
			
		||||
msgid "Stream Information"
 | 
			
		||||
msgstr "Information flux"
 | 
			
		||||
 | 
			
		||||
@@ -187,9 +193,6 @@ msgstr "Flux vid
 | 
			
		||||
msgid "Codec"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Bitrate"
 | 
			
		||||
 | 
			
		||||
msgid "Aspect Ratio"
 | 
			
		||||
msgstr "Proportions d'image"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -181,6 +181,12 @@ msgstr "Rid"
 | 
			
		||||
msgid "Coderate"
 | 
			
		||||
msgstr "Coderate"
 | 
			
		||||
 | 
			
		||||
msgid "Protocol"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Bitr<74>ta"
 | 
			
		||||
 | 
			
		||||
msgid "Stream Information"
 | 
			
		||||
msgstr "Adatfolyam inf<6E>"
 | 
			
		||||
 | 
			
		||||
@@ -190,9 +196,6 @@ msgstr "Vide
 | 
			
		||||
msgid "Codec"
 | 
			
		||||
msgstr "Kodek"
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Bitr<74>ta"
 | 
			
		||||
 | 
			
		||||
msgid "Aspect Ratio"
 | 
			
		||||
msgstr "M<>retar<61>ny"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -182,6 +182,12 @@ msgstr "Rid"
 | 
			
		||||
msgid "Coderate"
 | 
			
		||||
msgstr "Coderate"
 | 
			
		||||
 | 
			
		||||
msgid "Protocol"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Bitrate"
 | 
			
		||||
 | 
			
		||||
msgid "Stream Information"
 | 
			
		||||
msgstr "Informazioni flusso"
 | 
			
		||||
 | 
			
		||||
@@ -191,9 +197,6 @@ msgstr "Flusso video"
 | 
			
		||||
msgid "Codec"
 | 
			
		||||
msgstr "Codifica"
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Bitrate"
 | 
			
		||||
 | 
			
		||||
msgid "Aspect Ratio"
 | 
			
		||||
msgstr "Formato immagine"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -178,6 +178,12 @@ msgstr "Rid"
 | 
			
		||||
msgid "Coderate"
 | 
			
		||||
msgstr "Kodavimo dažnis"
 | 
			
		||||
 | 
			
		||||
msgid "Protocol"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Kokybė"
 | 
			
		||||
 | 
			
		||||
msgid "Stream Information"
 | 
			
		||||
msgstr "Srauto informacija"
 | 
			
		||||
 | 
			
		||||
@@ -187,9 +193,6 @@ msgstr "Video srautas"
 | 
			
		||||
msgid "Codec"
 | 
			
		||||
msgstr "Kodekas"
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "Kokybė"
 | 
			
		||||
 | 
			
		||||
msgid "Aspect Ratio"
 | 
			
		||||
msgstr "Proporcijos"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -178,6 +178,12 @@ msgstr "Rid"
 | 
			
		||||
msgid "Coderate"
 | 
			
		||||
msgstr "Coderate"
 | 
			
		||||
 | 
			
		||||
msgid "Protocol"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Stream Information"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
@@ -187,9 +193,6 @@ msgstr ""
 | 
			
		||||
msgid "Codec"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Aspect Ratio"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -178,6 +178,12 @@ msgstr "Rid"
 | 
			
		||||
msgid "Coderate"
 | 
			
		||||
msgstr "码速率"
 | 
			
		||||
 | 
			
		||||
msgid "Protocol"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "比特率"
 | 
			
		||||
 | 
			
		||||
msgid "Stream Information"
 | 
			
		||||
msgstr "流信息"
 | 
			
		||||
 | 
			
		||||
@@ -187,9 +193,6 @@ msgstr "视频流"
 | 
			
		||||
msgid "Codec"
 | 
			
		||||
msgstr "解码模式"
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "比特率"
 | 
			
		||||
 | 
			
		||||
msgid "Aspect Ratio"
 | 
			
		||||
msgstr "纵横比"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -178,6 +178,12 @@ msgstr "Rid"
 | 
			
		||||
msgid "Coderate"
 | 
			
		||||
msgstr "碼速率"
 | 
			
		||||
 | 
			
		||||
msgid "Protocol"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "比特率"
 | 
			
		||||
 | 
			
		||||
msgid "Stream Information"
 | 
			
		||||
msgstr "流信息"
 | 
			
		||||
 | 
			
		||||
@@ -187,9 +193,6 @@ msgstr "視頻流"
 | 
			
		||||
msgid "Codec"
 | 
			
		||||
msgstr "解碼模式"
 | 
			
		||||
 | 
			
		||||
msgid "Bitrate"
 | 
			
		||||
msgstr "比特率"
 | 
			
		||||
 | 
			
		||||
msgid "Aspect Ratio"
 | 
			
		||||
msgstr "縱橫比"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user