Posting this here for some insight as although the VLC Snap is maintained upstream, the community here might be able to spot the issue more rapidly and I can see about notifying the devs.
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'
In contrast, the Flatpak version of VLC seems to work just fine.
The Snapcraft.yaml installs libavahi-client-dev as part of the build-packages stanza so I don’t think this is a case of Avahi support not being built into the final binary.
Is this just a case of VLC missing the :avahi-control interface?