1
0
mirror of https://github.com/rofafor/vdr-plugin-femon.git synced 2023-10-10 13:36:53 +02:00

Added transponder info window support for IPTV devices.

This commit is contained in:
Rolf Ahrenberg 2012-04-01 22:39:33 +03:00
parent 0e6457ab42
commit 2d849b4fb8
14 changed files with 109 additions and 34 deletions

View File

@ -452,3 +452,4 @@ VDR Plugin 'femon' Revision History
- Added the dynamite compatibility patch (Thanks to Lars Hanisch). - Added the dynamite compatibility patch (Thanks to Lars Hanisch).
- Silenced error log messages when accessing pseudo devices. - Silenced error log messages when accessing pseudo devices.
- Added a new theme: PearlHD (Thanks to Taipan @ VDRPortal). - Added a new theme: PearlHD (Thanks to Taipan @ VDRPortal).
- Added transponder info window support for IPTV devices.

View File

@ -11,6 +11,7 @@
#include <ctype.h> #include <ctype.h>
#include <math.h> #include <math.h>
#include "iptvservice.h"
#include "femoncfg.h" #include "femoncfg.h"
#include "femonreceiver.h" #include "femonreceiver.h"
#include "femontools.h" #include "femontools.h"
@ -475,9 +476,21 @@ void cFemonOsd::DrawInfoWindow(void)
} }
break; break;
case ('I' << 24): { case stIptv: {
OSDDRAWINFOLINE(*cString::sprintf("IPTV #%d - %s", (m_SvdrpFrontend >= 0) ? m_SvdrpFrontend : cDevice::ActualDevice()->CardIndex(), *m_FrontendName)); OSDDRAWINFOLINE(*cString::sprintf("IPTV #%d - %s", (m_SvdrpFrontend >= 0) ? m_SvdrpFrontend : cDevice::ActualDevice()->CardIndex(), *m_FrontendName));
offset += OSDROWHEIGHT; 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; break;

22
iptvservice.h Normal file
View 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

View File

@ -180,6 +180,12 @@ msgstr "Rid"
msgid "Coderate" msgid "Coderate"
msgstr "Coderate" msgstr "Coderate"
msgid "Protocol"
msgstr ""
msgid "Bitrate"
msgstr "Bitrate"
msgid "Stream Information" msgid "Stream Information"
msgstr "Streaminformation" msgstr "Streaminformation"
@ -189,9 +195,6 @@ msgstr "Video Stream"
msgid "Codec" msgid "Codec"
msgstr "" msgstr ""
msgid "Bitrate"
msgstr "Bitrate"
msgid "Aspect Ratio" msgid "Aspect Ratio"
msgstr "Seitenverhältnis" msgstr "Seitenverhältnis"

View File

@ -178,6 +178,12 @@ msgstr "Rid"
msgid "Coderate" msgid "Coderate"
msgstr "Coderate" msgstr "Coderate"
msgid "Protocol"
msgstr ""
msgid "Bitrate"
msgstr "Tasa de bits"
msgid "Stream Information" msgid "Stream Information"
msgstr "Información del flujo" msgstr "Información del flujo"
@ -187,9 +193,6 @@ msgstr "Flujo de video"
msgid "Codec" msgid "Codec"
msgstr "" msgstr ""
msgid "Bitrate"
msgstr "Tasa de bits"
msgid "Aspect Ratio" msgid "Aspect Ratio"
msgstr "Proporciones de la imagen" msgstr "Proporciones de la imagen"

View File

@ -178,6 +178,12 @@ msgstr "Rid"
msgid "Coderate" msgid "Coderate"
msgstr "Coderate" msgstr "Coderate"
msgid "Protocol"
msgstr ""
msgid "Bitrate"
msgstr "Bitikiirus"
msgid "Stream Information" msgid "Stream Information"
msgstr "Vooinfo" msgstr "Vooinfo"
@ -187,9 +193,6 @@ msgstr "Videovoog"
msgid "Codec" msgid "Codec"
msgstr "Koodek" msgstr "Koodek"
msgid "Bitrate"
msgstr "Bitikiirus"
msgid "Aspect Ratio" msgid "Aspect Ratio"
msgstr "Külgsuhe" msgstr "Külgsuhe"

View File

@ -178,6 +178,12 @@ msgstr "Radio-ID"
msgid "Coderate" msgid "Coderate"
msgstr "Suojaustaso" msgstr "Suojaustaso"
msgid "Protocol"
msgstr "Protokolla"
msgid "Bitrate"
msgstr "Bittinopeus"
msgid "Stream Information" msgid "Stream Information"
msgstr "Lähetteen tiedot" msgstr "Lähetteen tiedot"
@ -187,9 +193,6 @@ msgstr "Kuvaraita"
msgid "Codec" msgid "Codec"
msgstr "Koodekki" msgstr "Koodekki"
msgid "Bitrate"
msgstr "Bittinopeus"
msgid "Aspect Ratio" msgid "Aspect Ratio"
msgstr "Kuvasuhde" msgstr "Kuvasuhde"
@ -384,3 +387,9 @@ msgstr "Mbit/s"
msgid "kbit/s" msgid "kbit/s"
msgstr "kbit/s" msgstr "kbit/s"
#~ msgid "Information"
#~ msgstr "Tiedot"
#~ msgid "Statistics"
#~ msgstr "Tilastot"

View File

@ -178,6 +178,12 @@ msgstr "Rid"
msgid "Coderate" msgid "Coderate"
msgstr "Coderate" msgstr "Coderate"
msgid "Protocol"
msgstr ""
msgid "Bitrate"
msgstr "Bitrate"
msgid "Stream Information" msgid "Stream Information"
msgstr "Information flux" msgstr "Information flux"
@ -187,9 +193,6 @@ msgstr "Flux vid
msgid "Codec" msgid "Codec"
msgstr "" msgstr ""
msgid "Bitrate"
msgstr "Bitrate"
msgid "Aspect Ratio" msgid "Aspect Ratio"
msgstr "Proportions d'image" msgstr "Proportions d'image"

View File

@ -181,6 +181,12 @@ msgstr "Rid"
msgid "Coderate" msgid "Coderate"
msgstr "Coderate" msgstr "Coderate"
msgid "Protocol"
msgstr ""
msgid "Bitrate"
msgstr "Bitráta"
msgid "Stream Information" msgid "Stream Information"
msgstr "Adatfolyam infó" msgstr "Adatfolyam infó"
@ -190,9 +196,6 @@ msgstr "Vide
msgid "Codec" msgid "Codec"
msgstr "Kodek" msgstr "Kodek"
msgid "Bitrate"
msgstr "Bitráta"
msgid "Aspect Ratio" msgid "Aspect Ratio"
msgstr "Méretarány" msgstr "Méretarány"

View File

@ -182,6 +182,12 @@ msgstr "Rid"
msgid "Coderate" msgid "Coderate"
msgstr "Coderate" msgstr "Coderate"
msgid "Protocol"
msgstr ""
msgid "Bitrate"
msgstr "Bitrate"
msgid "Stream Information" msgid "Stream Information"
msgstr "Informazioni flusso" msgstr "Informazioni flusso"
@ -191,9 +197,6 @@ msgstr "Flusso video"
msgid "Codec" msgid "Codec"
msgstr "Codifica" msgstr "Codifica"
msgid "Bitrate"
msgstr "Bitrate"
msgid "Aspect Ratio" msgid "Aspect Ratio"
msgstr "Formato immagine" msgstr "Formato immagine"

View File

@ -178,6 +178,12 @@ msgstr "Rid"
msgid "Coderate" msgid "Coderate"
msgstr "Kodavimo dažnis" msgstr "Kodavimo dažnis"
msgid "Protocol"
msgstr ""
msgid "Bitrate"
msgstr "Kokybė"
msgid "Stream Information" msgid "Stream Information"
msgstr "Srauto informacija" msgstr "Srauto informacija"
@ -187,9 +193,6 @@ msgstr "Video srautas"
msgid "Codec" msgid "Codec"
msgstr "Kodekas" msgstr "Kodekas"
msgid "Bitrate"
msgstr "Kokybė"
msgid "Aspect Ratio" msgid "Aspect Ratio"
msgstr "Proporcijos" msgstr "Proporcijos"

View File

@ -178,6 +178,12 @@ msgstr "Rid"
msgid "Coderate" msgid "Coderate"
msgstr "Coderate" msgstr "Coderate"
msgid "Protocol"
msgstr ""
msgid "Bitrate"
msgstr ""
msgid "Stream Information" msgid "Stream Information"
msgstr "" msgstr ""
@ -187,9 +193,6 @@ msgstr ""
msgid "Codec" msgid "Codec"
msgstr "" msgstr ""
msgid "Bitrate"
msgstr ""
msgid "Aspect Ratio" msgid "Aspect Ratio"
msgstr "" msgstr ""

View File

@ -178,6 +178,12 @@ msgstr "Rid"
msgid "Coderate" msgid "Coderate"
msgstr "码速率" msgstr "码速率"
msgid "Protocol"
msgstr ""
msgid "Bitrate"
msgstr "比特率"
msgid "Stream Information" msgid "Stream Information"
msgstr "流信息" msgstr "流信息"
@ -187,9 +193,6 @@ msgstr "视频流"
msgid "Codec" msgid "Codec"
msgstr "解码模式" msgstr "解码模式"
msgid "Bitrate"
msgstr "比特率"
msgid "Aspect Ratio" msgid "Aspect Ratio"
msgstr "纵横比" msgstr "纵横比"

View File

@ -178,6 +178,12 @@ msgstr "Rid"
msgid "Coderate" msgid "Coderate"
msgstr "碼速率" msgstr "碼速率"
msgid "Protocol"
msgstr ""
msgid "Bitrate"
msgstr "比特率"
msgid "Stream Information" msgid "Stream Information"
msgstr "流信息" msgstr "流信息"
@ -187,9 +193,6 @@ msgstr "視頻流"
msgid "Codec" msgid "Codec"
msgstr "解碼模式" msgstr "解碼模式"
msgid "Bitrate"
msgstr "比特率"
msgid "Aspect Ratio" msgid "Aspect Ratio"
msgstr "縱橫比" msgstr "縱橫比"