masmu / pulseaudio-dlna

A lightweight streaming server which brings DLNA / UPNP and Chromecast support to PulseAudio and Linux
GNU General Public License v3.0
1.25k stars 161 forks source link

Chrome OS Support #411

Open cvhicks opened 3 years ago

cvhicks commented 3 years ago

The Linux VMs in Chrome OS use an internal ip address which is unreachable from the local LAN. However, ports, such as 1900 UDP and 8080 TCP, can be opened via the recent Port Forwarding UI in Chrome OS. So, pulseaudio-dlna can be made to work, but the ip address for the mp3 stream, sent to the ChromeCast/Sonos devices, must be that of the device, not the Linux VM.

A quick hack to do that involves adding a line in plugins/renderer.py, in the _encode_settings() method, like this:

server_ip='192.168.xxx.xxx' #server_ip = device ip of ChromeBox / ChromeBook

Obviously, this should be done via another command-line parameter, but this will, at least, get it working...