Turns a directory of media files into a hosted web view and m3u streamable playlist.
go get github.com/toby/dirm3u
dirm3u
will recursively search the working directory for media files, host
them and generate a web view with html5 video and a .m3u playlist for all
compatible types (see extensions.go).
dirm3u [FLAG]
-h string
hostname (default "localhost")
-p int
http server port (default 20202)
-l int
limit results per page in web view (default 5)
Once running, you can hit the following endpoints:
- http://localhost:20202/
- Web view with streamable html5
<video>
tags.
- Web view with streamable html5
- http://localhost:20202/playlist.m3u
- The auto-generated .m3u playlist.
- http://localhost:20202/reload
- Rescan the current directory for an update file list.
- http://localhost:20202/media/MEDIA
- Streamable hosted media. Replace MEDIA with a valid file path.