html5video: moved index file into tvheadend
This commit is contained in:
parent
14708b4ef8
commit
74d424da00
3 changed files with 39 additions and 17 deletions
|
@ -186,6 +186,42 @@ extjs_root(http_connection_t *hc, const char *remain, void *opaque)
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
static int
|
||||
extjs_livetv(http_connection_t *hc, const char *remain, void *opaque)
|
||||
{
|
||||
htsbuf_queue_t *hq = &hc->hc_reply;
|
||||
|
||||
htsbuf_qprintf(hq, "<!DOCTYPE html>\n");
|
||||
htsbuf_qprintf(hq, "<html>\n");
|
||||
htsbuf_qprintf(hq, "<head>\n");
|
||||
htsbuf_qprintf(hq, "<title>HTS Tvheadend %s</title>\n", tvheadend_version);
|
||||
htsbuf_qprintf(hq, "<link rel=\"stylesheet\" type=\"text/css\" href=\"static/tv.css\">\n");
|
||||
|
||||
if(tvheadend_webui_debug) {
|
||||
extjs_load(hq, "static/extjs/adapter/ext/ext-base-debug.js");
|
||||
extjs_load(hq, "static/extjs/ext-all-debug.js");
|
||||
} else {
|
||||
extjs_load(hq, "static/extjs/adapter/ext/ext-base.js");
|
||||
extjs_load(hq, "static/extjs/ext-all.js");
|
||||
}
|
||||
|
||||
extjs_load(hq, "static/tv.js");
|
||||
extjs_exec(hq, "Ext.onReady(tv.app.init, tv.app);");
|
||||
|
||||
htsbuf_qprintf(hq, "</head>\n");
|
||||
htsbuf_qprintf(hq, "<body></body>\n");
|
||||
htsbuf_qprintf(hq, "</html>\n");
|
||||
|
||||
http_output_html(hc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -2240,6 +2276,7 @@ extjs_start(void)
|
|||
{
|
||||
http_path_add("/about.html", NULL, page_about, ACCESS_WEB_INTERFACE);
|
||||
http_path_add("/extjs.html", NULL, extjs_root, ACCESS_WEB_INTERFACE);
|
||||
http_path_add("/tv.html", NULL, extjs_livetv, ACCESS_WEB_INTERFACE);
|
||||
http_path_add("/capabilities", NULL, extjs_capabilities, ACCESS_WEB_INTERFACE);
|
||||
http_path_add("/tablemgr", NULL, extjs_tablemgr, ACCESS_WEB_INTERFACE);
|
||||
http_path_add("/channels", NULL, extjs_channels, ACCESS_WEB_INTERFACE);
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Tvheadend</title>
|
||||
<link rel="stylesheet" type="text/css" href="tv.css">
|
||||
<script type="text/javascript" src="extjs/adapter/ext/ext-base.js"></script>
|
||||
<script type="text/javascript" src="extjs/ext-all.js"></script>
|
||||
<script type="text/javascript" src="tv.js"></script>
|
||||
<script type="text/javascript">
|
||||
Ext.onReady(tv.app.init, tv.app);
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
|
@ -162,7 +162,7 @@ tv.ui.VideoPlayer = Ext.extend(Ext.Panel, (function() {
|
|||
},
|
||||
|
||||
_getUrl: function(chid, params) {
|
||||
var url = '../';
|
||||
var url = '';
|
||||
|
||||
if(params.playlist)
|
||||
url += 'playlist/channelid/'
|
||||
|
@ -383,7 +383,7 @@ tv.app = function() {
|
|||
field : 'number',
|
||||
direction : "ASC"
|
||||
},
|
||||
url : "../channels",
|
||||
url : "channels",
|
||||
baseParams : {
|
||||
op : 'list'
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue