LOGITECHMEDIASERVER-7.8.0-0.16.20130509GIT1368018400
Another loose end..... I had forgotten about a patch that I applied to
our LMS build enabling LocalFile Protocol Handler for squeezelite. I
pulled the patch, (which enabled the functionality by default with no
way to disable it), after someone flagged up an issue when you have
multi-tracks in a single flac file with embedded cue sheet, 'Fedora 18
Upgrade appears to break LMS 7.7.2 and 7.7.3'
(http://forums.slimdevices.com/showthread.php?97862-Fedora-18-Upgrade-appears-to-break-LMS-7-7-2-and-7-7-3&p=747190&viewfull=1#post747190).
I've put the patch back in the latest build with a cmdline option so it
has to be specifically enabled, which you probably won't want to do if
you have multi-track flac files with embedded cue sheets. ;)
Explantion.......
Our resident genius, when he made his LocalPlayer plugin, (squeezelite
plugin for LMS), added a LocalFile Protocol Handler which basically
means that when squeezelite is running on the same machine as LMS, a
layer of IO can be bypassed, squeezelite reading the music file from the
local fs, rather than streaming it via http, port 9000.
We are running squeezelite as a service, rather from LocalPlayer LMS
plugin. But basically, if you are going to run LMS on the WB and the
squeezelite client on the WB, via the Web-GUI, set the squeezelite
server ip to 127.0.0.1. This will cause squeezelite to add "loc" to the
capability list when it logs onto LMS.
"--localfile" is the command line option that needs to be passed to LMS
to register the LocalFile Protocol Handler. You do this via,
/etc/sysconfig/squeezeboxserver. eg. here's mine. SQUEEZEBOX_OPTIONS are
passed to the startup script as options. (So, I'm disabling a bunch of
stuff I'm not using and adding "--localfile", which I want enabled.)
Code:
--------------------
# Edit this to suit your setup
SQUEEZEBOX_USER="squeezeboxserver"
SQUEEZEBOX_HOME="/usr/libexec"
SQUEEZEBOX_CFG_DIR="/var/lib/squeezeboxserver/prefs"
SQUEEZEBOX_LOG_DIR="/var/log/squeezeboxserver"
SQUEEZEBOX_CACHE_DIR="/var/lib/squeezeboxserver/cache"
SQUEEZEBOX_CHARSET="utf8"
SQUEEZEBOX_PID_FILE="/var/run/squeezeboxserver/squeezeboxserver.pid"
SQUEEZEBOX_OPTIONS="--noimage --novideo --noupnp --nosb1slimp3sync
--localfile"
--------------------
To cut a long story short, both of the above configured, squeezelite
connecting to localhost and "--localfile" enabled on the server, (and
Triode may have to correct me if I'm wrong, this is from memory), as
long as the track sample rate is <= whatever squeezelite sent as the
max_sample_rate when it logged on, squeezelite is not synced to another
player, and squeezelite natively supports the track format, the URL
given to squeezelite to play, will be "file://.....", rather than
"http://localhost:9000/stream.mp3". ie. squeezelite will read and play
it direct from the filesystem, rather than being streamed from LMS.
You can see this if you enable squeezelite debug logging....
Code:
--------------------
##
## With --localfile
##
[18:12:19.391535] sendSTAT:151 STAT: STMf
[18:12:19.391571] codec_open:150 codec open: 'f'
[18:12:19.391597] stream_file:316 opening local file:
/storage/media/audio/lossless/Bob_Dylan/Tempest/01 Duquesne Whistle.flac
##
## Default
##
[18:17:58.702907] sendSTAT:151 STAT: STMf
[18:17:58.702944] codec_open:150 codec open: 'f'
[18:17:58.703074] stream_sock:352 connecting to 127.0.0.1:9000
[18:17:58.703144] stream_sock:381 header: GET
/stream.mp3?player=00:1f:d0:22:b6:95 HTTP/1.0
--------------------
Update...
Code:
--------------------
sudo csos-cleanUpdate-testing logitechmediaserver
--------------------
Changes...
Code:
--------------------
* Fri May 10 2013 - 7.8.0-0.16.20130509git1368018400
- Re-introduce LocalFile patch with --localfile cmdLine option to enable.
--------------------
------------------------------------------------------------------------
JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=98544
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix