VLC Snap needs avahi-control plug to support Chromecast
Hi,
I have recently been using the VLC Snap from the Snapcraft store, and I have noticed that it does not correctly find Chromecast devices on the local network.
Issue Chromecast support is broken in the current VLC Snap.
Expected behaviour When navigating to “Playback > Renderer” inside VLC, it should find Chromecast-type devices on the local subnet.
Actual behaviour No Chromecast devices show up in the GUI but no error is visible there.
In a terminal, VLC complains about the lack of avahi daemon.
Output of snap run vlc when opening the “Playback > Renderer” menu:
[00007f12b8432d70] avahi renderer discovery error: failed to create avahi client: Daemon not running
[00007f12b8432d70] main renderer discovery error: no suitable renderer discovery module for 'avahi_renderer'
Fortunately, I believe this is an easy fix.
In the "plugs" stanza of the Snapcraft.yaml, the avahi-control interface should be connected and the Snap should be rebuilt with this new interface.
For some more info, I posted a similar thread over on the Snapcraft forum to discuss this.