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).
- 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.

View File

@ -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
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"
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ältnis"

View File

@ -178,6 +178,12 @@ msgstr "Rid"
msgid "Coderate"
msgstr "Coderate"
msgid "Protocol"
msgstr ""
msgid "Bitrate"
msgstr "Tasa de bits"
msgid "Stream Information"
msgstr "Informació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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

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

View File

@ -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"

View File

@ -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"

View File

@ -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 ""

View File

@ -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 "纵横比"

View File

@ -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 "縱橫比"