Environment - Sever: Apache2 - Language: Php 5 - OS: Linux 9.04 Goal Playing Mp3 files directly on the sever system, not in browser. Hints Already tried several players like "vlc", "gstream", "totem", but nothing did work, although the same commands work great in terminal. Below you see the output of a gstream call. $ sudo gst-launch-0.10 playbin uri=file:'///tmp/beispiel.mp3' ERROR: from element /GstPulseSink:audiosink-actual-sink-pulse: Failed to connect: Connection refused Additional debug info: pulsesink.c(708): gst_pulsesink_open (): /GstPulseSink:audiosink-actual-sink-pulse Setting pipeline to PAUSED ... Pipeline is PREROLLING ... ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... FREEING pipeline ... (gst-launch-0.10:3369): GStreamer-CRITICAL **: Trying to dispose element playbin0, but it is not in the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up.
It's a light and sound system for theaters on a laptop which works as a web browser and apache server as well. At first the mp3 files were played on a flash player in the webbrowser but I exposed that there is a unacceptable delay o starting a play. That's why I am searching for an alternative. I did find out that the system players on ubuntu plays without delay and can be controlled by shell commands but I am am also amenable for other solutions.
If you dont want delay, you need fast,stable internet connection for your server so music players wount need buffer your stream, or you can edit swf player, and turn of buffer, so it will play what will recive, if your server internet will turn off for sec or two, song will stop, but if you will use buffer, what means there will be delay what will give continuously playing even your server internet will turn off for few seconds!
Do you know a flash whose buffer can disabled without editing the code? Server and browser runs on the same system hence the connection doesn't matter.
@ neegeris: Unfortunately not for me. The totem media player brings the same error if I start it with via a c++ application. Thats stands to the reason that the problem comes from missing user rights of the "www-data" user of the webserver. The error message: Cannot open display: Run 'totem --help' to see a full list of available command line options.