Kodi Community Forum
Playing files from HTTP server - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Playing files from HTTP server (/showthread.php?tid=362281)



Playing files from HTTP server - Segfault - 2021-04-27

Apache is configured not to give directory listing, to create index.html I used command 'tree -H . > index.html'. Now I can point my browser to this subdirectory in server and play MP4 files. It is OK when using a PC, but I haven't figured out how to play these files with Kodi. I did search the Wiki, but ... it certainly is possible, right? Do I have to install some add-on?


RE: Playing files from HTTP server - Fuzzard - 2021-04-27

parsing of html sources in kodi is essentially hand tailored to common http server index pages. If your "tree -H . > index.html" doesnt create a "standard" html index page, it wont be parsed, and therefore no items will be found.

The example layouts of index files that are supported can be found here https://github.com/xbmc/xbmc/tree/master/xbmc/filesystem/test/data/httpdirectory


RE: Playing files from HTTP server - Segfault - 2021-04-27

Thanks for reply! This is the top of the index.html, you see anything wrong with it?
Code:
<!DOCTYPE html>
<html>
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 <meta name="Author" content="Made by 'tree'">
 <meta name="GENERATOR" content="$Version: $ tree v1.8.0 (c) 1996 - 2018 by Steve Baker, Thomas Moore, Francesc Rocher, Florian Sesser, Kyosuke Tokoro $">
 <title>Directory Tree</title>
 <style type="text/css">
  <!-- 
  BODY { font-family : ariel, monospace, sans-serif; }
  P { font-weight: normal; font-family : ariel, monospace, sans-serif; color: black; background-color: transparent;}
  B { font-weight: normal; color: black; background-color: transparent;}
  A:visited { font-weight : normal; text-decoration : none; background-color : transparent; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
  A:link    { font-weight : normal; text-decoration : none; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
  A:hover   { color : #000000; font-weight : normal; text-decoration : underline; background-color : yellow; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
  A:active  { color : #000000; font-weight: normal; background-color : transparent; margin : 0px 0px 0px 0px; padding : 0px 0px 0px 0px; display: inline; }
  .VERSION { font-size: small; font-family : arial, sans-serif; }
  .NORM  { color: black;  background-color: transparent;}
  .FIFO  { color: purple; background-color: transparent;}
  .CHAR  { color: yellow; background-color: transparent;}
  .DIR   { color: blue;   background-color: transparent;}
  .BLOCK { color: yellow; background-color: transparent;}
  .LINK  { color: aqua;   background-color: transparent;}
  .SOCK  { color: fuchsia;background-color: transparent;}
  .EXEC  { color: green;  background-color: transparent;}
  -->
 </style>
</head>
<body>
    <h1>Directory Tree</h1><p>
    <a href=".">.</a><br>
    |-- <a href="./2015/">2015</a><br>
    |   |-- <a href="./2015/file1.mp4">file1.mp4</a><br>
...