From 78fcbf5233a256e8ed509bfec864631ffc583845 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 23 Apr 2014 09:31:23 +0200 Subject: [PATCH] SAT>IP: Add Help button to the TV adapters. --- docs/html/config_tvadapters.html | 81 ++++++++++++++++++++++++++++++ src/webui/static/app/idnode.js | 15 +++++- src/webui/static/app/tvadapters.js | 9 +++- 3 files changed, 102 insertions(+), 3 deletions(-) create mode 100644 docs/html/config_tvadapters.html diff --git a/docs/html/config_tvadapters.html b/docs/html/config_tvadapters.html new file mode 100644 index 00000000..9582a7e3 --- /dev/null +++ b/docs/html/config_tvadapters.html @@ -0,0 +1,81 @@ +
+ +

The adapters and tuners are listed / edited in a tree

+ + +

+ +

The rows have the following functions

+ +
+
Enabled
+
If selected, the IPTV service will be enabled an use for channel + subscriptions.
+ +
Name
+
The name of this tuner.
+ +
Full Mux Rx mode
+
If selected, the whole mux (transponder) will be received without any + filtering. It is not usually required to enable this option. It does + not have usually any benefit, because tvheadend will filter the + unwanted PIDs from the TS stream, except for the malfunctioning drivers.
+
+

+ +

LinuxDVB specific rows

+ +
+
Keep FE open
+
Enable to not close the LinuxDVB frontend device in the idle state.
+
+ +

SAT>IP specific rows

+ +
+
Full Mux Rx mode supported
+
Enable, if the SAT>IP box supports the full mux rx mode (pids=all) + parameter.
+ +
Signal scale (240 or 100)
+
Some SAT>IP boxes has only 0-100 scale. If your signal is too low, try + value 100 here.
+ +
Maximum PIDs
+
Maximum supported PIDs in the filter of the SAT>IP box.
+ +
Maximum length of PIDs
+
Maximum length in characters for the command setting PIDs to the + SAT>IP box.
+ +
addpids/delpids supported
+
Enable, if the SAT>IP box supports the addpids/delpids command. + +
PIDs in setup
+
Enable, if the SAT>IP box requires pids=0 parameter in the SETUP RTSP command.
+ +
UDP RTP Port Number (2 ports)
+
Force the local UDP Port number here. The number should be even (RTP port). + The next odd number (+1) will be used as the RTCP port.
+ +
Satellite Positions
+
Select the number of satellite positions supported by the SAT>IP + hardware and your coaxial cable wiring.
+ +
Master Tuner
+
Select the master tuner. +

The signal from the standard universal LNB can be split using + a simple coaxial splitter (no multiswitch) to several outputs. + In this case, the position, the polarization and low-high + band settings must be equal.

+

If you set other tuner as master, then this tuner will act like + a slave one and tvheadend will assure that this tuner will not + use incompatible parameters (position, polarization, lo-hi).

+
+
+ +
diff --git a/src/webui/static/app/idnode.js b/src/webui/static/app/idnode.js index c172ff18..880565d6 100644 --- a/src/webui/static/app/idnode.js +++ b/src/webui/static/app/idnode.js @@ -458,6 +458,7 @@ tvheadend.idnode_editor_form = function ( d, panel ) tvheadend.idnode_editor = function(item, conf) { var panel = null; + var buttons = []; /* Buttons */ var saveBtn = new Ext.Button({ @@ -476,6 +477,15 @@ tvheadend.idnode_editor = function(item, conf) }); } }); + buttons.push(saveBtn); + + if (conf.help) { + var helpBtn = new Ext.Button({ + text : 'Help', + handler : conf.help + }); + buttons.push(helpBtn); + } panel = new Ext.FormPanel({ title : conf.title || null, @@ -490,7 +500,7 @@ tvheadend.idnode_editor = function(item, conf) //defaults: {width: 330}, defaultType : 'textfield', buttonAlign : 'left', - buttons : [ saveBtn ] + buttons : buttons }); tvheadend.idnode_editor_form(item.props || item.params, panel); @@ -1037,7 +1047,8 @@ tvheadend.idnode_tree = function (conf) if(!n.isRoot) current = panel.add(new tvheadend.idnode_editor(n.attributes, { title : 'Parameters', - fixedHeight : true + fixedHeight : true, + help : conf.help || null, })); panel.doLayout(); } diff --git a/src/webui/static/app/tvadapters.js b/src/webui/static/app/tvadapters.js index a15bb21b..d3353c09 100644 --- a/src/webui/static/app/tvadapters.js +++ b/src/webui/static/app/tvadapters.js @@ -1,3 +1,10 @@ tvheadend.tvadapters = function() { - return tvheadend.idnode_tree({ url: 'api/hardware/tree', title: 'TV adapters', comet: 'hardware'}); + return tvheadend.idnode_tree( { + url : 'api/hardware/tree', + title : 'TV adapters', + comet : 'hardware', + help : function() { + new tvheadend.help('TV adapters', 'config_tvadapters.html'); + } + }); }