From: Andreas Ă–man Date: Fri, 2 May 2008 05:46:12 +0000 (+0000) Subject: Add URL for RTSP streaming X-Git-Tag: 2.12~1070 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ea99d9e7a5cc863c7aa8df129ad72ccec99cd40;p=thirdparty%2Ftvheadend.git Add URL for RTSP streaming --- diff --git a/ajaxui/ajaxui_channels.c b/ajaxui/ajaxui_channels.c index 2ed653565..bcd04e1dc 100644 --- a/ajaxui/ajaxui_channels.c +++ b/ajaxui/ajaxui_channels.c @@ -16,6 +16,10 @@ * along with this program. If not, see . */ +#include +#include +#include + #include #include #include @@ -23,6 +27,7 @@ #include #include + #include "tvhead.h" #include "http.h" #include "ajaxui.h" @@ -131,6 +136,7 @@ ajax_channel_tab(http_connection_t *hc, http_reply_t *hr, th_channel_t *ch; th_channel_group_t *tcg; char dispname[20]; + struct sockaddr_in *si; if(remain == NULL || (tcg = channel_group_by_tag(atoi(remain))) == NULL) return HTTP_STATUS_NOT_FOUND; @@ -146,6 +152,8 @@ ajax_channel_tab(http_connection_t *hc, http_reply_t *hr, ajax_box_begin(tq, AJAX_BOX_SIDEBOX, NULL, NULL, dispname); + /* inner */ + tcp_qprintf(tq, "
"); @@ -158,6 +166,17 @@ ajax_channel_tab(http_connection_t *hc, http_reply_t *hr, ch->ch_icon); } + tcp_qprintf(tq, "
"); + + tcp_qprintf(tq, "
"); + + si = (struct sockaddr_in *)&hc->hc_tcp_session.tcp_self_addr; + + tcp_qprintf(tq, + "Stream", + inet_ntoa(si->sin_addr), ntohs(si->sin_port), + ch->ch_sname); + tcp_qprintf(tq, "
"); tcp_qprintf(tq, "");