purinda / grooveshark-server Goto Github PK
View Code? Open in Web Editor NEWServer which gives multiple users ability to connect, queue and play songs. Goal was to build an embedded streaming device using a Raspberry Pi single board computer.
Server which gives multiple users ability to connect, queue and play songs. Goal was to build an embedded streaming device using a Raspberry Pi single board computer.
Hi there,
I have been trying to get this project working for a few days now, and so far I have gotten the server up and the webui to display. When I connect the server responds, but when I use any of the controls they do nothing, whereas in one of your videos you can see the console displaying every request from the volume slider etc.
I have installed apache, php, QT5, pulseaudio, Gstreamer (Including plugins) and the server and WebUI.
I'm sure I am missing a step or something, but I really cannot figure out what it is, and was wondering if you would be able to give me some guidance please?
Thanks.
First of all, thank you for your work, your project is very interesting!
I have installed ArchLinux and the required packages (gcc,qt5-tools, qt5-multimedia, gstreamer, and I think that's all)
When I am trying to compile I got this output:
g++ -c -pipe -march=armv6 -mfloat-abi=hard -mfpu=vfp -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -std=c++0x -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I../../grooveshark-server-master -I/usr/include/qt -I/usr/include/qt/QtMultimedia -I/usr/include/qt/QtGui -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtCore -I. -I. -o main.o ../main.cpp
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See https://github.com/archlinuxarm/PKGBUILDs/issues for instructions.
Makefile:2007: recipe for target 'main.o' failed
make: *** [main.o] Error 4
I don't know what's wrong!
Hi, Basically I've got a few issues with getting this to work on Ubuntu 15.04
I've installed all the required things QT5, Apache, PHP and so on I've managed to get it to compile but the issue is when i try sending a command from the web panel it simply wont connect it says there's a connection request when i connect through the port 16444 to the server but it wont find any songs and so on... if you can explain exactly how i'm mean't to get this too work id be most appreciative.
Kind Regards
Minor requirements
Purinda,
Per your request, I have started a new issue to address my inability to play music through the grooveshark server.
uname -a:
Linux SubiRPi 3.12.24-1-ARCH #1 PREEMPT Thu Jul 10 23:57:15 MDT 2014 armv6l GNU/Linux
cat /etc/lsb-release is not available.
QT Version: 5.3
OS: Arch Linux on a Raspberry Pi
I managed to get the server compiled on both my RPi and Ubuntu 14.04. On Ubuntu, it would stop at buffering(probably buggy Qt5 or something). When I run it on the Pi, I do get a response from the server(that makes me really happy), but the server outputted the following:
RESPONSE: "{"header":{"session":"e593c84134fddaec8405abeeeb6c1e94","serviceVersion":"20100903","prefetchEnabled":true},"result":{"FileID":"62138450","uSecs":"178050000","FileToken":"6MwEWy","ts":1406530819,"isMobile":false,"SongID":40635563,"streamKey":"7a01bd056a9030e0c0a1c49b5bd041fcc0e456c4_53d5fc0b_26c0cab_3b42852_13f487c49_1_400","Expires":1406532619,"streamServerID":512,"ip":"stream176a-he.grooveshark.com"}}"
Buffering...
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
FATAL: cannot locate cpu MHz in /proc/cpuinfo
I have no idea what threw the above error. I'm looking into it now.
Richard
I found an issue with not receiving requests coming from clients when there are more than 1 client is connected.
How to replicate.
I am getting the following error when attempting to compile on raspberry pi:
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtMultimedia -I/usr/include/qt4 -I. -o main.o main.cpp
In file included from qserver.h:15:0,
from main.cpp:6:
lib/grooveshark/qplayer.h:5:24: fatal error: QMediaPlayer: No such file or directory
compilation terminated.
make: *** [main.o] Error 1
I believe I have installed all dependencies correctly, but I may be mistaken. Any help would be much appreciated!
Hi,
I managed to install the server and webgui on ubuntu 14.04. It works everything except when I select a song and press play the server console windows show that the song was found and writes down "Buffering" and stops..sometimes I get "host cannot be resolved".
Thanks for your help.
br Luka
Hi,
I've been trying for a good few hours to get this working on my Raspberry Pi this evening to no avail :( The first hurdle was to get a working copy of Arch as they no longer publish SD images. Once this was complete the next hurdle was to install all the required packages to compile. Once this was complete the next hurdle was to install and configure a lamp stack which was no small feat to a typical linux amateur such as myself. However, I managed to do this and had a terminal window open with the compiled grooveshark app running and the front end showing in Chrome.
However, I never managed to get any songs playing. I could browse the Grooveshark library and add songs to the queue but on pressing play I could see that the terminal window was reporting that the play command was being received by the server, not a request to play a song by any particular ID. So I decided to telnet into the Pi and send manual commands.
On requesting to play a particular track I received the error of Error: "Error resolving ' ': Name or service not known" and this was still the case after finding my session ID and popping that into the settings file.
Would it be possible to host a / your working version of the setup on a Raspberry Pi as an image which could easily be written to an SDcard with any instructions in case any variables such as user accounts etc need replacing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.