-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Melle Dijkstra
committed
Feb 24, 2018
1 parent
5ff1bb9
commit a68b25d
Showing
2 changed files
with
74 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,82 @@ | ||
# Python Music Player | ||
[![GitHub license](https://img.shields.io/github/license/MelleDijkstra/PythonMusicPlayer.svg)](https://github.com/MelleDijkstra/PythonMusicPlayer/blob/master/LICENSE) | ||
[![PyPI version](https://badge.fury.io/py/melon-music-player.svg)](https://badge.fury.io/py/melon-music-player) | ||
[![GitHub issues](https://img.shields.io/github/issues/MelleDijkstra/PythonMusicPlayer.svg)](https://github.com/MelleDijkstra/PythonMusicPlayer/issues) | ||
|
||
[![Twitter](https://img.shields.io/twitter/url/https/github.com/MelleDijkstra/PythonMusicPlayer.svg?style=social)](https://twitter.com/intent/tweet?text=MelonMusicPlayer:&url=https%3A%2F%2Fgithub.com%2FMelleDijkstra%2FPythonMusicPlayer) | ||
|
||
## Introduction | ||
|
||
This repository contains a python music player which acts as a server. It uses the vlc python bindings to play the music and socket communication to communicate with the Android Application which can be found [here](https://github.com/MelleDijkstra/AndroidMusicPlayerClient) | ||
|
||
## Installation | ||
|
||
If you want to run this program you need: | ||
### Windows | ||
|
||
Download executable from here | ||
[Download link]() | ||
|
||
__*! I experienced a bug with the windows executable, you sometimes need to press `enter` | ||
to activate the server again !*__ | ||
|
||
Besides that, it should work fine ;) | ||
|
||
### Linux (Debian | Raspberry Pi) | ||
|
||
(coming soon, on my todo list) | ||
I published a PyPi package, but I haven't tested it yet. | ||
To install run the following command: | ||
`pip install melon-music-player` | ||
|
||
### From source | ||
|
||
If you want to install/run the MelonMusicPlayer from source, | ||
or if you want to develop on the current code base (please feel free) | ||
run the following instructions: | ||
|
||
- Make sure you have installed python 3.5 or higher. [Python Download](https://www.python.org/downloads/) | ||
- The actual VLC program which can be found here ([VLC Download](http://www.videolan.org/vlc/)). | ||
|
||
**Windows**: For windows you can just install the executable | ||
|
||
**Linux**: For linux system it should be as easy as running `$ sudo apt-get install vlc`. | ||
|
||
**!Although, check their site for correct installation!** | ||
|
||
- Clone the project if you haven't already `$ git clone https://github.com/MelleDijkstra/PythonMusicPlayer` | ||
- Go to cloned folder `$ cd PythonMusicPlayer` | ||
- Then run `$ pip install -r requirements.txt` to install the packages needed | ||
|
||
(If you are installing the MelonMusicPlayer server on raspberry pi this process | ||
can take some time. The reason is because the server runs on gRPC which | ||
has to compile when installing for raspbian. This will hopefully be changed in the future (Please be patient!)) | ||
|
||
- Change any settings needed in `config.ini`. This is the configuration file for the server | ||
- Start the music server by running `$ python main.py`. | ||
|
||
Then use a client/controller to connect to the server. | ||
if you downloaded the source, there should be a `client.py`. Run this in another terminal/process to test the server. | ||
The client has quite some functionality but I will not be maintaining them. For full experience use one of the controllers | ||
like the [Android App](https://github.com/MelleDijkstra/AndroidMusicPlayerClient). | ||
|
||
### TODO | ||
(only server related tasks) | ||
|
||
* The actual VLC program which can be found here ([VLC](http://www.videolan.org/vlc/)). | ||
Windows can just install the executable and for linux system it should be as easy as running `$ sudo apt-get install vlc`. **Check their site for correct installation** | ||
* Make sure you have installed python 3.5 or higher. [Python install](https://www.python.org/downloads/) | ||
* Clone the project if you haven't already `$ git clone https://github.com/MelleDijkstra/PythonMusicPlayer` | ||
* Go to cloned folder `$ cd PythonMusicPlayer` | ||
* Then run `$ pip install -r requirements.txt` to install the packages needed | ||
* Change any settings needed in `config.ini` | ||
* Start the music server by running `$ python server-v2.py`. And then use the application to connect to the server | ||
- [ ] Able to send an MRL link to server to download | ||
- [ ] Handle all MediaDownloader RPC calls | ||
- [ ] Create distributions for: | ||
- [x] Windows | ||
- [ ] Debian | ||
- [ ] Ubuntu | ||
- [ ] Mac OS | ||
- [ ] Write good tests ;) | ||
- [ ] Retrieve album covers from media files and send them | ||
- [ ] Able to sync media files with clients/controllers | ||
- [ ] SoundCloud support | ||
- [ ] Store radio station urls in file and be able to stream them | ||
- [x] gRPC implementation | ||
- [x] Handle all MusicPlayer RPC calls (play, pause, ...) | ||
- [x] Retrieve album & song list | ||
- [x] Volume control | ||
- [x] Queue music (next & previous song selection) | ||
- [x] Write tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
config = { | ||
'name': 'melon-music-player', | ||
'version': __version__, | ||
'description': 'A MusicPlayer which can be controlled by different clients', | ||
'description': 'A MusicPlayer which can be controlled by different controllers', | ||
'long_description': open('README.md').read(), | ||
'author': 'Melle Dijkstra', | ||
'author_email': '[email protected]', | ||
|