Coder Social home page Coder Social logo

go-player's Introduction

go-player

Introduction

alt tag

go-player is a basic web interface to omxplayer on the Raspberry Pi. You give it a filepath where you store all your video files and it will find anything ending in an extension put in the extension list and then display all those files on a webpage for you to be able to search through and then click on to start the video. From there you can then send commands to the film (such as pausing, fast forwarding, rewinding and of course stopping the film completely).

Building and Installing

After you've downloaded it, cd into the directory and compile it with go build and run it with ./go-player. Once it's running, go to http://ip-of-RPi:8080 for the fun to begin. You can move the directory to wherever you want just make sure you include the HTML files with it as they're set up to look for a relative path (easily changeable of course in the code).

To Do

Check the issues tracker for feature implementations, bugs and so on.

Background

This is the go version of my other project, sto-player which is written in python and uses web.py and popen as external dependencies. One of the reasons I started this project was I noticed a bit of slowness to sto-player on occasion (Testing this on the RPi2 hardware). sto-player could sometimes take around 2 seconds to perform commands like starting or stopping a film. go-player in contrast however is pretty much instantaneous in everything it does.

Note: You may think that this is due to the fact that I saved the file information into a sqlite database in sto-player, but this is even when we take this into account by removing that functionality

Requirements

go-player depends has no external dependencies and uses only the go standard library, so if you have go installed, that's all you need to compile the program and get started.

How to Use

As mention in the intro, you give it your media directory location, navigate to http://ip-of-RPi:8080 in your web browser and select a movie from there. The interface is pretty straight forward I believe, so I don't think there is much of a need of an explanation beyond that. Since there is always room for improvement, feel free to contact me regarding improvements or suggestions to the interface or the application itself.

License

go-player is released under the MIT license, please refer to the LICENSE file for more information.

go-player's People

Contributors

alenbasic avatar samtech09 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

go-player's Issues

Include installer for go-player

Presently go-player does not have an installer and it is thus left up to the user where to place the files and where to run go-player from. Ideally an installer should be created, which also includes a systemd unit file so that they can start, stop and restart a go-player without having to use it in screen or tmux.

Display and edit media locations on the setup page

Currently, the setup page does not show the user which locations are configured. Ideally this should not only list all the file paths currently added, but further allow users to edit and remove them.

Ability to add more than one location

Currently only one location is able to be chosen at a time. This can be rather inconvenient as the user might not want to have to choose a parent folder to all locations to have go-player crawl through (the parent folder in a worst case scenario could end up being root (/)).

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.