Giter Site home page Giter Site logo

beatstream's Introduction

Beatstream Code Climate Build Status

IMPORTANT: I have been experimenting with some re-writes and I'm now slowly porting these changes from my dev branch into master. Stay tuned!


Beatstream is an app for streaming music from your computer to anywhere with a modern Web browser! (Beatstream currently requires Ruby to be installed on your computer)

Screenshot

Installation

$ git clone --recursive git://github.com/Darep/Beatstream.git
$ cd Beatstream
$ bundle
$ rake db:migrate
$ cp config/initializers/music_paths.rb.sample config/initializers/music_paths.rb
$ nano config/initializers/music_paths.rb
-> Change 'music_path'
$ rails console
-> User.create(:username => 'you', :email => '[email protected]', :password => 'secret', :password_confirmation => 'secret')
-> exit
$ rails server -d

Open Chrome and surf to http://0.0.0.0:3000 address. Log in and wait when indexing ends, refresh page and happy listening!

Known issues

HTTPS/SSL: When running in production environment, the app forces SSL on. To disable this, change config.force_ssl in config/environments/production.rb to false and it shouldn't redirect to https.

Last.fm: You need to manually go to https://localhost:3000/settings and do the authentication there.

Media Library: Opens a blank page after refresh is done. Just go back, and start listening :)

Flash/Firefox crash: Beatstream's Flash plugin (SoundManager2) crashes sometimes. Restart browser / Flash.

UTF-8 problems: Sometimes song info looks garbled. Sometimes Beastream can't play songs with funny characters in filenames or paths.

Endlessly spinning loader: You probably have a Flash block of some kind. Allow Beatstream to use Flash.

These are also listed on http://www.beatstream.fi/#quirks.

License

Copyright (c) 2012–2015 Antti-Jussi Kovalainen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software with only one restriction: selling of the Software, or software and associated documentation files derived from it (the "Derived software"), is only permitted with the permission of the copyright owner.

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

beatstream's People

Contributors

darep avatar stefkin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

beatstream's Issues

Add transcoding support

Support for transcoding files that are in format that isn't supported in client applications, ie. browsers support different codecs and containers etc.

Media library re-index UX is stupid

There is no visible indicator for the re-indexing process and after it is done, you see a blank page.

Proposed implementation:

  1. Use AJAX
  2. Add a "Indexing..." -indicator on the top bar when it is indexing
  3. Show a visible message when indexing is complete
  4. Refresh "All Music" -view with the new songs

Can´t make login in system

I have a problem after login. Every time that I try to login, I will redirected to login page again. This error show on server log

ActionController::RoutingError (No route matches [GET] "/api/v1/profile"):

replace mp3info with mediainfo

Why don't we use mediainfo instead of mp3info, which will allow us to get media info for files other than mp3 e.g. m4a, mp4 etc. I have tried it myself in a cloned repo. Only problem i faced was that default flash player wasn't able to play m4a file, i have changed the default player to html5audio. It seems to work now :)

mediainfo is a wrapper gem for mediainfo library(which can be installed inside ubuntu through sudo apt-get install mediainfo, more info at: http://mediaarea.net/en/MediaInfo)

Save last state

Save the last state. Last song and playlist that was playing. Retrieve last state (song and playlist) on startup and automatically scroll the songlist to the correct location. Just like in rdio ;)

Re-indexing process can be started multiple times

Users can start the re-indexing process as many times as they want while the last re-index is still running. This will eat extra CPU time, there should instead be an alert saying "Re-indexing is already under way!"

Deploy Beatstream

Hi, is just a little question. What's the best strategy for deploy a Beatstream app? capistrano could be a good choice?

Save song history

Especially when shuffling, it would be nice to be able to go back to the previous song.

Support advanced search strings

Search strings such as:

  • "d fast" -- for matching that exact string
  • word OR word -- for matching both words (currently everything is AND)

ActiveRecord error on fresh set-up

Installing fresh on my machine and loading up 0.0.0.0:3000 shows me ActiveRecord::RecordNotFound in MainController#index page.

Error:
Couldn't find User without an ID

App Trace:
app/controllers/application_controller.rb:13:in user' app/controllers/application_controller.rb:9:inauthorize'

I get around it by changing application_controller.rb
@user ||= User.find(session[:user_id])
to
@user ||= User.find_by_email('hardcoded_email')

Iconv deprecated

Since iconv was deprecated in 1.9.3, I wasn't able to run the database migration until including iconv in the Gemfile.

Sorting can take a long time and there is no indicator

Whenever you click to sort the playlist, there is no indicator that the app is sorting the playlist which results in the user wondering if the click was received at all.

There should be a clear yet subtle indicator that the app is sorting the playlist.

Running MediaReader.refresh fails to write songs.json

Hey Darep

Thanks for the app. Unfortunately I ran into an error:

NoMethodError: undefined method `to_natural_sort_string' for true:TrueClass
    from /home/mathieu/workspace/beatstream/app/services/media_reader.rb:34:in `each'
    from /home/mathieu/workspace/beatstream/app/services/media_reader.rb:34:in `sort_by'
    from /home/mathieu/workspace/beatstream/app/services/media_reader.rb:34:in `refresh'
    from (irb):7
    from /home/mathieu/.rvm/gems/ruby-2.1.0/gems/railties-3.2.19/lib/rails/commands/console.rb:47:in `start'
    from /home/mathieu/.rvm/gems/ruby-2.1.0/gems/railties-3.2.19/lib/rails/commands/console.rb:8:in `start'
    from /home/mathieu/.rvm/gems/ruby-2.1.0/gems/railties-3.2.19/lib/rails/commands.rb:41:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

I have no idea where that true could be coming from. Might be a corrupted file. I'm running it on console for now and will probably end up going to use select{|s| s.is_a?(Song)} as a quick fix.

Let me know

Playing fails on Firefox w/ Flashblock

Flashblock blocks the SoundManager 2 flash on Firefox and the playing silently fails.

Solution: Display a visible alert telling the user to disable Flashblock here.

Playing sometimes silently stops

Sometimes, after a song has played, the player will not advance to the next song but instead just stop playing.

This probably has something to do with the HTML5 tag.

Artist / album browser

Add into the left sidebar just below "All Music":

  1. Links to "Artists & Albums"
  2. Cool looking view of artists and albums
  3. Profit!

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.