Git Product home page Git Product logo

foam's Introduction

foam = Fomantic & Ampache

foam is a web player frontend for Ampache using the Fomantic UI CSS framework. It is mostly PHP, JS, CSS and HTML and designed to be simple and portable.

The micro player is js and uses the howler audio library. The Ampache json API calls are made via PHP.

Core Features

  • Browse by recently played, newest added, most frequent, favourited and random album views.
  • Browse by artists, albums or tracks with filters.
  • Browse, create and add to playlists. Edit, rename and delete playlists.
  • Play or shuffle albums.
  • Add individual songs or albums to current play queue.
  • View current queue via pulldown list. Jump ahead or back in queue via clickable list.
  • Drag and drop reorder of play queue. Save play queue to permanent playlist.
  • Top of screen micro player with transport controls, mini art thumbnail and volume, mute controls.
  • Favourite or unfavourite individual tracks or albums.
  • Download links for individual tracks.
  • Smart search bar for album, artist and song search.
  • Persistent pages - can use back and forwards browser buttons.
  • Can playback all formats from your Ampache collection in FLAC, WAV or MP3.
  • Four built in colour schemes or add your own web colours in editable config.
  • Series Match finds multi volume album sets.
  • SupaMIX function creates huge randomised playlists from boxsets or collections of albums.
  • Easily create artist playlists from multiple albums and compilations.

Demo

You can test the foam interface using your own Ampache database by using the demo here:

http://foamdemo.mcgee.technology/

Juts point the host to your Ampache server and log in with your Ampache credentials.

Future Roadmap (after full stable release)

Trello: https://trello.com/b/AgzQmuvO/foam

Kiosk Mode (current mode):

  • Streaming and smart radio.
  • Smart playlists and musicbrainz integration.
  • Dedicated mobile devices layout.

Advanced Mode:

  • Dual player with track mixing capabilities (vol, crossfade, pitch etc).
  • Advanced playlists (create set lists with advanced tagging and filters).
  • Waveform and bpm analysis and tagging.
  • Volume normalization.
  • Auto mixing/crossfading and AI track selection.

Overview

Installation

Download the latest release and simply drop everything into your public html directory of your PHP enabled web server and away you go. No building should be necessary as it is designed to be self contained.

You need an Ampache server somewhere.

Some options (mainly theming) can be found in config/foam.conf.php which sets a few php variables.

Ampache authentication is stored in browser cookies. If "Remember me" is NOT selected cookies will expire after the current browser session. This is advisable on a public or borrowed computer - always close your browser when finished to destroy all session cookies.

If "Remember me" is selected cookies will live for 1 year. Use the logout option in settings to remove cookies and force login.

Note: If you change Ampache credentials so your current cookies no longer validate you will be asked to re-login. Note: You should NOT consider foam as highly secure. It is still in development.

Development Status - Early Beta

Status: 100% operational on desktop. Formatting improvements and bug fixing now underway in Phase 2.

Phase 1 (Complete):

Finished the core functionality including all major features for first stable release.

Phase 2 (Current):

Adjust styling to polish fonts, palette, element position, theme options and bug fixing.

Phase 3 (Started):

Code optimisation, clean up, minimisation, speed, etc.

Not Yet Working

  • Mobile device friendly view

Known Issues

  • Need a timeout if Ampache host unreachable in order to sign in again
  • Sometimes the track timer glitches after seeking with the slider

Testing

Testing on Chrome (Windows and Linux) during initial development.

  • Testing library with all FLAC playback
  • Ampache: dev (testing 5.2)
  • Apache: 2.4.41
  • PHP: 7.4.3

Acknowledgements & Dependencies

  • Inspired by the subsonic player subplayer - a really nice looking web player for subsonic.
  • Using Fomantic UI components (v2.8.8).
  • Using howler.js (v2.2.3) audio library for media playback (In HTML mode for better FLAC playback).
  • Fomantic (Semantic) UI is still dependent on jquery (pulled from CDN - no need to include it).
  • Of course you need a backend Ampache server.
  • And a PHP enabled webserver (PHP version 7.4+ recommended).

License

Licensed under the GNU General Public License v3.0.

foam's People

Contributors

andrew-mcgee avatar finno- avatar

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.