Coder Social home page Coder Social logo

lystra.html's Introduction

lystra.html

So, you have all these oggs or mp3s you ripped from the CDs you used to buy lying on a server in your home network and you want to play them from the android tv box, the laptop in the coffee table and the old ipad in the kitchen. But just surfing in on the server gives you a html listing per folder.

Drop lystra.html in the root folder of your music collection and surf to it. It will fetch the directory listing of the folder where it lies and present you with a music browser where you can queue up tracks, play/pause etc.

All in html5.

lystra.html's People

Contributors

jensdpersson avatar

Stargazers

Olivier Kaloudoff avatar Eric.B avatar

Watchers

James Cloos avatar  avatar Eric.B avatar Olivier Kaloudoff avatar

lystra.html's Issues

Enqueue Infinite Loop

First off, awesome work so far! I much prefer the buttons to the previous system. I know what the hell I'm clicking when I'm on a mobile OS!

I have a problem though. If I Enqueue a sub directory, eventually it follows the ..'s and Enqueue's everything out of the directory. For example if I have foo/bar/alpha/beta. If I Enqueue alpha, it will do everything in Alpha, beta, then .. (bar) then .. (foo) And so forth.

If it matters, running lighttpd.

Search Function

A request from my wife, a search box. Simple regex search of folder names in the tree. Automatically expand hit folders.

Gui place for better misconfiguration feedback

Common error cases could be detected and described how to fix in the gui. There needs to be a place for these.

Some options would be_

  • the console log, but not every one will expect messages there to be usable.
  • an alert, but if it is to be used for errors that come a lot it will be too annoying
  • a section in the ui, perhaps below history.

Some error conditions that should be handled:

  • If there is a 403 on the directory listing, not at all wierd to get, then the track listing will just not populate. There could be a message describing this, perhaps with sections for different web servers.
  • If the listing is served in an unsupported mime this could be listed.
  • If a track serves with an unsupported mime.

So, this feels like two categories. Per session and per track. We could keep per-track info in a log section perhaps, and put more fatal errors as alerts. Then again, if someone serves a music collection with lots of symlinks between different folders the 403s can come at any subfolder.

Starting to feel everything should go in a log section below history. Or, log records are kept in the history.

We'll see.

Parent folder link

there may be actual links in the substrate html but we should add a button with a proper parent folder link

Playlist options

Would be nice to add some buttons to the playlist. Ordering buttons would be nice. So "up" and "down" button to change the playlist order.

Could also make the items drag and droppble. But this would require "click to dequeue" to be disabled and a close button implemented.

A clear playlist button would be nice. A shuffle button to reorder the list randomly. And finally a repeat button that adds a finished song back to the playlist at completion.

So Bullet Points:

  • Playlist order buttons (Up and Down)
  • Clear Playlist Button
  • Randomize Playlist Order
  • Repeat/Loop Playlist Button

Not working with Lighttpd

Assuming I'm doing this correctly. The script is not working with a default lighttpd install.

I am assuming I just need to put the .html file in a folder and any mp3's in that folder will show up when I navigate to that page. Sadly, nothing shows up. Not even sub folders.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.