Add direct RTSP links in the channel grid and in the DVB service grid
This commit is contained in:
parent
74582843b4
commit
799bb368a8
3 changed files with 32 additions and 0 deletions
|
@ -157,6 +157,15 @@ tvheadend.chconf = function()
|
|||
allowBlank: false
|
||||
})
|
||||
},
|
||||
{
|
||||
header: "Play",
|
||||
dataIndex: 'chid',
|
||||
width: 50,
|
||||
renderer: function(value, metadata, record, row, col, store) {
|
||||
url = makeRTSPprefix() + 'channelid/' + value
|
||||
return '<a href="'+url+'">Play</a>'
|
||||
}
|
||||
},
|
||||
{
|
||||
header: "XMLTV source",
|
||||
dataIndex: 'xmltvsrc',
|
||||
|
|
|
@ -362,6 +362,15 @@ tvheadend.dvb_services = function(adapterId) {
|
|||
dataIndex: 'svcname',
|
||||
width: 150
|
||||
},
|
||||
{
|
||||
header: "Play",
|
||||
dataIndex: 'id',
|
||||
width: 50,
|
||||
renderer: function(value, metadata, record, row, col, store) {
|
||||
url = makeRTSPprefix() + 'service/' + value
|
||||
return '<a href="'+url+'">Play</a>'
|
||||
}
|
||||
},
|
||||
{
|
||||
header: "Channel name",
|
||||
dataIndex: 'channelname',
|
||||
|
|
|
@ -75,6 +75,18 @@ function accessUpdate(o) {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
function setServerIpPort(o) {
|
||||
tvheadend.serverIp = o.ip;
|
||||
tvheadend.serverPort = o.port;
|
||||
}
|
||||
|
||||
function makeRTSPprefix() {
|
||||
return 'rtsp://' + tvheadend.serverIp + ':' + tvheadend.serverPort + '/';
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -126,6 +138,8 @@ tvheadend.app = function() {
|
|||
|
||||
tvheadend.comet.on('accessUpdate', accessUpdate);
|
||||
|
||||
tvheadend.comet.on('setServerIpPort', setServerIpPort);
|
||||
|
||||
tvheadend.comet.on('logmessage', function(m) {
|
||||
tvheadend.log(m.logtxt);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue