GithubHelp home page GithubHelp logo

isabella232 / playa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from disqus/playa

0.0 0.0 0.0 301 KB

An audio playing web service

License: Apache License 2.0

JavaScript 1.12% Python 98.88%

playa's Introduction

Playa is a Python web service that streams music on whatever machine it's running under, as well as providing a web interface to manage what's playing.

Playa is currently under development

The current iteration, likely to change a lot:

http://f.cl.ly/items/1l2U2g1F1V173245453s/by%20default%202011-06-16%20at%208.32.15%20PM.png

Install

For now, we're going to assume you're on a OS X, as it hasn't been tested elsewhere.

  1. Start by installing VLC Player (specifically you need libvlc).

  2. Install Playa:

    pip install https://github.com/disqus/playa/zipball/master
    
  3. Start the service:

    playa start
    
  4. Visit http://localhost:9000 in your browser.

Configuration

Playa can be configured by either specifying --config=<filepath> or by creating a configuration file in ~/playa/playa.conf.py.

Example configuration:

import os.path

ROOT = os.path.normpath(os.path.dirname(__file__))

DEBUG = True

AUDIO_PATHS = ['/usr/share/music/']

WEB_HOST = '0.0.0.0'
WEB_PORT = 9000
WEB_LOG_FILE = os.path.join(ROOT, 'playa.log')
WEB_PID_FILE = os.path.join(ROOT, 'playa.pid')

DATA_PATH = os.path.join(ROOT, 'data')

If you change configuration you'll need to playa restart.

TODO

  • Replace infinite directory looping behavior with inotify/MacFS event apis in AudioIndex
  • Refactor AudioPlayer public API to be part of AudioThread.
  • Add dynamic playlists support
  • Add more controls (next/prev track proper, shuffle/repeat)
  • Add autoplay/party shuffle type controls
  • Add ajax polling to Now Playing interface

playa's People

Contributors

dcramer avatar issackelly 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.