Add direct RTSP links in the channel grid and in the DVB service grid

This commit is contained in:
Andreas Öman 2009-11-18 22:25:21 +00:00
parent 74582843b4
commit 799bb368a8
3 changed files with 32 additions and 0 deletions

View file

@ -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',

View file

@ -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',

View file

@ -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);
});