Have a setup with pimusicbox and shairport-sync installed. I can play airplay audio over the speakers without issue. Playing streams from TuneIn or youtube via pimusicbox are very sluggish - either they dont play or play after a very long time. I also noticed, generally after playing an airplay stream and stopping I am not able to play any more streams via mopidy.
Earlier I was able to do all of this without any issues. I have attached a copy of the mopidy.conf file - generated by sudo mopidyctl config. Any help would be appreciated!
Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf config" as user mopidy
WARNING /etc/mopidy/mopidy.conf has errors, line 18, 19 has been ignored.
cache_dir = /var/cache/mopidy
config_dir = /etc/mopidy
data_dir = /var/lib/mopidy
max_tracklist_length = 10000
color = true
console_format = %(levelname)-8s %(message)s
debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s
debug_file = /var/log/mopidy/mopidy-debug.log
config_file = /etc/mopidy/logging.conf
mixer = software
output = autoaudiosink
enabled = true
enabled = true
def_time = 8:00
def_random = false
def_volume = 100
def_vol_inc_duration = 30
enabled = true
encoding = mp3
quality = fast
enabled = true
musicbox = false
on_track_click = PLAY_ALL
If I remember correctly mopidyctl isn’t included in musicbox v0.6 and mopidy itself should be in /usr/local/bin/mopidy so this suggests some updates/upgrades have been applied. If so, the different pieces probably won’t work together properly anymore.
However, in general, the airplay receiver (shairport-sync) should release the audio device when the airplay session ends. It will also do this if the airplay device suddenly disappears, following a 2 minute timeout. If airplay is still using the audio device there should be something in /var/log/mopidy/mopidy.log to that effect.
Here is the output of tail -100 /var/log/mopidy/mopidy.log
2017-01-03 22:24:09,611 INFO [776:YouTubeBackend-3] requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): www.googleapis.com
2017-01-03 22:30:39,542 INFO [776:TuneInBackend-6] requests.packages.urllib3.connectionpool: Resetting dropped connection: opml.radiotime.com
2017-01-03 22:33:05,974 INFO [776:HttpServer] tornado.access: 200 GET /mopidy/ (192.168.1.136) 12.39ms
2017-01-03 22:33:06,431 INFO [776:HttpServer] tornado.access: 200 GET /mopidy/mopidy.css (192.168.1.136) 4.92ms
2017-01-03 22:33:09,039 INFO [776:HttpServer] tornado.access: 301 GET /musicbox_webclient/ (192.168.1.136) 2.03ms
2017-01-03 22:33:12,370 INFO [776:HttpServer] tornado.access: 200 GET /musicbox_webclient/vendors/font_awesome/fonts/fontawesome-webfont.woff2?v=4.5.0 (192.168.1.136) 4.96ms
2017-01-03 22:33:16,883 INFO [776:HttpServer] tornado.access: 304 GET /musicbox_webclient/index.html (192.168.1.136) 4.10ms
2017-01-03 22:33:17,069 INFO [776:HttpServer] tornado.access: 200 GET /musicbox_webclient/mb.appcache (192.168.1.136) 3.81ms
2017-01-04 07:39:00,814 INFO [776:HttpServer] tornado.access: 304 GET /musicbox_webclient/mb.appcache (192.168.1.187) 3.54ms
2017-01-04 07:39:15,087 INFO [776:YouTubeBackend-3] mopidy_youtube: Searching YouTube for query 'Hanuman chalisa Amitabh '
2017-01-04 07:39:15,094 INFO [776:YouTubeBackend-3] requests.packages.urllib3.connectionpool: Resetting dropped connection: www.googleapis.com
2017-01-04 07:39:16,982 INFO [776:Thread-45] mopidy_youtube: Youtube says: This video contains content from Sony Pictures Networks India Pvt. Ltd., who has blocked it from display on this website.
<a href='http://www.youtube.com/watch?v=jwUHfC5MiWE&feature=player_embedded' target='_blank'>Watch on YouTube</a> [jwUHfC5MiWE]
2017-01-04 07:39:19,399 INFO [776:Thread-47] mopidy_youtube: 'NoneType' object has no attribute 'group'
2017-01-04 07:39:32,205 WARNING [776:MainThread] mopidy.audio.gst: GStreamer warning: gst-stream-error-quark: No volume control found (3)
2017-01-04 07:40:38,929 WARNING [776:MainThread] mopidy.audio.gst: GStreamer warning: gst-stream-error-quark: No volume control found (3)
2017-01-04 07:41:38,379 INFO [776:TuneInBackend-6] requests.packages.urllib3.connectionpool: Resetting dropped connection: opml.radiotime.com
Some links worked last night. I see one youtube link which was blocked on youtube, but the last radiotime.com stream should be up and running. On the webpage for mopidy, the time played counter is moving, but there is no audio.