Can't play mp3
Closed this issue · 2 comments
When i try to play a mp3 as described on loxwiki i get the following error:
x-file-cifs://LOXBERRY/sonos_tts/mp3/3_Ding-noise.mp3
<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="//LOXBERRY/sonos_tts/mp3/3_Ding-noise.mp3" parentID=" restricted="true"><dc:title>/dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">RINCON_AssociatedZPUDN</desc></item></DIDL-Lite>
0
1
[fp] => Resource id #28
[errno] => 0
[errstr] =>
[ret] => HTTP/1.1 200 OK
CONTENT-LENGTH: 380
CONTENT-TYPE: text/xml; charset="utf-8"
EXT:
Server: Linux UPnP/1.0 Sonos/66.4-23300 (ZPS21)
Connection: close
1
)
[path] => /opt/loxberry/webfrontend/html/plugins/sonos4lox/system/Tracks.php
[message] => Deprecated (8192): Function fgetss() is deprecated in [/opt/loxberry/webfrontend/html/plugins/sonos4lox/system/Tracks.php, line 793]
)
17:21:14.182 ERROR: The audio file could not be played! Please check folder permission or if file exists
the command i used:
http://192.168.1.250/plugins/sonos4lox/index.php/?zone=slaapkamer&action=track&file=//loxberry/sonos_tts/mp3/3_Ding-noise.mp3
I uploaded my own track and that isn't working either
Thanks!
To play a mp3 directly from a storage device using your syntax the file needs to be in your Sonos favourites (as described in Wiki). This function should be used to play songs from storage devices. In your case you should use this command to play Noise file:
http://192.168.1.250/plugins/sonos4lox/index.php/?zone=slaapkamer&action=say&messageid=3_Ding-noise.mp3
see wiki: https://loxwiki.atlassian.net/wiki/spaces/LOXBERRY/pages/1228539438/T2S+Durchsagen
no feedback