GithubHelp home page GithubHelp logo

ptdel / tswf-player Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 44 KB

the audio player for Tasty Shapes with Friends, an online jukebox.

License: MIT License

JavaScript 5.98% Dockerfile 2.97% Python 91.05%

tswf-player's Introduction

Tasty Shapes With Friends - API

MIT license Release Unit Tests

A tiny SaaS for sharing song links with your friends over a common stream.

About

You can build full documentation for this project by doing the following:

$ cd doc/
$ make html
$ make -b coverage

generated documentation is stored in doc/build/html, with a report of any undocumented code in doc/build/coverage.

tswf-player is a media player for interacting with a queue that serves as a playlist fromtswf-api:

  • tswf-api serves the flask routes for interacting with the queue
  • tswf-player plays song links submitted to the queue by calling the api

This project is intended to be run with docker-compose. Depending on what operating system you are using, you may want to grab it from your package manager, or directly from upstream.

should be able to simply run:

docker build -t <name> .

and after you've built the container:

docker-compose up -d or docker run -d -p8081:8081 player:latest

NGINX

It's assumed that the API and Player are sitting behind NGINX. Included in this repository is an example rtmp.conf. The rtmp.conf should be included within its own block of your nginx.conf. An example nginx.conf is provided below:

user  nginx;
worker_processes  1;

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    ssl on;
    ssl_session_cache	shared:SSL:10m;
    ssl_session_timeout	10m;
    ssl_session_tickets	off;

    sendfile        on;
    keepalive_timeout  70;
    include /etc/nginx/conf.d/api.conf;
}

include /etc/nginx/conf.d/rtmp.conf;

NGINX needs to be built with the RTMP Module in order to serve player content. Compile NGINX with the following ./configure flag: --add-module=/path/to/nginx-rtmp-module

Built With

Contributing

  1. Fork the repository
  2. Clone the project from your forked repository to your macine
  3. Commit changes to your own branch
  4. Push your changes on your branch to your forked repository.
  5. Submit a Pull request back to our repository for review.

NOTE: always merge from latest upstream before submitting pull requests.

Versioning

Semantic Versioning will be used to version this project. Please consult the releases page for a complete list of available versions.

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgements

verboten the IRC bot currently serving as the DJ for the live version running among friends. Written by d3d1rty

tswf-player's People

Contributors

googlebot42 avatar ptdel avatar

Watchers

 avatar  avatar  avatar

tswf-player's Issues

sphinx docs

generate code from comments and enforce coverage

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.