No audio in HTTP / web clients

Hello. Tried to search, but didn’t get results that have the problem exactly like mine. I’m using Fedora Server 22, installed all the necessary packages and got mopidy to run succesfully. I’m mainly going to use mopidy as a streaming server to stream music to my macbook web browser or android phone, but can’t get anything to play. I have tried Moped, Mopify and MusicBox but any of those won’t play any music.

My mopidy.conf:

[local]
enabled = true
library = json
media_dir = /media/giant/levyt
data_dir = /home/rolle/mopidy/data
playlists_dir = /home/rolle/mopidy/playlists
scan_timeout = 1000
scan_flush_threshold = 1000
excluded_file_extensions =
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .png
  .txt

[mpd]
hostname = ::
password = XXXX

[http]
enabled = true
hostname = 192.168.2.100
port = 6680
static_dir =
zeroconf = Mopidy HTTP server on $hostname

[spotify]
username = XXXX
password = XXXX

[subsonic]
hostname = 192.168.2.100
port = 4040
username = XXXX
password = XXXX
ssl = no

[mopify]
enabled = true
debug = true

[stream]
enabled = true
protocols =
    http
    https
    mms
    rtmp
    rtmps
    rtsp
timeout = 5000
```

When running mopidy and clicking play:

[00:33:47] [58.0 C] rolle ~ $ mopidy
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
INFO Starting Mopidy 1.1.0
INFO Loading config from builtin defaults
INFO Loading config from /home/rolle/.config/mopidy/mopidy.conf
INFO Loading config from command line options
INFO Enabled extensions: mopify, mpd, http, moped, stream, m3u, softwaremixer, file, musicbox_webclient, local
INFO Disabled extensions: none
INFO Starting Mopidy mixer: SoftwareMixer
INFO Starting Mopidy audio
INFO Starting Mopidy backends: StreamBackend, M3UBackend, FileBackend, LocalBackend
INFO Audio output set to "autoaudiosink"
INFO Loaded 0 M3U playlists from /home/rolle/.local/share/mopidy/m3u
WARNING Failed expanding path ($XDG_MUSIC_DIR) fromfile/media_dirs config value.
INFO Loaded 19877 local tracks using json
INFO Starting Mopidy core
INFO Starting Mopidy frontends: QueueManagerFrontend, MpdFrontend, HttpFrontend
INFO MPD server running at [::]:6600
INFO HTTP server running at [::ffff:192.168.2.100]:6680
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
ERROR GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.


Any newbie tips?

Mopidy, like MPD, plays the music on the server, not the clients. The clients only control the playback. Streaming music over http isn’t supported out the box, there is a note in the docs somewhere about this.

https://docs.mopidy.com/en/latest/config/#streaming-through-shoutcast-icecast

Oh, right. I just remember setting up a succesful streaming client with mpd back in the days. I guess I’ll have to stick to Subsonic, Mopidy just seemed more sophisticated and fun to try. Not to mention easier to maintain.

Maybe this,

or this

will do what you want. If you want something light to use on your local network.

Also, why not just share the file from the server (NFS SAMBA something) to the devices?

Because Last.fm, statistics, cool features, etc. It’s nice to have a “Spotify of my own” with only music I myself listen. I’m using Subsonic/Musiccabinet, but it’s a bit outdated and when looked for alternatives Mopidy popped up and Mopidy-Mopify seems kinda nice. For now I just continue developing my theme on Subsonic, see here https://github.com/ronilaukkarinen/rolleshark

Thanks anyway.